fix: reduce article maxTokens 4000→3000 to avoid 400 on aiprimetech
This commit is contained in:
+2
-2
@@ -250,7 +250,7 @@ async function generateArticle(channel, opts = {}) {
|
||||
config.ai.models.article,
|
||||
systemPrompt,
|
||||
userPrompt,
|
||||
{ maxTokens: 4000, temperature: 0.85 }
|
||||
{ maxTokens: 3000, temperature: 0.85 }
|
||||
);
|
||||
|
||||
if (!useEditPass) {
|
||||
@@ -277,7 +277,7 @@ async function generateArticle(channel, opts = {}) {
|
||||
config.ai.models.article,
|
||||
editorPrompt,
|
||||
`Вот черновик для редактуры:\n\n${draft.text}`,
|
||||
{ maxTokens: 4000, temperature: 0.75 }
|
||||
{ maxTokens: 3000, temperature: 0.75 }
|
||||
);
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user