fix: increase max_tokens for Minimax-M3 to prevent truncated JSON
This commit is contained in:
+2
-2
@@ -401,7 +401,7 @@ async function handleStyleRandom(req, res) {
|
|||||||
{ role: 'system', content: buildStylePrompt(mode, idea) },
|
{ role: 'system', content: buildStylePrompt(mode, idea) },
|
||||||
{ role: 'user', content: userMsg },
|
{ role: 'user', content: userMsg },
|
||||||
],
|
],
|
||||||
{ max_tokens: 800 },
|
{ max_tokens: 8192 },
|
||||||
signal,
|
signal,
|
||||||
);
|
);
|
||||||
const style = cleanStyleString(content);
|
const style = cleanStyleString(content);
|
||||||
@@ -495,7 +495,7 @@ async function handleGenerate(req, res) {
|
|||||||
{ role: 'system', content: buildSystemPrompt(body) },
|
{ role: 'system', content: buildSystemPrompt(body) },
|
||||||
{ role: 'user', content: buildUserMessage(body) },
|
{ role: 'user', content: buildUserMessage(body) },
|
||||||
],
|
],
|
||||||
{ max_tokens: 4000 },
|
{ max_tokens: 32768 },
|
||||||
signal,
|
signal,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user