Skip to content

Azure OpenAI need to change completions -> responses #7180

Closed as not planned
Closed as not planned

Description

@synergiator

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

Activity

  1. github-actions commented on Jan 7, 2026

    @github-actions
    Contributor

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

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

  2. OmarMcAdam commented on Jan 17, 2026

    @OmarMcAdam

    addressed by #9036

  3. Dulani commented on Feb 26, 2026

    @Dulani

    We've been working with Azure Responses API in a restricted environment and hit this exact issue. Our current workaround routes to sdk.responses() for Azure providers, but we think an explicit config flag would be more robust for different Azure setups.

    Proposal: Add an optional use_responses: true config flag (following snake_case per contributing guidelines) so users can opt into the Responses API path. This would let Azure users choose based on their endpoint shape without guessing.

    If this approach sounds good, we're happy to assemble and test a clean PR before submitting. Thoughts?

  4. tbrandenburg commented on Mar 18, 2026

    @tbrandenburg

    Hej guys,
    any news on this?
    Actually I can't use any codex models deployed in Azure

  5. bakaburg1 commented on Apr 9, 2026

    @bakaburg1

    Me too...

  6. rekram1-node commented on Apr 21, 2026

    @rekram1-node
    Collaborator

    Everything should be using responses by default, if it's not please show me: opencode debug config so I know what to do?

  7. removed
    bugSomething isn't working
    on May 3, 2026
  8. rekram1-node commented on May 11, 2026

    @rekram1-node
    Collaborator

    closing since no activity can reopen if needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions