diff --git a/backend/src/plugins/translate/executor.py b/backend/src/plugins/translate/executor.py index 252ca9be..fc9edaa0 100644 --- a/backend/src/plugins/translate/executor.py +++ b/backend/src/plugins/translate/executor.py @@ -946,7 +946,7 @@ class TranslationExecutor: {"role": "user", "content": prompt}, ], "temperature": 0.1, - "max_tokens": 4096, + "max_tokens": 8192, } # Structured output (response_format) only for native OpenAI — upstream providers routed via # Kilo/OpenRouter may not support it (e.g. StepFun returns "structured_outputs is not supported") diff --git a/backend/src/plugins/translate/preview.py b/backend/src/plugins/translate/preview.py index 1ecc37e7..5a279a57 100644 --- a/backend/src/plugins/translate/preview.py +++ b/backend/src/plugins/translate/preview.py @@ -952,7 +952,7 @@ class TranslationPreview: {"role": "user", "content": prompt}, ], "temperature": 0.1, - "max_tokens": 4096, + "max_tokens": 8192, } # Structured output (response_format) only for native OpenAI — upstream providers routed via # Kilo/OpenRouter may not support it (e.g. StepFun returns "structured_outputs is not supported")