Azure OpenAI need to change completions -> responses #4346

Open
opened 2026-02-16 17:43:31 -05:00 by yindo · 2 comments
Owner

Originally created by @synergiator on GitHub (Jan 7, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

Recently, my Azure OpenAI configuartion seizes to work.

In the Azure AI Foundry I find this endpoint: ....cognitiveservices.azure.com/openai/responses?api-version=2025-04-01-preview"

So it's "responses"

Using the base URL ".../openai" as usual renders however a runtime error "Resource not found", and in the opencode log I see it tried to take the "completions" route. (as of 1.1.4 for example)

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @synergiator on GitHub (Jan 7, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description Recently, my Azure OpenAI configuartion seizes to work. In the Azure AI Foundry I find this endpoint: ...<RSN>.cognitiveservices.azure.com/openai/responses?api-version=2025-04-01-preview" So it's "responses" Using the base URL ".../openai" as usual renders however a runtime error "Resource not found", and in the opencode log I see it tried to take the "completions" route. (as of 1.1.4 for example) ### Plugins _No response_ ### OpenCode version _No response_ ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the bug label 2026-02-16 17:43:31 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 7, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #1508: Azure OpenAI generated URL is wrong? (/v1/) added in between - Reports Azure URL configuration issues with improper endpoint generation
  • #1413: Azure Responses API - Notes that newer Azure models don't support the completions API and should use the responses API instead

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 7, 2026): This issue might be a duplicate of existing issues. Please check: - #1508: Azure OpenAI generated URL is wrong? (/v1/) added in between - Reports Azure URL configuration issues with improper endpoint generation - #1413: Azure Responses API - Notes that newer Azure models don't support the completions API and should use the responses API instead Feel free to ignore if none of these address your specific case.
Author
Owner

@OmarMcAdam commented on GitHub (Jan 17, 2026):

addressed by #9036

@OmarMcAdam commented on GitHub (Jan 17, 2026): addressed by #9036
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4346