docs: add Azure AI Foundry documentation for Claude models - #17104
Conversation
|
@Chesars is attempting to deploy a commit to the CLERKIEAI Team on Vercel. A member of the Team first needs to authorize it. |
Add documentation explaining how to use Claude models (Sonnet 4.5, Haiku 4.5, Opus 4.1) deployed on Azure AI Foundry with LiteLLM. Azure exposes Claude using Anthropic's native API, so users can use the existing anthropic/ provider with their Azure endpoint. Closes BerriAI#17066
…ovider Document that users can use anthropic/ provider with Azure endpoint as an alternative to the dedicated azure_ai/ provider.
d4547a9 to
a6ecc48
Compare
|
Is this task completed or still pending? I'm trying to add the Claude model deployed on Azure AI Foundry, but it's not working for me. I've followed the documentation and added everything, yet it still doesn't work. |
|
Hi @jasverma-hub. This PR adds in the documentation an alternative method to use Anthropic models deployed in Azure, since the Azure API with Anthropic models is almost the same as the direct Anthropic API. In this PR #17202 the integration for azure with Anthropic models was added as a built-in method to use it like |
I’ve tried adding the Claude models through both the config.yaml and the LiteLLM UI, but I’m still getting the same routing error. I’m already running the latest LiteLLM version. This is how I currently have the models defined in my config:
|
The feature for |
How can I add this to the config.yaml? Will it work if I follow the instructions in the Anthropic documentation on LiteLLM? |
|
Yes, it will work when the updated package comes out in a release. |
|
I have connected my LiteLLM to OpenWebUI, and I need to use the Claude models. Therefore, I will have to wait until the updated packages are released, as there are no other options available, right? |
|
The other option is to use the alternative method documented in this PR. https://github.com/BerriAI/litellm/pull/17104/files. |
|
I tried this, but I'm still encountering this error: Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): I am using the exact API BASE and API KEY from Azure still encountering this. |
|
Thanks for reporting it, we'll look into that. So yes, we'll have to wait for the next release. |
|
Okay, fine. One last thing: is the problem with Claude models or Claude models hosted by Azure? |
…7104) * docs: add Azure AI Foundry documentation for Claude models Add documentation explaining how to use Claude models (Sonnet 4.5, Haiku 4.5, Opus 4.1) deployed on Azure AI Foundry with LiteLLM. Azure exposes Claude using Anthropic's native API, so users can use the existing anthropic/ provider with their Azure endpoint. Closes BerriAI#17066 * docs: Add alternative method for Azure AI Foundry using anthropic/ provider Document that users can use anthropic/ provider with Azure endpoint as an alternative to the dedicated azure_ai/ provider.


Title
docs: add Azure AI Foundry documentation for Claude models
Relevant issues
Fixes #17066
Type
📖 Documentation
Changes
Add documentation for using Claude models (Sonnet 4.5, Haiku 4.5, Opus 4.1) deployed on Azure AI Foundry.
Azure exposes Claude using Anthropic's native /v1/messages API, so users can use the existing anthropic/ provider with their Azure endpoint - no changes to model pricing or new provider needed.
Documentation includes: