Skip to content

Fix default api_type for specific github copilot models#2376

Open
joshbarrington wants to merge 2 commits intodocker:mainfrom
joshbarrington:fix/githubcopilot-model-defaults
Open

Fix default api_type for specific github copilot models#2376
joshbarrington wants to merge 2 commits intodocker:mainfrom
joshbarrington:fix/githubcopilot-model-defaults

Conversation

@joshbarrington
Copy link
Copy Markdown

@joshbarrington joshbarrington commented Apr 10, 2026

closes: #2303

Some Github Copilot models require the /responses endpoint as opposed to /chat/completions.

These are not set by default, and so certain models will fail unless a custom agent config is set with api_type: openai_responses. This sets the default for these models as openai_responses.

@liketosweep

@joshbarrington joshbarrington requested a review from a team as a code owner April 10, 2026 15:48
@joshbarrington
Copy link
Copy Markdown
Author

joshbarrington commented Apr 10, 2026

@liketosweep can you also test this? I've actually ran out of Github Copliot credit 😆 .

dgageot
dgageot previously approved these changes Apr 10, 2026
@liketosweep
Copy link
Copy Markdown

Hey @joshbarrington, just saw @dgageot gave it the green light! I was getting ready to pull it down but ran out of time on my end tonight before logging off. Thrilled it got approved and is ready to merge though great fix.

@joshbarrington
Copy link
Copy Markdown
Author

@dgageot I just realised it makes sense to call the function earlier inside applyModelDefaults to avoid returning early.

I'll push that change now

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

copilot: unsupported_api_for_model

3 participants