From a34ebf70c974fdf4af6920bf54db8f3718b3af55 Mon Sep 17 00:00:00 2001 From: "coderabbitai[bot]" <136622811+coderabbitai[bot]@users.noreply.github.com> Date: Fri, 15 May 2026 09:08:01 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20CodeRabbit=20Chat:=20Implement?= =?UTF-8?q?=20requested=20code=20changes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/utils/index.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/utils/index.ts b/lib/utils/index.ts index 018867f1..524b7160 100644 --- a/lib/utils/index.ts +++ b/lib/utils/index.ts @@ -81,15 +81,16 @@ export async function getModel(requireVision: boolean = false) { } case 'GPT-5.5': if (azureApiKey && azureEndpoint) { - const azure = createOpenAI({ - baseURL: azureEndpoint, - apiKey: azureApiKey, - }); try { + const azure = createOpenAI({ + baseURL: azureEndpoint, + apiKey: azureApiKey, + compatibility: 'compatible', + }); return azure(azureDeploymentName); } catch (error) { console.error('Selected model "GPT-5.5" (Azure) is configured but failed to initialize.', error); - throw new Error('Failed to initialize selected model.'); + } } else { console.error('User selected "GPT-5.5" but AZURE_API_KEY or AZURE_ENDPOINT is not set.');