Files
OmniRoute/tests/unit/8951-github-gpt56-responses.test.ts
Diego Rodrigues de Sa e Souza e545e68a68 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
2026-08-08 11:25:30 -03:00

20 lines
654 B
TypeScript

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",
});
});