Update app.py
Browse files
app.py
CHANGED
@@ -9,9 +9,9 @@ from openai import AzureOpenAI # new
|
|
9 |
|
10 |
# ─── Azure OpenAI Client ─────────────────────────────────────────────────────
|
11 |
openai_client = AzureOpenAI(
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
)
|
16 |
|
17 |
# ─── (your existing cache decorators) ────────────────────────────────────────
|
|
|
9 |
|
10 |
# ─── Azure OpenAI Client ─────────────────────────────────────────────────────
|
11 |
openai_client = AzureOpenAI(
|
12 |
+
api_key = "fbca46bfd8814334be46a2e5c323904c", # use your key here
|
13 |
+
api_version = "2023-05-15", # apparently HKUST uses a deprecated version
|
14 |
+
azure_endpoint = "https://hkust.azure-api.net" # per HKUST instructions
|
15 |
)
|
16 |
|
17 |
# ─── (your existing cache decorators) ────────────────────────────────────────
|