From 45cf7a969da0da350473b4b55e3ed0d009222ba7 Mon Sep 17 00:00:00 2001 From: like <406979945@qq.com> Date: Wed, 31 Jan 2024 14:01:16 +0800 Subject: [PATCH] Added support for Azure openAI and added API_AZURE_DEPLOYMENT environment variables to adapt to Azure openAI --- dbgpt/model/utils/chatgpt_utils.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/dbgpt/model/utils/chatgpt_utils.py b/dbgpt/model/utils/chatgpt_utils.py index 427d672e4..f0cc300d9 100644 --- a/dbgpt/model/utils/chatgpt_utils.py +++ b/dbgpt/model/utils/chatgpt_utils.py @@ -140,9 +140,7 @@ def _build_openai_client(init_params: OpenAIParameters) -> Tuple[str, ClientType return api_type, AsyncAzureOpenAI( api_key=openai_params["api_key"], api_version=api_version, - #azure_deployment="siasmodel", azure_deployment=openai_params["api_azure_deployment"], - # model_name="gpt-35-turbo", azure_endpoint=openai_params["base_url"], http_client=httpx.AsyncClient(proxies=init_params.proxies), )