From 2d194285f39e936d3f2f7322b341c1534f169e4f Mon Sep 17 00:00:00 2001 From: Ahmed Salah <72524423+AHMED-salah00@users.noreply.github.com> Date: Wed, 7 Jan 2026 13:24:46 +0200 Subject: [PATCH] Edited AzureOpenAi endpoint Azure Openai Changed the endpoint to end with cognitiveservices.azure.com instead of openai.azure.com --- .../void/electron-main/llmMessage/sendLLMMessage.impl.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/contrib/void/electron-main/llmMessage/sendLLMMessage.impl.ts b/src/vs/workbench/contrib/void/electron-main/llmMessage/sendLLMMessage.impl.ts index b4c794e2074..8ece24d59e5 100644 --- a/src/vs/workbench/contrib/void/electron-main/llmMessage/sendLLMMessage.impl.ts +++ b/src/vs/workbench/contrib/void/electron-main/llmMessage/sendLLMMessage.impl.ts @@ -117,7 +117,7 @@ const newOpenAICompatibleSDK = async ({ settingsOfProvider, providerName, includ // https://learn.microsoft.com/en-us/rest/api/aifoundry/model-inference/get-chat-completions/get-chat-completions?view=rest-aifoundry-model-inference-2024-05-01-preview&tabs=HTTP // https://github.com/openai/openai-node?tab=readme-ov-file#microsoft-azure-openai const thisConfig = settingsOfProvider[providerName] - const endpoint = `https://${thisConfig.project}.openai.azure.com/`; + const endpoint = `https://${thisConfig.project}.cognitiveservices.azure.com/`; const apiVersion = thisConfig.azureApiVersion ?? '2024-04-01-preview'; const options = { endpoint, apiKey: thisConfig.apiKey, apiVersion }; return new AzureOpenAI({ ...options, ...commonPayloadOpts });