Spaces:
Runtime error
Runtime error
Update app/main.py
Browse files- app/main.py +3 -1
app/main.py
CHANGED
|
@@ -7,9 +7,11 @@ import os
|
|
| 7 |
app = FastAPI()
|
| 8 |
|
| 9 |
# --- Azure OpenAI setup ---
|
|
|
|
| 10 |
client = AzureOpenAI(
|
| 11 |
api_key=os.getenv("VITE_AZURE_LLM_KEY"),
|
| 12 |
-
azure_endpoint=os.getenv("VITE_AZURE_LLM_ENDPOINT")
|
|
|
|
| 13 |
)
|
| 14 |
deployment_name = os.getenv("VITE_AZURE_LLM_DEPLOYMENT")
|
| 15 |
|
|
|
|
| 7 |
app = FastAPI()
|
| 8 |
|
| 9 |
# --- Azure OpenAI setup ---
|
| 10 |
+
print(f"endpoint : {os.getenv("VITE_AZURE_LLM_ENDPOINT")}")
|
| 11 |
client = AzureOpenAI(
|
| 12 |
api_key=os.getenv("VITE_AZURE_LLM_KEY"),
|
| 13 |
+
azure_endpoint=os.getenv("VITE_AZURE_LLM_ENDPOINT"),
|
| 14 |
+
api_version="2024-08-01-preview",
|
| 15 |
)
|
| 16 |
deployment_name = os.getenv("VITE_AZURE_LLM_DEPLOYMENT")
|
| 17 |
|