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

Closed
opened 2026-02-16 17:39:13 -05:00 by yindo · 7 comments
Owner

Originally created by @frap129 on GitHub (Dec 1, 2025).

Originally assigned to: @rekram1-node on GitHub.

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

Originally created by @frap129 on GitHub (Dec 1, 2025). Originally assigned to: @rekram1-node on GitHub. ### 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 ``` <img width="507" height="207" alt="Image" src="https://github.com/user-attachments/assets/7ee0f8c7-c092-437b-a1e8-fc6ce451bb57" /> 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
yindo added the bug label 2026-02-16 17:39:13 -05:00
yindo closed this issue 2026-02-16 17:39:13 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 1, 2025):

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

  • #2890: gpt-5-codex through GitHub Copilot provider returns API call error - discusses gpt-5 model variants requiring the /responses API endpoint instead of /chat/completions
  • #4561: Error using gpt-5.1-codex via Github Copilot - similar model endpoint compatibility issue with GitHub Copilot provider
  • #4819: Model not supported errors and gpt-5.1-codex endpoint issues with GitHub Copilot provider
  • #3019: GitHub Copilot integration missing from CUSTOM_LOADERS in provider.ts - broader context on GitHub Copilot model support

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.

@github-actions[bot] commented on GitHub (Dec 1, 2025): This issue might be a duplicate of existing issues. Please check: - #2890: `gpt-5-codex` through GitHub Copilot provider returns API call error - discusses gpt-5 model variants requiring the `/responses` API endpoint instead of `/chat/completions` - #4561: Error using gpt-5.1-codex via Github Copilot - similar model endpoint compatibility issue with GitHub Copilot provider - #4819: Model not supported errors and gpt-5.1-codex endpoint issues with GitHub Copilot provider - #3019: GitHub Copilot integration missing from CUSTOM_LOADERS in provider.ts - broader context on GitHub Copilot model support 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.
Author
Owner

@rekram1-node commented on GitHub (Dec 1, 2025):

lol whoops ill fix

@rekram1-node commented on GitHub (Dec 1, 2025): lol whoops ill fix
Author
Owner

@frap129 commented on GitHub (Dec 1, 2025):

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

@frap129 commented on GitHub (Dec 1, 2025): fwiw, I tried the rest of the gpt-5 models on github copilot and the rest work fine
Author
Owner

@rekram1-node commented on GitHub (Dec 1, 2025):

Image

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

@rekram1-node commented on GitHub (Dec 1, 2025): <img width="463" height="461" alt="Image" src="https://github.com/user-attachments/assets/9c4df901-d52f-43b6-8d8f-e879c8b00c22" /> @frap129 hmmm this is weird it works via responses for me
Author
Owner

@rekram1-node commented on GitHub (Dec 1, 2025):

@frap129 can you do:

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

and show me output

@rekram1-node commented on GitHub (Dec 1, 2025): @frap129 can you do: ``` cat ~/.cache/opencode/version (cd ~/.cache/opencode && BUN_BE_BUN=1 opencode list) ``` and show me output
Author
Owner

@frap129 commented on GitHub (Dec 1, 2025):

❯ 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
@frap129 commented on GitHub (Dec 1, 2025): ``` ❯ 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 ```
Author
Owner

@rekram1-node commented on GitHub (Dec 1, 2025):

fixed in next release:
https://github.com/sst/opencode/commit/f1bb5870ce7a3f0aacab9091cbc30fc7046dd471

@rekram1-node commented on GitHub (Dec 1, 2025): fixed in next release: https://github.com/sst/opencode/commit/f1bb5870ce7a3f0aacab9091cbc30fc7046dd471
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3227