Files
OmniRoute/tests/unit/cli-model-config-schema.test.ts
be0hhh c9aef0e595 feat(codex): support GPT-5.5 responses websocket (#1573)
Integrated into release/v3.7.0
2026-04-24 15:44:59 -03:00

20 lines
561 B
TypeScript

import test from "node:test";
import assert from "node:assert/strict";
import { cliModelConfigSchema } from "../../src/shared/validation/schemas.ts";
test("cliModelConfigSchema accepts Codex xhigh reasoning effort", () => {
const result = cliModelConfigSchema.safeParse({
baseUrl: "http://localhost:20128/api/v1",
apiKey: "sk_omniroute",
model: "gpt-5.5",
reasoningEffort: "xhigh",
wireApi: "responses",
});
assert.equal(result.success, true);
if (result.success) {
assert.equal(result.data.reasoningEffort, "xhigh");
}
});