feat: Add Azure OpenAI enterprise authentication support#11
Open
DavertMik wants to merge 3 commits intoEndlessInternational:mainfrom
Open
feat: Add Azure OpenAI enterprise authentication support#11DavertMik wants to merge 3 commits intoEndlessInternational:mainfrom
DavertMik wants to merge 3 commits intoEndlessInternational:mainfrom
Conversation
added 3 commits
November 2, 2025 16:59
Add OAuth 2.0 client credentials flow for Azure AD authentication while maintaining backward compatibility with API key authentication. Key changes: - Add tenant_id, client_id, client_secret schema properties - Implement fetch_azure_access_token for OAuth 2.0 flow - Update endpoint format to proper Azure OpenAI deployment structure - Dual authentication: enterprise OAuth (primary) + API key (fallback) - Model name moved from request body to URL path per Azure requirements This enables enterprise-grade authentication for production environments while preserving existing API key functionality.
- Update default API version to 2024-10-21 (latest GA release) - Update example model from gpt-4o to gpt-5
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.
Hi, thanks for intelligence gem!
I use it on our production system and this is the best LLM framework for Ruby
Good to see intelligence is evolving!
I would like to share the pieces I made for my fork
For our enterprise customer I added Azure OpenAI integration
Unfortunately, I don't have access to Azure OpenAI myself but I pair-tested it with client and it worked.
Added:
Enterprise Authentication Support
Proper Azure OpenAI Endpoint Implementation
https://{endpoint}/openai/deployments/{model}/chat/completions?api-version={version}Dual Authentication Methods