e4de9509c7
- Repointed tests off removed gpt-5.2/5.3 codex variants and devin models (e06ac0b787): context-promotion and TTSR tests pin gpt-5.5 -> gpt-5.6-sol via per-test modelOverrides since no bundled codex model has a runtime-effective promotion target anymore; replay-boundary and history-payload suites use gpt-5.5; advisor quota fallback uses devin/swe-1-6-slow with suffix-less selectors per #4579 devin-agent semantics; gateway-reference pins kilo/giga-potato and now asserts the reference carries effortRouting so the cross-provider no-inherit contract stays meaningful.
- Verified cross-provider gateway references do not inherit wire routing after variant collapse (identity/reference.ts:145-154) - stale test, no product bug.
19 lines
887 B
TypeScript
19 lines
887 B
TypeScript
import { describe, expect, test } from "bun:test";
|
|
import { getBundledModelReferenceIndex } from "../src/identity/bundled";
|
|
import { inheritReferenceThinking, resolveModelReference } from "../src/identity/reference";
|
|
|
|
describe("Portkey gateway model references", () => {
|
|
test("@modal ids do not fuzzy-match bundled catalog entries", () => {
|
|
const index = getBundledModelReferenceIndex();
|
|
expect(resolveModelReference("@modal/GLM-5-2-FP8", index)).toBeUndefined();
|
|
});
|
|
|
|
test("cross-provider references do not inherit wire routing thinking", () => {
|
|
const index = getBundledModelReferenceIndex();
|
|
const kiloGigaPotato = resolveModelReference("giga-potato", index);
|
|
expect(kiloGigaPotato?.provider).toBe("kilo");
|
|
expect(kiloGigaPotato?.thinking?.effortRouting).toBeDefined();
|
|
expect(inheritReferenceThinking(undefined, kiloGigaPotato, "gateway")).toBeUndefined();
|
|
});
|
|
});
|