mayf commited on
Commit
90db10a
·
verified ·
1 Parent(s): 9e035e5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -9,9 +9,9 @@ from openai import AzureOpenAI # new
9
 
10
  # ─── Azure OpenAI Client ─────────────────────────────────────────────────────
11
  openai_client = AzureOpenAI(
12
- api_key=os.environ["AZURE_OPENAI_KEY"],
13
- api_version="2023-05-15",
14
- azure_endpoint=os.environ["AZURE_OPENAI_ENDPOINT"]
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) ────────────────────────────────────────