mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-08-04 14:25:43 +02:00
fix groq bug
fix the bug regarding the empty result
This commit is contained in:
parent
d25e439d86
commit
87df69108f
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue