Skip to content

github copilot: gpt-5-mini not supported via responses api #4943

Closed

Description

@frap129

Description

Thank you for fixing gpt-5.1 and codex variants on copilot! It seems that an exception is needed in provider.ts for gpt-5-mini.

ERROR 2025-12-01T15:30:53 +131ms service=session.prompt error=model gpt-5-mini is not supported via Responses API. model=gpt-5-mini failed to generate title
Image

Looks like a simple enough fix. In provider.ts, if (modelID.includes("gpt-5")) should be if (modelID.includes("gpt-5") && modelID != "gpt-5-mini" )

OpenCode version

1.0.125

Steps to reproduce

  1. Start opencode
  2. Set model to github-copilot/gpt-5-mini
  3. Send prompt

Screenshot and/or share link

No response

Operating System

Ubuntu 24.04

Terminal

Alacritty

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Dec 1, 2025
  2. github-actions commented on Dec 1, 2025

    @github-actions
    Contributor

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

    These issues discuss the same underlying problem where certain gpt-5 model variants (including gpt-5-mini) require special endpoint handling for GitHub Copilot. Feel free to ignore if this specific case differs from those issues.

  3. rekram1-node commented on Dec 1, 2025

    @rekram1-node
    Contributor

    lol whoops ill fix

  4. frap129 commented on Dec 1, 2025

    @frap129
    Author

    fwiw, I tried the rest of the gpt-5 models on github copilot and the rest work fine

  5. removed
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Dec 1, 2025
  6. self-assigned this
    on Dec 1, 2025
  7. rekram1-node commented on Dec 1, 2025

    @rekram1-node
    Contributor
    Image

    @frap129 hmmm this is weird it works via responses for me

  8. rekram1-node commented on Dec 1, 2025

    @rekram1-node
    Contributor

    @frap129 can you do:

    cat ~/.cache/opencode/version
    (cd ~/.cache/opencode && BUN_BE_BUN=1 opencode list)
    

    and show me output

  9. frap129 commented on Dec 1, 2025

    @frap129
    Author
    ❯ cat ~/.cache/opencode/version
    (cd ~/.cache/opencode && BUN_BE_BUN=1 opencode list)
    12
    /home/joe/.cache/opencode node_modules (134)
    ├── opencode-anthropic-auth@0.0.3
    ├── opencode-copilot-auth@0.0.7
    └── opencode-skills@0.1.0
    
  10. rekram1-node commented on Dec 1, 2025

    @rekram1-node
    Contributor

    fixed in next release:
    f1bb587

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions