fix: wrong header content-type for curl tts
This commit is contained in:
@@ -80,6 +80,7 @@
|
|||||||
height: 20px;
|
height: 20px;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
align-self: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
|||||||
@@ -168,7 +168,7 @@ const Scatter: React.FC<ChartProps> = (props) => {
|
|||||||
tooltip: {
|
tooltip: {
|
||||||
trigger: 'item',
|
trigger: 'item',
|
||||||
borderWidth: 0,
|
borderWidth: 0,
|
||||||
backgroundColor: chartColorMap.splitLineColor,
|
backgroundColor: chartColorMap.colorBgContainerHover,
|
||||||
borderColor: 'transparent',
|
borderColor: 'transparent',
|
||||||
formatter(params: any, callback?: (val: any) => any) {
|
formatter(params: any, callback?: (val: any) => any) {
|
||||||
const dataList = findOverlappingPoints(seriseDataList, params.data);
|
const dataList = findOverlappingPoints(seriseDataList, params.data);
|
||||||
|
|||||||
@@ -190,7 +190,7 @@ const GroundReranker: React.FC<MessageProps> = forwardRef((props, ref) => {
|
|||||||
<div
|
<div
|
||||||
className="pregress-bar"
|
className="pregress-bar"
|
||||||
style={{
|
style={{
|
||||||
backgroundImage: `linear-gradient(90deg, #388bff 0%, #cce1ff 100%)`,
|
backgroundImage: `linear-gradient(90deg, var(--ant-blue-5) 0%, var(--ant-blue-2) 100%)`,
|
||||||
width: `${percent}%`,
|
width: `${percent}%`,
|
||||||
height: '4px',
|
height: '4px',
|
||||||
borderRadius: '2px'
|
borderRadius: '2px'
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ export const TextToSpeechCode = ({
|
|||||||
// ========================= Curl =========================
|
// ========================= Curl =========================
|
||||||
const curlCode = `
|
const curlCode = `
|
||||||
curl ${host}${api} \\
|
curl ${host}${api} \\
|
||||||
-H "Content-Type: multipart/form-data" \\
|
-H "Content-Type: application/json" \\
|
||||||
-H "Authorization: Bearer $\{YOUR_GPUSTACK_API_KEY}" \\
|
-H "Authorization: Bearer $\{YOUR_GPUSTACK_API_KEY}" \\
|
||||||
${formatCurlArgs(parameters, false)} \\\n--output output.${parameters.response_format}`.trim();
|
${formatCurlArgs(parameters, false)} \\\n--output output.${parameters.response_format}`.trim();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user