fix(options): add support for persistent server configuration in OpenAI provider options (#12058)

* fix(options): add support for persistent server configuration in OpenAI provider options
* fix(options): disable storing in OpenAI provider options
This commit is contained in:
SuYao 2025-12-22 16:13:31 +08:00 committed by GitHub
parent 26a3bd0259
commit 7a862974c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View File

@ -464,7 +464,8 @@ describe('options utils', () => {
custom_param: 'custom_value',
another_param: 123,
serviceTier: undefined,
textVerbosity: undefined
textVerbosity: undefined,
store: false
}
})
})

View File

@ -396,10 +396,12 @@ function buildOpenAIProviderOptions(
}
}
// TODO: 支持配置是否在服务端持久化
providerOptions = {
...providerOptions,
serviceTier,
textVerbosity
textVerbosity,
store: false
}
return {