File tree Expand file tree Collapse file tree 3 files changed +1
-3
lines changed
Expand file tree Collapse file tree 3 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ AZURE_OPENAI_ENDPOINT=
2929AZURE_OPENAI_EMBEDDING_NAME =
3030AZURE_OPENAI_EMBEDDING_ENDPOINT =
3131AZURE_OPENAI_EMBEDDING_KEY =
32- AZURE_OPENAI_PROJECT_CONN_STRING =
3332# User Interface
3433UI_TITLE =
3534UI_LOGO =
Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ def init_openai_client():
162162 default_headers = {"x-ms-useragent" : USER_AGENT }
163163
164164 azure_openai_client = AsyncAzureOpenAI (
165- api_version = "2024-05-01-preview" ,
165+ api_version = app_settings . azure_openai . preview_api_version ,
166166 azure_ad_token_provider = ad_token_provider ,
167167 default_headers = default_headers ,
168168 azure_endpoint = endpoint ,
Original file line number Diff line number Diff line change @@ -88,7 +88,6 @@ class _AzureOpenAISettings(BaseSettings):
8888 key : Optional [str ] = None
8989 resource : Optional [str ] = None
9090 endpoint : Optional [str ] = None
91- project_conn_string : Optional [str ] = None
9291 temperature : float = 0
9392 top_p : float = 0
9493 max_tokens : int = 1000
You can’t perform that action at this time.
0 commit comments