Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/gateway/e2e/eval.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ const UNCERTAIN = { ...AUTH, "x-helm-rules-threshold": "0.99" };
// executes in hermetic CI. No OAuth accounts are bound in this fixture, so the
// subscription aliases fail open and both balanced/premium eventually serve the
// keyed DeepSeek Pro fallback through the local mock.
const BALANCED_CONFIGURED_PRIMARY = "gpt-6.1-sol";
const PREMIUM_CONFIGURED_PRIMARY = "gpt-6-astra";
const BALANCED_CONFIGURED_PRIMARY = "gpt-sol";
const PREMIUM_CONFIGURED_PRIMARY = "gpt-astra";
const QUALITY_EXECUTION_FALLBACK = "openrouter/deepseek-v4-pro";

// An intentionally ambiguous prompt: no strong Layer-1 keyword signal. Paired
Expand Down
6 changes: 3 additions & 3 deletions apps/gateway/e2e/routing.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ const AUTH = { Authorization: `Bearer ${TEST_KEY}`, "Content-Type": "application
// NO-SUBSCRIPTION FAIL-OPEN (the CI reality). Keep configured subscription
// primaries distinct from the keyed static models that actually execute when no
// OAuth account is bound.
const ECONOMY_CONFIGURED_PRIMARY = "gpt-6-luna";
const PREMIUM_CONFIGURED_PRIMARY = "gpt-6-astra";
const BALANCED_CONFIGURED_PRIMARY = "gpt-6.1-sol";
const ECONOMY_CONFIGURED_PRIMARY = "gpt-luna";
const PREMIUM_CONFIGURED_PRIMARY = "gpt-astra";
const BALANCED_CONFIGURED_PRIMARY = "gpt-sol";
const ECONOMY_EXECUTION_FALLBACK = "openrouter/deepseek-v4-flash";
const QUALITY_EXECUTION_FALLBACK = "openrouter/deepseek-v4-pro";
// Paid OpenAI aliases are absent from shipped lanes but deliberately remain
Expand Down
23 changes: 15 additions & 8 deletions apps/gateway/src/routes/execute.default-config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,10 @@ function providerClients(client: ProviderClient): Map<string, ProviderClient> {

describe("default config activates capability filter + cost (alias-namespace alignment)", () => {
it.each([
"gpt-6-astra",
"gpt-6.1-sol",
"gpt-6.1-terra",
"gpt-6-luna",
"gpt-astra",
"gpt-sol",
"gpt-terra",
"gpt-luna",
])("the shipped %s model lane preserves the Codex client's reasoning effort", (lane) => {
expect(lanes[lane]?.reasoning_effort).toBeUndefined();
});
Expand All @@ -182,16 +182,23 @@ describe("default config activates capability filter + cost (alias-namespace ali
"gpt-6.1-terra",
"gpt-6-luna",
])("routes shipped %s aliases and registers its official upstream", (model) => {
expect(lanes[model]?.primary).toBe(`openai-codex/${model}`);
expect(lanes[model]?.reasoning_effort).toBeUndefined();
expect(expandChain(model)[1]).toBe("deepseek-responses/deepseek-flash");
const laneNames: Record<string, string> = {
"gpt-6.1-sol": "gpt-sol",
"gpt-6.1-terra": "gpt-terra",
"gpt-6-luna": "gpt-luna",
};
const lane = laneNames[model];
if (!lane) throw new Error(`Missing lane mapping for ${model}`);
expect(lanes[lane]?.primary).toBe(`openai-codex/${model}`);
expect(lanes[lane]?.reasoning_effort).toBeUndefined();
expect(expandChain(lane)[1]).toBe("deepseek-responses/deepseek-flash");
for (const alias of [
model,
`${model}-2026-09-25`,
`openai.${model}`,
`openai.${model}-2026-09-25`,
]) {
expect(resolveModelAlias(alias, config.model_aliases)).toBe(model);
expect(resolveModelAlias(alias, config.model_aliases)).toBe(lane);
}
expect(
config.providers.find(
Expand Down
Loading