mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-08 14:29:15 +08:00
feat(aihubmix): support gpt oss models (#8884)
Update AihubmixAPIClient.ts Co-authored-by: zhaochenxue <zhaochenxue@bixin.cn>
This commit is contained in:
parent
f15a613b16
commit
ef208bf9e5
@ -82,8 +82,8 @@ export class AihubmixAPIClient extends MixedBaseAPIClient {
|
|||||||
return client
|
return client
|
||||||
}
|
}
|
||||||
|
|
||||||
// OpenAI系列模型
|
// OpenAI系列模型 不包含gpt-oss
|
||||||
if (isOpenAILLMModel(model)) {
|
if (isOpenAILLMModel(model) && !model.id.includes('gpt-oss')) {
|
||||||
const client = this.clients.get('openai')
|
const client = this.clients.get('openai')
|
||||||
if (!client || !this.isValidClient(client)) {
|
if (!client || !this.isValidClient(client)) {
|
||||||
throw new Error('OpenAI client not properly initialized')
|
throw new Error('OpenAI client not properly initialized')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user