opencode icon indicating copy to clipboard operation
opencode copied to clipboard

fix(app): support anthropic models on azure cognitive services

Open uanandaraja opened this issue 13 hours ago • 1 comments

  • 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.

Screenshot 2026-01-17 at 07 59 30

uanandaraja avatar Jan 17 '26 00:01 uanandaraja