[PR #9000] fix(app): support anthropic models on azure cognitive services #12948

Open
opened 2026-02-16 18:17:50 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/9000

State: open
Merged: No



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
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/9000 **State:** open **Merged:** No --- - Fixes #5294 (claude-opus-4.5 on azure unusable) - Cleaner implementation after #8966 reverted #8335 --- 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`. <img width="1673" height="1032" alt="Screenshot 2026-01-17 at 07 59 30" src="https://github.com/user-attachments/assets/bca41019-b960-46c5-ae89-9e609d71b724" />
yindo added the pull-request label 2026-02-16 18:17:50 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12948