mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-07-15 04:25:16 +02:00
Update huggingface.js
Fixed thinking tag checks for Huggingface API
This commit is contained in:
parent
42dfe39862
commit
37417fcb92
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ export class HuggingFace {
|
|||
const hasCloseTag = res.includes("</think>");
|
||||
|
||||
// If there's a partial mismatch, warn and retry the entire request.
|
||||
if ((hasOpenTag && !hasCloseTag) || (!hasOpenTag && hasCloseTag)) {
|
||||
if ((hasOpenTag && !hasCloseTag)) {
|
||||
console.warn("Partial <think> block detected. Re-generating...");
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue