Skip to content

Commit 988bdb4

Browse files
Updated env file
1 parent a8aed37 commit 988bdb4

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

src/.env.sample

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ AZURE_OPENAI_ENDPOINT=
2929
AZURE_OPENAI_EMBEDDING_NAME=
3030
AZURE_OPENAI_EMBEDDING_ENDPOINT=
3131
AZURE_OPENAI_EMBEDDING_KEY=
32-
AZURE_OPENAI_PROJECT_CONN_STRING=
3332
# User Interface
3433
UI_TITLE=
3534
UI_LOGO=

src/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

src/backend/settings.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)