Repository navigation
Conversation
The keyless setup from the docs (extra={'azure_ad_token_provider': ...})
raised 'AZURE_OPENAI_API_KEY is not set' unless a key was also set, though
the request only carries the bearer token. A token provider or token in
extra now counts as the credential.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Open
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The keyless Azure OpenAI setup in
docs/core/agents/models.md(Entra ID:extra={"azure_ad_token_provider": token}, noapi_key) raisedModelSetupError: AZURE_OPENAI_API_KEY is not set, although the error's own hint says to pass a token provider instead. With a placeholder key set, a local stand-in server showed the client sends onlyAuthorization: Bearer <token>and noapi-keyheader, so the key check was the only problem. Found while reviewing the Azure guide.resolve_model:azure_ad_token_provider,azure_ad_tokenorazure_ad_async_token_providerinextracounts as the credential (api_keyprovided) for the setup check.test_azure_entra_id_needs_no_api_key(token provider and token; both fail before, pass after) andtest_azure_without_key_or_token_still_names_the_key.test_models.py+test_fallback.py: 204 passed. The header probe against a local server now passes with no key set. Held for the next release.🤖 Generated with Claude Code