Skip to content

Fix Azure OpenAI support broken with openai>=1.0.0#310

Open
cwmuller wants to merge 7 commits intoz3z1ma:mainfrom
cwmuller:fix/azure-openai-sdk-and-ad-auth
Open

Fix Azure OpenAI support broken with openai>=1.0.0#310
cwmuller wants to merge 7 commits intoz3z1ma:mainfrom
cwmuller:fix/azure-openai-sdk-and-ad-auth

Conversation

@cwmuller
Copy link

@cwmuller cwmuller commented Jan 19, 2026

Using --synthesize with the openai-azure llm-provider caused errors due to the code referencing entry points deprecated since openai version 0.28. Since dbt 1.2.2 had pinned a later version of openai, the openai-azure provider was effectively broken. I've made the changes necessary be able to use the azure-openai provider with openai>=1.0.
I also added azure AD authentication and some retry logic for handling rate limiting.

In summary:

  • Updated llm.py to use new openai api
  • Retry logic for handling rate limiting
  • Azure AD authentication style provider
  • Tests

The changes work with our setup. All test_llm.py tests seem to pass; unfortunately, it would be hard for me perform any end to end testing with any other providers.

- Add retry logic for rate limits
- Add Azure AD authentication (EnvironmentCredential + DefaultAzureCredential)
- Add test coverage
@cwmuller cwmuller closed this Jan 19, 2026
@cwmuller cwmuller changed the title Minor formatting changes Fix Azure OpenAI support broken with openai>=1.0.0 Jan 19, 2026
@cwmuller cwmuller reopened this Jan 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant