Skip to content

copilot: unsupported_api_for_model #2303

Closed

Description

@Adphi

Describe the bug

all models failed: error receiving from stream: HTTP 400: POST "https://api.githubcopilot.com/chat/completions": 400 Bad Request {"message":"model "gpt-5.3-codex" is not accessible via the /chat/completions endpoint","code":"unsupported_api_for_model"}

Version affected

$ docker-agent version
docker-agent version v1.40.0
Commit: Homebrew

How To Reproduce

  1. Export the GITHUB_TOKEN env variable:
    $ export GITHUB_TOKEN=$(gh auth token)
    
  2. Select the github-copilot/gpt-5.3-codex model
  3. Ask anything to the agent
  4. See error

Activity

  1. changed the title [-]<short bug description>[/-] [+]copilot: unsupported_api_for_model[/+] on Apr 1, 2026
  2. joshbarrington commented on Apr 5, 2026

    @joshbarrington
    Contributor

    Are you using your own defined agent .yaml file?

    I tested this and it works if you specify the api_type as openapi_response

    models:
      gpt-5-codex:
        provider: github-copilot
        model: gpt-5.3-codex
        provider_opts:
          api_type: openai_responses
    
    agents:
      root:
        model: gpt-5-codex
    
  3. liketosweep commented on Apr 10, 2026

    @liketosweep

    Hi @Adphi and @joshbarrington! I would love to pick this up.
    Building on Josh's finding, it looks like the api_type: openai_responses configuration is the correct path. Should the permanent fix be to update the provider's default configuration in the Go code so that gpt-5.3-codex automatically defaults to this API type without requiring users to write a custom .yaml override?
    If that sounds like the right approach, I can draft a PR to implement that logic. Could I get this assigned?

    /assign

  4. joshbarrington commented on Apr 10, 2026

    @joshbarrington
    Contributor

    @liketosweep i actually already have a default fix for this. I'll open the MR.

  5. liketosweep commented on Apr 10, 2026

    @liketosweep

    Awesome, thanks for taking care of it @joshbarrington Feel free to tag or link me when the PR/MR is up I already have the environment pulled down locally, so I'd be more than happy to help test the fix or review the code.

  6. added theissue type on May 5, 2026
  7. added
    area/providers/openai
    and removed on May 5, 2026
  8. changed the issue type fromtoon May 22, 2026
  9. changed the issue type fromtoon May 22, 2026
  10. removed theissue type on May 23, 2026
  11. added theissue type on May 23, 2026
  12. added
    area/providers
    on May 23, 2026
  13. changed the issue type fromtoon May 24, 2026
  14. changed the issue type fromtoon May 24, 2026
  15. added
    kind/fix
    on May 26, 2026
  16. added a commit that references this issue on Jun 3, 2026
    14045c7
  17. removed
    kind/fix
    on Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/providersarea/providers/openai

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions