Skip to content

Conversation

@uanandaraja
Copy link
Contributor

@uanandaraja uanandaraja commented Jan 17, 2026


When using Anthropic models (like claude-opus-4.5) via Azure Cognitive Services, the code was using @ai-sdk/azure SDK which tries to call sdk.responses(modelID). But @ai-sdk/azure doesn't support Anthropic models - Azure's Anthropic endpoint uses a different API structure that requires @ai-sdk/anthropic.

Screenshot 2026-01-17 at 07 59 30

@github-actions
Copy link
Contributor

The following comment was made by an LLM, it may be inaccurate:

Based on my search, I found one potentially related PR:

Related PR:

The PR #8566 could be worth reviewing to ensure there's no overlap with your current fix. The other results returned were the current PR itself (#9000) or unrelated feature PRs.

@rekram1-node
Copy link
Collaborator

/review

@github-actions
Copy link
Contributor

lgtm

@uanandaraja uanandaraja force-pushed the anthropic-on-azure-cognitive-services branch from a6e242d to d1f8fc0 Compare January 19, 2026 02:29
@uanandaraja
Copy link
Contributor Author

are we good here? @rekram1-node

@rekram1-node
Copy link
Collaborator

I actually have a simpler solution if u wanna test it

@rekram1-node
Copy link
Collaborator

#9341

@uanandaraja try this?

@uanandaraja
Copy link
Contributor Author

uanandaraja commented Jan 19, 2026

#9341

@uanandaraja try this

it says RESOURCE NOT FOUND, different env variable?

Screenshot 2026-01-19 at 11 35 47

@rekram1-node
Copy link
Collaborator

Hm may need a tweak but do you see what I'm trying to do? everything should live in that one module it shouldnt require edits outside of it

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.

claude-opus-4.5 on azure unusable

2 participants