mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-11 17:52:31 +03:00
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:
committed by
GitHub
parent
08d1809b6e
commit
e545e68a68
1
changelog.d/fixes/8951-fix.plan.md
Normal file
1
changelog.d/fixes/8951-fix.plan.md
Normal file
@@ -0,0 +1 @@
|
||||
- fix(github): add targetFormat to GPT-5.6 Sol/Terra/Luna models (#8951)
|
||||
19
tests/unit/8951-github-gpt56-responses.test.ts
Normal file
19
tests/unit/8951-github-gpt56-responses.test.ts
Normal 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",
|
||||
});
|
||||
});
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user