-
Notifications
You must be signed in to change notification settings - Fork 3.3k
feat(azure): added azure anthropic, added backwards compat support for chat completions API, added opus 4.6 #3145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
5 files reviewed, no comments
|
@cursor review |
|
@cursor review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Summary
Type of Change
Testing
Tested manually
Checklist