From ef208bf9e5539ca07230ad943091b8b784ab115c Mon Sep 17 00:00:00 2001 From: chenxue Date: Wed, 6 Aug 2025 18:09:42 +0800 Subject: [PATCH] feat(aihubmix): support gpt oss models (#8884) Update AihubmixAPIClient.ts Co-authored-by: zhaochenxue --- src/renderer/src/aiCore/clients/AihubmixAPIClient.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/src/aiCore/clients/AihubmixAPIClient.ts b/src/renderer/src/aiCore/clients/AihubmixAPIClient.ts index c3d57f7e0f..f27674174d 100644 --- a/src/renderer/src/aiCore/clients/AihubmixAPIClient.ts +++ b/src/renderer/src/aiCore/clients/AihubmixAPIClient.ts @@ -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')