cloud-sean commited on
Commit
965c324
·
verified ·
1 Parent(s): 5b7ff5f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -9,7 +9,7 @@ from typing_extensions import override
9
  api_key = os.environ.get("OPENAI_API_KEY")
10
  azure_endpoint = os.environ.get("OPENAI_AZURE_ENDPOINT")
11
  deployment_name = "gpt-4o" # Replace with your deployment name
12
- api_version = "2024-02-15-preview" # Ensure this matches your Azure OpenAI resource
13
 
14
  # Initialize the Azure OpenAI client
15
  client = AzureOpenAI(
 
9
  api_key = os.environ.get("OPENAI_API_KEY")
10
  azure_endpoint = os.environ.get("OPENAI_AZURE_ENDPOINT")
11
  deployment_name = "gpt-4o" # Replace with your deployment name
12
+ api_version = "2024-05-01-preview" # Ensure this matches your Azure OpenAI resource
13
 
14
  # Initialize the Azure OpenAI client
15
  client = AzureOpenAI(