You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Migrate AzureOpenAI constructors to OpenAI client #269
This repository is using the Azure-specific client constructors from the OpenAI SDK: AzureOpenAI or AsyncAzureOpenAI.
These constructors are deprecated in the latest SDKs. Migrate to the standard OpenAI / AsyncOpenAI constructors instead so the code stays compatible with the
current API surface.
azure_ad_token_provider (or similar Azure credential helpers) → api_key.
Remove api_version usage
Delete the api_version=... argument from client construction.
Remove any AZURE_OPENAI_VERSION environment variables and references (including .env, application settings, and infra/main.bicep or other Bicep files).
Update package requirements
Ensure requirements.txt or pyproject.toml declares openai>=1.108.1.
This is the first version where OpenAI / AsyncOpenAI fully replace the
Azure-specific constructors.
Follow-up Checklist
All Python client instantiations use OpenAI / AsyncOpenAI.
No api_version argument or related environment variables remain.
Dependency metadata requires openai>=1.108.1.
Addressing these items will keep the repository aligned with the supported OpenAI SDK usage.
Details
Pattern:\b(?:AzureOpenAI|AsyncAzureOpenAI)\s*\(
Found matches in 2 file(s) with 6 total match(es):
File:evals/generate_ground_truth.py
Line 88:openai_client = AzureOpenAI(
Line 97:openai_client = AzureOpenAI(
File:src/backend/fastapi_app/openai_clients.py
Line 26:openai_chat_client = openai.AsyncAzureOpenAI(
Line 41:openai_chat_client = openai.AsyncAzureOpenAI(
Line 85:openai_embed_client = openai.AsyncAzureOpenAI(
Line 100:openai_embed_client = openai.AsyncAzureOpenAI(
Activity