mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-08 08:12:20 +03:00
Compare commits
1 Commits
fix/i18n-h
...
fix/8951-g
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
778a6b6013 |
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)
|
||||
@@ -122,9 +122,9 @@ export const githubProvider: RegistryEntry = {
|
||||
contextLength: 1000000,
|
||||
maxOutputTokens: 64000,
|
||||
},
|
||||
{ id: "gpt-5.6-sol", name: "GPT-5.6 Sol", maxOutputTokens: 128000 },
|
||||
{ id: "gpt-5.6-terra", name: "GPT-5.6 Terra", maxOutputTokens: 128000 },
|
||||
{ id: "gpt-5.6-luna", name: "GPT-5.6 Luna", maxOutputTokens: 128000 },
|
||||
{ id: "gpt-5.6-sol", name: "GPT-5.6 Sol", targetFormat: "openai-responses", maxOutputTokens: 128000 },
|
||||
{ id: "gpt-5.6-terra", name: "GPT-5.6 Terra", targetFormat: "openai-responses", maxOutputTokens: 128000 },
|
||||
{ id: "gpt-5.6-luna", name: "GPT-5.6 Luna", targetFormat: "openai-responses", maxOutputTokens: 128000 },
|
||||
{ id: "gpt-5.5", name: "GPT-5.5", ...GPT_5_5_CODEX_CAPABILITIES, maxOutputTokens: 128000 },
|
||||
{
|
||||
id: "gpt-5.4",
|
||||
|
||||
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