From a7da757c8492615ca94922c190400a7720c828fe Mon Sep 17 00:00:00 2001 From: Marcello Fitton <106866560+angelplusultra@users.noreply.github.com> Date: Wed, 10 Dec 2025 18:56:55 -0800 Subject: [PATCH] Migrate Azure OpenAI Integration To v1 API | Enable Streaming for Reasoning Models in Azure OpenAI Basic Inference Provider (#4744) * Refactor Azure OpenAI integration to use OpenAI SDK and the v1 API | Enable streaming for Azure Open AI basic inference provider * Add info tooltip to inform user about 'Model Type' form field * Add 'model_type_tooltip' key to multiple language translations * Validate AZURE_OPENAI_ENDPOINT in provider construction * remove unused import, update error handler, rescope URL utils --------- Co-authored-by: Timothy Carambat --- .../LLMSelection/AzureAiOptions/index.jsx | 32 +++++++++++++-- frontend/src/locales/ar/common.js | 1 + frontend/src/locales/da/common.js | 1 + frontend/src/locales/de/common.js | 1 + frontend/src/locales/en/common.js | 2 + frontend/src/locales/es/common.js | 1 + frontend/src/locales/et/common.js | 1 + frontend/src/locales/fa/common.js | 1 + frontend/src/locales/fr/common.js | 1 + frontend/src/locales/he/common.js | 1 + frontend/src/locales/it/common.js | 1 + frontend/src/locales/ja/common.js | 1 + frontend/src/locales/ko/common.js | 1 + frontend/src/locales/lv/common.js | 1 + frontend/src/locales/nl/common.js | 1 + frontend/src/locales/pl/common.js | 1 + frontend/src/locales/pt_BR/common.js | 1 + frontend/src/locales/ro/common.js | 1 + frontend/src/locales/ru/common.js | 1 + frontend/src/locales/tr/common.js | 1 + frontend/src/locales/vn/common.js | 1 + frontend/src/locales/zh/common.js | 1 + frontend/src/locales/zh_TW/common.js | 1 + server/utils/AiProviders/azureOpenAi/index.js | 41 +++++++++++++------ .../utils/agents/aibitat/providers/azure.js | 16 ++++---- 25 files changed, 89 insertions(+), 23 deletions(-) diff --git a/frontend/src/components/LLMSelection/AzureAiOptions/index.jsx b/frontend/src/components/LLMSelection/AzureAiOptions/index.jsx index dcfd8b058..12c50dcee 100644 --- a/frontend/src/components/LLMSelection/AzureAiOptions/index.jsx +++ b/frontend/src/components/LLMSelection/AzureAiOptions/index.jsx @@ -1,4 +1,6 @@ +import { Info } from "@phosphor-icons/react"; import { useTranslation } from "react-i18next"; +import { Tooltip } from "react-tooltip"; export default function AzureAiOptions({ settings }) { const { t } = useTranslation(); @@ -79,9 +81,33 @@ export default function AzureAiOptions({ settings }) {
- +
+ + +
+ +
+