mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-07-13 19:45:16 +02:00
Merge pull request #525 from mrelmida/main
Fixed groq outputing a empty response
This commit is contained in:
commit
36aa78d5e5
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue