Merge pull request #525 from mrelmida/main

Fixed groq outputing a empty response
This commit is contained in:
Max Robinson 2025-06-16 11:26:50 -05:00 committed by GitHub
commit 36aa78d5e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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