Uh oh!
There was an error while loading. Please reload this page.
feat(azure): added azure anthropic, added backwards compat support for chat completions API, added opus 4.6 - #3145
Conversation
…r chat completions API, added opus 4.6
The latest updates on your projects. Learn more about Vercel for GitHub. |
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
|
waleedlatif1
commented
Feb 5, 2026
@cursor review |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
waleedlatif1
commented
Feb 5, 2026
@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.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
…r chat completions API, added opus 4.6 (simstudioai#3145) * feat(azure): added azure anthropic, added backwards compat support for chat completions API, added opus 4.6 * added max thinking level * update tests * ack comments * update cql validation
Summary
Type of Change
Testing
Tested manually
Checklist