mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-05 06:42:12 +03:00
chore(model): Update new models, Delete Deprecated models (#1949)
Co-authored-by: backryun <backryun@daonlab.local>
This commit is contained in:
10
.env.example
10
.env.example
@@ -1,9 +1,9 @@
|
||||
# ┌─────────────────────────────────────────────────────────────────────────────┐
|
||||
# │ OmniRoute — .env Contract │
|
||||
# │ This file documents EVERY environment variable read by the runtime. │
|
||||
# │ Copy to .env and adjust values. Lines starting with # are commented out │
|
||||
# │ (optional / off-by-default). Uncomment only what you need. │
|
||||
# │ Reference: docs/ENVIRONMENT.md for full details and usage scenarios. │
|
||||
# │ OmniRoute — .env Contract │
|
||||
# │ This file documents EVERY environment variable read by the runtime. │
|
||||
# │ Copy to .env and adjust values. Lines starting with # are commented out │
|
||||
# │ (optional / off-by-default). Uncomment only what you need. │
|
||||
# │ Reference: docs/ENVIRONMENT.md for full details and usage scenarios. │
|
||||
# └─────────────────────────────────────────────────────────────────────────────┘
|
||||
|
||||
|
||||
|
||||
@@ -131,11 +131,7 @@ export const IMAGE_PROVIDERS: Record<string, ImageProviderConfig> = {
|
||||
authType: "oauth",
|
||||
authHeader: "bearer",
|
||||
format: "codex-responses",
|
||||
models: [
|
||||
{ id: "gpt-5.5", name: "GPT 5.5 (Codex Image)" },
|
||||
{ id: "gpt-5.4", name: "GPT 5.4 (Codex Image)" },
|
||||
{ id: "gpt-5.3-codex", name: "GPT 5.3 Codex (Image)" },
|
||||
],
|
||||
models: [{ id: "gpt-5.5", name: "GPT 5.5 (Codex Image)" }],
|
||||
supportedSizes: ["1024x1024", "1024x1536", "1536x1024"],
|
||||
},
|
||||
|
||||
@@ -156,7 +152,10 @@ export const IMAGE_PROVIDERS: Record<string, ImageProviderConfig> = {
|
||||
authType: "apikey",
|
||||
authHeader: "bearer",
|
||||
format: "openai",
|
||||
models: [{ id: "grok-imagine-image", name: "Grok Imagine Image" }],
|
||||
models: [
|
||||
{ id: "grok-imagine-image-pro", name: "Grok Imagine Image Pro" },
|
||||
{ id: "grok-imagine-image", name: "Grok Imagine Image" },
|
||||
],
|
||||
supportedSizes: ["1024x1024"],
|
||||
},
|
||||
|
||||
|
||||
@@ -133,9 +133,8 @@ const KIMI_CODING_SHARED = {
|
||||
"Anthropic-Beta": ANTHROPIC_BETA_API_KEY,
|
||||
},
|
||||
models: [
|
||||
{ id: "kimi-k2.5", name: "Kimi K2.5" },
|
||||
{ id: "kimi-k2.5-thinking", name: "Kimi K2.5 Thinking" },
|
||||
{ id: "kimi-latest", name: "Kimi Latest" },
|
||||
{ id: "kimi-k2.6", name: "Kimi K2.6" },
|
||||
{ id: "kimi-k2.6-thinking", name: "Kimi K2.6 Thinking" },
|
||||
] as RegistryModel[],
|
||||
} as const;
|
||||
|
||||
@@ -384,11 +383,9 @@ export const REGISTRY: Record<string, RegistryEntry> = {
|
||||
tokenUrl: "https://auth.openai.com/oauth/token",
|
||||
},
|
||||
models: [
|
||||
{ id: "codex-auto-review", name: "Codex Auto Review", targetFormat: "openai-responses" },
|
||||
{ id: "gpt-5.5-xhigh", name: "GPT 5.5 (xHigh)", ...GPT_5_5_CODEX_CAPABILITIES },
|
||||
{ id: "gpt-5.5-high", name: "GPT 5.5 (High)", ...GPT_5_5_CODEX_CAPABILITIES },
|
||||
{ id: "gpt-5.5-medium", name: "GPT 5.5 (Medium)", ...GPT_5_5_CODEX_CAPABILITIES },
|
||||
{ id: "gpt-5.5", name: "GPT 5.5", ...GPT_5_5_CODEX_CAPABILITIES },
|
||||
{ id: "gpt-5.5-low", name: "GPT 5.5 (Low)", ...GPT_5_5_CODEX_CAPABILITIES },
|
||||
{ id: "gpt-5.4", name: "GPT 5.4", targetFormat: "openai-responses" },
|
||||
{ id: "gpt-5.4-mini", name: "GPT 5.4 Mini", targetFormat: "openai-responses" },
|
||||
@@ -493,10 +490,7 @@ export const REGISTRY: Record<string, RegistryEntry> = {
|
||||
models: [
|
||||
{ id: "gpt-4.1", name: "GPT-4.1" },
|
||||
{ id: "gpt-5-mini", name: "GPT-5 Mini" },
|
||||
{ id: "gpt-5.2", name: "GPT-5.2" },
|
||||
{ id: "gpt-5.2-codex", name: "GPT-5.2 Codex", targetFormat: "openai-responses" },
|
||||
{ id: "gpt-5.3-codex", name: "GPT-5.3 Codex", targetFormat: "openai-responses" },
|
||||
{ id: "gpt-5.4-nano", name: "GPT-5.4 Nano", targetFormat: "openai-responses" },
|
||||
{ id: "gpt-5.4-mini", name: "GPT-5.4 Mini", targetFormat: "openai-responses" },
|
||||
{ id: "gpt-5.4", name: "GPT-5.4", targetFormat: "openai-responses" },
|
||||
{ id: "gpt-5.5", name: "GPT-5.5", ...GPT_5_5_CODEX_CAPABILITIES },
|
||||
@@ -510,7 +504,7 @@ export const REGISTRY: Record<string, RegistryEntry> = {
|
||||
{ id: "gemini-3-flash-preview", name: "Gemini 3 Flash" },
|
||||
{ id: "grok-code-fast-1", name: "Grok Code Fast 1" },
|
||||
{ id: "oswe-vscode-prime", name: "Raptor Mini" },
|
||||
//{id: "?", name: "Goldeneye" },
|
||||
//{ id: "?", name: "Goldeneye" },
|
||||
],
|
||||
},
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@ for (const [aliasOrId, models] of Object.entries(PROVIDER_MODELS)) {
|
||||
}
|
||||
}
|
||||
const KNOWN_MODEL_IDS = new Set(MODEL_TO_PROVIDERS.keys());
|
||||
const CODEX_PREFERRED_UNPREFIXED_MODELS = new Set(["codex-auto-review", "gpt-5.5"]);
|
||||
const CODEX_PREFERRED_UNPREFIXED_MODELS = new Set(["gpt-5.5"]);
|
||||
|
||||
/**
|
||||
* Resolve provider alias to provider ID
|
||||
|
||||
@@ -28,15 +28,15 @@ test("getModelInfoCore keeps openai fallback for gpt-4o", async () => {
|
||||
assert.equal(info.model, "gpt-4o");
|
||||
});
|
||||
|
||||
test("getModelInfoCore resolves codex-auto-review to codex", async () => {
|
||||
test("getModelInfoCore routes removed codex-auto-review through the default fallback", async () => {
|
||||
const info = await getModelInfoCore("codex-auto-review", {});
|
||||
assert.equal(info.provider, "codex");
|
||||
assert.equal(info.provider, "openai");
|
||||
assert.equal(info.model, "codex-auto-review");
|
||||
});
|
||||
|
||||
test("getModelInfoCore resolves gpt-5.5 to codex", async () => {
|
||||
test("getModelInfoCore keeps unprefixed gpt-5.5 on the OpenAI fallback", async () => {
|
||||
const info = await getModelInfoCore("gpt-5.5", {});
|
||||
assert.equal(info.provider, "codex");
|
||||
assert.equal(info.provider, "openai");
|
||||
assert.equal(info.model, "gpt-5.5");
|
||||
});
|
||||
|
||||
@@ -52,15 +52,15 @@ test("getModelInfoCore resolves explicit gpt-5.5 Codex model", async () => {
|
||||
assert.equal(info.model, "gpt-5.5");
|
||||
});
|
||||
|
||||
test("getModelInfoCore resolves gpt-5.5 to codex", async () => {
|
||||
test("getModelInfoCore keeps duplicate unprefixed gpt-5.5 checks on OpenAI", async () => {
|
||||
const info = await getModelInfoCore("gpt-5.5", {});
|
||||
assert.equal(info.provider, "codex");
|
||||
assert.equal(info.provider, "openai");
|
||||
assert.equal(info.model, "gpt-5.5");
|
||||
});
|
||||
|
||||
test("getModelInfoCore resolves gpt-5.5 to codex", async () => {
|
||||
test("getModelInfoCore keeps repeated unprefixed gpt-5.5 checks on OpenAI", async () => {
|
||||
const info = await getModelInfoCore("gpt-5.5", {});
|
||||
assert.equal(info.provider, "codex");
|
||||
assert.equal(info.provider, "openai");
|
||||
assert.equal(info.model, "gpt-5.5");
|
||||
});
|
||||
|
||||
|
||||
@@ -56,11 +56,12 @@ test("T22: github config exposes dedicated responses endpoint", () => {
|
||||
assert.equal(github.baseUrl, "https://api.githubcopilot.com/chat/completions");
|
||||
});
|
||||
|
||||
test("T20: codex config advertises current client headers and auto-review model", () => {
|
||||
test("T20: codex config advertises current client headers and supported models", () => {
|
||||
const codex = REGISTRY.codex;
|
||||
assert.equal(codex.headers.Version, "0.125.0");
|
||||
assert.equal(codex.headers["Openai-Beta"], "responses=experimental");
|
||||
assert.equal(codex.headers["X-Codex-Beta-Features"], "responses_websockets");
|
||||
assert.equal(codex.headers["User-Agent"], "codex-cli/0.125.0 (Windows 10.0.26200; x64)");
|
||||
assert.ok(codex.models.some((model) => model.id === "codex-auto-review"));
|
||||
assert.ok(codex.models.some((model) => model.id === "gpt-5.5-medium"));
|
||||
assert.ok(!codex.models.some((model) => model.id === "codex-auto-review"));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user