fix(github): add targetFormat to GPT-5.6 Sol/Terra/Luna models (#8951)

Closes #8951
Refs: base-red #9737
fix/8951-github-copilot-gpt56-respons
This commit is contained in:
Diego Rodrigues de Sa e Souza
2026-08-08 11:25:30 -03:00
committed by GitHub
parent 08d1809b6e
commit e545e68a68
3 changed files with 23 additions and 0 deletions

View File

@@ -0,0 +1 @@
- fix(github): add targetFormat to GPT-5.6 Sol/Terra/Luna models (#8951)

View File

@@ -0,0 +1,19 @@
import assert from "node:assert/strict";
import test from "node:test";
import { GithubExecutor } from "../../open-sse/executors/github.ts";
test("#8951 GitHub GPT-5.6 models must use the Responses endpoint", () => {
const executor = new GithubExecutor();
const urls = Object.fromEntries(
["gpt-5.6-sol", "gpt-5.6-terra", "gpt-5.6-luna"].map((model) => [
model,
executor.buildUrl(model, false),
])
);
assert.deepEqual(urls, {
"gpt-5.6-sol": "https://api.githubcopilot.com/responses",
"gpt-5.6-terra": "https://api.githubcopilot.com/responses",
"gpt-5.6-luna": "https://api.githubcopilot.com/responses",
});
});

View File

@@ -67,6 +67,9 @@ for (const id of [
"gpt-5.4-mini",
"gpt-5.4",
"gpt-5.5",
"gpt-5.6-sol",
"gpt-5.6-terra",
"gpt-5.6-luna",
"mai-code-1-flash",
"gpt-5-mini",
"oswe-vscode-prime",