常见问题API 提供商返回的翻译数量不足
API 提供商返回的翻译数量不足
如果您在日志中看到以下错误信息:
Error [Query "translate-customposts"] Execution with errors: 🔴 Translation to pt_PT failed - The API for provider 'ChatGPT' returned an array with a lower number of translations than the number of strings to translate 这是因为 API 提供商返回的翻译数量少于需要翻译的字符串数量。请重新运行翻译即可。
如果该错误信息持续出现,说明该模型不够可靠,您应该尝试换用其他模型。
例如,如果您正在使用 ChatGPT-5 mini,请切换到 ChatGPT-5 后再试。
此问题最容易发生在非常长的文章上,这类文章会被拆分为多个请求。任何单个请求失败都会导致整个翻译失败。