fix: wrong header content-type for curl tts

This commit is contained in:
jialin
2025-05-08 18:25:53 +08:00
parent 80a6658769
commit 92b4be90d0
4 changed files with 4 additions and 3 deletions
@@ -190,7 +190,7 @@ const GroundReranker: React.FC<MessageProps> = forwardRef((props, ref) => {
<div
className="pregress-bar"
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}%`,
height: '4px',
borderRadius: '2px'
+1 -1
View File
@@ -77,7 +77,7 @@ export const TextToSpeechCode = ({
// ========================= Curl =========================
const curlCode = `
curl ${host}${api} \\
-H "Content-Type: multipart/form-data" \\
-H "Content-Type: application/json" \\
-H "Authorization: Bearer $\{YOUR_GPUSTACK_API_KEY}" \\
${formatCurlArgs(parameters, false)} \\\n--output output.${parameters.response_format}`.trim();