fix(修复超时):修复翻译超时!
deploy-hxtesting / build-and-deploy (push) Successful in 1m14s

This commit is contained in:
runny committed 2026-11-30 23:05:36 +08:00
1 parent aa329d7a09
commit 74d21cb204
2 files changed
+19 -1

No files matched your search

+1 -1
View File
@@ -320,7 +320,7 @@ func (c *chatBatchTranslator) translateOnce(ctx context.Context, user string) (s
ch, err := c.model.ChatStream(ctx, []chat.Message{
{Role: "system", Content: translateSystemPrompt},
{Role: "user", Content: user},
}, &chat.ChatOptions{Temperature: 0.2, MaxCompletionTokens: 16384})
}, &chat.ChatOptions{Temperature: 0.2, MaxCompletionTokens: 8192})
if err != nil {
return "", err
}