mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-11 17:52:31 +03:00
20 lines
654 B
TypeScript
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",
|
|
});
|
|
});
|