fix groq bug

fix the bug regarding the empty result
This commit is contained in:
mrelmida 2025-05-01 17:57:47 +03:00
parent d25e439d86
commit 87df69108f

View file

@ -55,7 +55,7 @@ export class GroqCloudAPI {
...(this.params || {}) ...(this.params || {})
}); });
res = completion.choices[0].message; res = completion.choices[0].message.content;
res = res.replace(/<think>[\s\S]*?<\/think>/g, '').trim(); res = res.replace(/<think>[\s\S]*?<\/think>/g, '').trim();
} }