Skip to content

Commit 2f5883c

Browse files
Update OpenAI Client
1 parent 81d9ece commit 2f5883c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ backend/app/.env
99
backend/app.log
1010
backend/Downloads
1111
backend/.ipynb_checkpoints
12-
backend/.venv
12+
backend/.venv
13+
.idea

backend/app/core/singleton.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ def connect_openai():
2020
## THIS IS FOR LOCAL LLM ONLY
2121
openai_client = OpenAI(
2222
api_key=settings.AZURE_API_KEY,
23-
azure_endpoint=settings.AZURE_ENDPOINT,
23+
base_url=settings.AZURE_ENDPOINT,
24+
project=None,
25+
organization=None
2426
)
2527
return openai_client
2628

0 commit comments

Comments
 (0)