feat(azure): added azure anthropic, added backwards compat support for chat completions API, added opus 4.6#3145
Merged
icecrasher321 merged 5 commits intostagingfrom Feb 5, 2026
Merged
Conversation
…r chat completions API, added opus 4.6
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
Greptile OverviewGreptile SummaryThis PR adds three major features: 1. Azure Anthropic Provider
2. Claude Opus 4.6 with Adaptive Thinking
3. Azure OpenAI Chat Completions Backwards Compatibility
Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Client
participant ProviderRegistry
participant AzureAnthropicProvider
participant AnthropicProvider
participant CoreImplementation
participant AnthropicSDK
participant AzureEndpoint
Note over Client,AzureEndpoint: Azure Anthropic Provider Flow (New)
Client->>ProviderRegistry: executeRequest(model: azure-anthropic/claude-opus-4-6)
ProviderRegistry->>AzureAnthropicProvider: executeRequest()
AzureAnthropicProvider->>AzureAnthropicProvider: Validate azureEndpoint & apiKey
AzureAnthropicProvider->>AzureAnthropicProvider: Strip azure-anthropic/ prefix from model
AzureAnthropicProvider->>AzureAnthropicProvider: Construct baseURL: {endpoint}/anthropic
AzureAnthropicProvider->>CoreImplementation: executeAnthropicProviderRequest(request, config)
Note over CoreImplementation: Shared Core Logic
CoreImplementation->>CoreImplementation: Check thinkingLevel capability
alt Opus 4.6 (adaptive thinking)
CoreImplementation->>CoreImplementation: Set thinking: {type: 'adaptive'}, output_config: {effort}
else Other models (extended thinking)
CoreImplementation->>CoreImplementation: Set thinking: {type: 'enabled', budget_tokens}
end
CoreImplementation->>AnthropicSDK: Create client with Azure baseURL + headers
CoreImplementation->>AzureEndpoint: POST /anthropic/v1/messages
AzureEndpoint-->>CoreImplementation: Response with tool calls
alt Tools present
CoreImplementation->>CoreImplementation: Execute tools
CoreImplementation->>AzureEndpoint: Continue conversation with tool results
end
AzureEndpoint-->>CoreImplementation: Final response
CoreImplementation-->>AzureAnthropicProvider: ProviderResponse
AzureAnthropicProvider-->>ProviderRegistry: ProviderResponse
ProviderRegistry-->>Client: Result
Note over Client,AnthropicSDK: Standard Anthropic Provider Flow (Refactored)
Client->>ProviderRegistry: executeRequest(model: claude-opus-4-6)
ProviderRegistry->>AnthropicProvider: executeRequest()
AnthropicProvider->>CoreImplementation: executeAnthropicProviderRequest(request, config)
CoreImplementation->>AnthropicSDK: Create client with standard config
CoreImplementation->>AnthropicSDK: POST /v1/messages
AnthropicSDK-->>CoreImplementation: Response
CoreImplementation-->>Client: Result
Note over Client,AzureEndpoint: Azure OpenAI Backwards Compatibility (Enhanced)
Client->>ProviderRegistry: executeRequest(endpoint: chat/completions URL)
ProviderRegistry->>AzureAnthropicProvider: executeRequest()
AzureAnthropicProvider->>AzureAnthropicProvider: Detect chat completions endpoint
AzureAnthropicProvider->>AzureAnthropicProvider: Extract baseURL, deployment, api-version
AzureAnthropicProvider->>AzureEndpoint: Use chat completions API
AzureEndpoint-->>Client: Response
|
Collaborator
Author
|
@cursor review |
Collaborator
Author
|
@cursor review |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 3 potential issues.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
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.
Summary
Type of Change
Testing
Tested manually
Checklist