feat(aihubmix): support gpt oss models (#8884)

Update AihubmixAPIClient.ts

Co-authored-by: zhaochenxue <zhaochenxue@bixin.cn>
This commit is contained in:
chenxue 2025-08-06 18:09:42 +08:00 committed by GitHub
parent f15a613b16
commit ef208bf9e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -82,8 +82,8 @@ export class AihubmixAPIClient extends MixedBaseAPIClient {
return client
}
// OpenAI系列模型
if (isOpenAILLMModel(model)) {
// OpenAI系列模型 不包含gpt-oss
if (isOpenAILLMModel(model) && !model.id.includes('gpt-oss')) {
const client = this.clients.get('openai')
if (!client || !this.isValidClient(client)) {
throw new Error('OpenAI client not properly initialized')