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,
|
config.ai.models.article,
|
||||||
systemPrompt,
|
systemPrompt,
|
||||||
userPrompt,
|
userPrompt,
|
||||||
{ maxTokens: 4000, temperature: 0.85 }
|
{ maxTokens: 3000, temperature: 0.85 }
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!useEditPass) {
|
if (!useEditPass) {
|
||||||
@@ -277,7 +277,7 @@ async function generateArticle(channel, opts = {}) {
|
|||||||
config.ai.models.article,
|
config.ai.models.article,
|
||||||
editorPrompt,
|
editorPrompt,
|
||||||
`Вот черновик для редактуры:\n\n${draft.text}`,
|
`Вот черновик для редактуры:\n\n${draft.text}`,
|
||||||
{ maxTokens: 4000, temperature: 0.75 }
|
{ maxTokens: 3000, temperature: 0.75 }
|
||||||
);
|
);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user