mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-04 20:00:00 +08:00
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:
parent
26a3bd0259
commit
7a862974c2
@ -464,7 +464,8 @@ describe('options utils', () => {
|
||||
custom_param: 'custom_value',
|
||||
another_param: 123,
|
||||
serviceTier: undefined,
|
||||
textVerbosity: undefined
|
||||
textVerbosity: undefined,
|
||||
store: false
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
@ -396,10 +396,12 @@ function buildOpenAIProviderOptions(
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: 支持配置是否在服务端持久化
|
||||
providerOptions = {
|
||||
...providerOptions,
|
||||
serviceTier,
|
||||
textVerbosity
|
||||
textVerbosity,
|
||||
store: false
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user