mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 05:47:11 +00:00
fix: max token
This commit is contained in:
parent
dcc1a4ebd6
commit
8249acaf08
3 changed files with 12 additions and 5 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue