Skip to content

[FEATURE]: Azure OpenAI Cognitive Services support #4334

@PanAchy

Description

@PanAchy

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

At this time, Azure OpenAI has a different endpoint format for certain models.
Typically, it looks like these for models like gpt-4.1-mini: https://RESOURCENAME.openai.azure.com/openai/v1
For models that are in an experimental phase, like GPT-5 and GPT-5-Codex, which actually requires you to sign up for access, the endpoint looks like this: https://RESOURCENAME.cognitiveservices.azure.com/openai/v1

Important note: the openai.azure.com based models have a different API key than the cognitiveservices.azure.com based models, which means that this would need to be integrated into the opencode auth login process to manage the two keys, either by asking for an additional optional key for the Azure option, or adding an Azure Cognitive Services option, or whatever else you thing makes sense.

Can we add support for this?

Metadata

Metadata

Assignees

Labels

discussionUsed for feature requests, proposals, ideas, etc. Open discussionhelp-wanted

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