Skip to content

Commit

Permalink
Added support for Azure openAI and added API_AZURE_DEPLOYMENT environ…
Browse files Browse the repository at this point in the history
…ment variables to adapt to Azure openAI
  • Loading branch information
like committed Jan 31, 2024
1 parent c6868aa commit 45cf7a9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions dbgpt/model/utils/chatgpt_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
)
Expand Down

0 comments on commit 45cf7a9

Please sign in to comment.