Skip to content

fix: route copilot gpt-5.4 models to responses#13632

Merged
EurFelux merged 4 commits intoCherryHQ:mainfrom
kovsu:fix-#13305
Mar 20, 2026
Merged

fix: route copilot gpt-5.4 models to responses#13632
EurFelux merged 4 commits intoCherryHQ:mainfrom
kovsu:fix-#13305

Conversation

@kovsu
Copy link
Copy Markdown
Collaborator

@kovsu kovsu commented Mar 19, 2026

Before After
CleanShot 2026-03-19 at 16 42 31@2x CleanShot 2026-03-19 at 16 26 16@2x

@kovsu kovsu marked this pull request as ready for review March 19, 2026 08:43
@MyPrototypeWhat
Copy link
Copy Markdown
Collaborator

MyPrototypeWhat commented Mar 19, 2026

Note

This issue/comment/review was translated by Claude.

@DeJeune Will copilot go to legacy now?


Original Content

@DeJeune copilot现在会走到legacy吗

@DeJeune
Copy link
Copy Markdown
Collaborator

DeJeune commented Mar 19, 2026

Note

This issue/comment/review was translated by Claude.

@DeJeune Will copilot go to legacy now?

There is a list models that will go to it.


Original Content

@DeJeune Will copilot go to legacy now?

有个list models会走

const getHeaders = () => (0, import_provider_utils16.withUserAgentSuffix)(headers, `opeoginni/github-copilot-openai-compatible/${VERSION}`);
const createChatModel = (modelId) => {
- if (modelId.includes("codex")) {
+ if (modelId.includes("codex") || ["gpt-5.4", "gpt-5.4-mini"].includes(modelId)) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

从实际拉取的数据看,还有gpt-5.4 系列以外的只支持responses endpoint 的模型吗?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我再看一眼

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

copilot 没有 gpt-5.4-nano 吗?

Copy link
Copy Markdown
Collaborator Author

@kovsu kovsu Mar 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

copilot 没有 gpt-5.4-nano 吗?

没有

从实际拉取的数据看,还有gpt-5.4 系列以外的只支持responses endpoint 的模型吗?

看了一下应该是有 12 个支持 /responses 调用的

CleanShot 2026-03-20 at 08 35 48@2x

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

改了一下判断条件,只判断是否 gpt-5 开头,而不需要判断是否包含 codex。(已经验证了只要是 gpt-5开头的都支持 responses)

测试了一下,是 ok 的

CleanShot 2026-03-20 at 08 49 14@2x

Copy link
Copy Markdown
Collaborator

@EurFelux EurFelux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job👍

@EurFelux EurFelux merged commit 65271f3 into CherryHQ:main Mar 20, 2026
12 checks passed
@kovsu kovsu deleted the fix-#13305 branch March 20, 2026 02:10
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.

[Bug]: GitHub Copilot GPT-5.4 routes to /chat/completions instead of /responses endpoint

4 participants