Skip to content

fix(azure_ai): return AzureAnthropicConfig for Claude models in get_provider_chat_config#18086

Merged
1 commit merged intoBerriAI:litellm_staging_12_17_2025from
jk-f5:fix_azure_anthropic_chat
Dec 17, 2025
Merged

fix(azure_ai): return AzureAnthropicConfig for Claude models in get_provider_chat_config#18086
1 commit merged intoBerriAI:litellm_staging_12_17_2025from
jk-f5:fix_azure_anthropic_chat

Conversation

@jk-f5
Copy link
Contributor

@jk-f5 jk-f5 commented Dec 17, 2025

Claude models on Azure AI were incorrectly using AzureAIStudioConfig, causing tool calls to fail with invalid_request_error because tools remained in OpenAI format instead of being transformed to Anthropic format.

Relevant issues

(no open bug regarding this issue that I found)

Pre-Submission checklist

  • I have Added testing in the tests/litellm/ directory
  • My PR passes all unit tests on make test-unit
  • My PR's scope is as isolated as possible, it only solves 1 specific problem

Type

🐛 Bug Fix

Changes

ProviderConfigManager.get_provider_chat_config() now returns AzureAnthropicConfig for Claude models on the azure_ai provider, matching the existing pattern for Vertex AI and get_provider_anthropic_messages_config().

Without this fix, Claude models on Azure AI receive tools in OpenAI format (type: "function") instead of Anthropic format, causing the Azure Anthropic endpoint to reject requests with invalid_request_error.

…rovider_chat_config

Claude models on Azure AI were incorrectly using AzureAIStudioConfig,
causing tool calls to fail with invalid_request_error because tools
remained in OpenAI format instead of being transformed to Anthropic format.
@vercel
Copy link

vercel bot commented Dec 17, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
litellm Ready Ready Preview, Comment Dec 17, 2025 1:09am

@ghost ghost changed the base branch from main to litellm_staging_12_17_2025 December 17, 2025 05:52
@ghost ghost merged commit 5765802 into BerriAI:litellm_staging_12_17_2025 Dec 17, 2025
4 of 7 checks passed
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant