Skip to content

Commit 7ecbcd2

Browse files
committed
Update Azure OpenAI API version to 2025-03-01-preview
1 parent fd74954 commit 7ecbcd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples-v2/openai_agents/function_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def get_azure_token():
1919
# Initialize Azure OpenAI client with DefaultAzureCredential
2020
openai_client = AsyncAzureOpenAI(
2121
azure_ad_token_provider=get_azure_token,
22-
api_version=os.getenv("AZURE_OPENAI_API_VERSION", "2024-02-01"),
22+
api_version=os.getenv("AZURE_OPENAI_API_VERSION", "2025-03-01-preview"),
2323
azure_endpoint=os.getenv("AZURE_OPENAI_ENDPOINT"),
2424
azure_deployment=os.getenv("AZURE_OPENAI_DEPLOYMENT", "gpt-4")
2525
)

0 commit comments

Comments
 (0)