fix: max token

This commit is contained in:
ikechan8370 2025-02-10 17:11:41 +08:00
parent dcc1a4ebd6
commit 8249acaf08
3 changed files with 12 additions and 5 deletions

View file

@ -646,7 +646,8 @@ class Core {
completionParams,
assistantLabel: Config.assistantLabel,
fetch: newFetch,
maxModelTokens
maxModelTokens,
maxResponseTokens: Config.apiMaxToken
}
let openAIAccessible = (Config.proxy || !(await isCN())) // 配了代理或者服务器在国外,默认认为不需要反代
if (opts.apiBaseUrl !== defaultOpenAIAPI && openAIAccessible && !Config.openAiForceUseReverse) {