Spaces:
Sleeping
Sleeping
traversaal-ai
commited on
Commit
•
3bfdeb9
1
Parent(s):
1963268
Update services/openai_service.py
Browse files
services/openai_service.py
CHANGED
@@ -12,7 +12,7 @@ from config import OPENAI_API_KEY, AZURE_OPENAI_KEY
|
|
12 |
|
13 |
AZURE_OPENAI_ENDPOINT = os.getenv('AZURE_OPENAI_ENDPOINT')
|
14 |
AZURE_API_VERSION = "2023-03-15-preview" # API version for Azure OpenAI
|
15 |
-
|
16 |
# Initialize the Azure OpenAI client with the endpoint and API key
|
17 |
client = AzureOpenAI(
|
18 |
azure_endpoint=AZURE_OPENAI_ENDPOINT,
|
|
|
12 |
|
13 |
AZURE_OPENAI_ENDPOINT = os.getenv('AZURE_OPENAI_ENDPOINT')
|
14 |
AZURE_API_VERSION = "2023-03-15-preview" # API version for Azure OpenAI
|
15 |
+
AZURE_OPENAI_KEY = os.getenv('AZURE_OPENAI_API_KEY')
|
16 |
# Initialize the Azure OpenAI client with the endpoint and API key
|
17 |
client = AzureOpenAI(
|
18 |
azure_endpoint=AZURE_OPENAI_ENDPOINT,
|