Skip to content

Azure Foundry for opencode #14879

@kevinzhg

Description

@kevinzhg

Question

I am using the below in opencode.json,
"azure": {
"npm": "@ai-sdk/anthropic",
"options": {
"apiKey": [mykeys],
"baseURL": "https://my-resource.services.ai.azure.com/anthropic/v1/messages"
},
"models": {
"claude-opus-4-6": {
"name": "claude-opus-4-6"
}
}
}
And i got the error below, do you happen to know whats the problem and how to fix it?

hello
Not Found: {"error":{"code":"api_not_supported","message":"Requested API is currently not supported","details":"Requested API is currently not supported"}}
▣ Build · claude-opus-4-6

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions