Replace retired OpenRouter Elephant route
This commit is contained in:
parent
7a09d476c1
commit
b81138e2ed
2 changed files with 27 additions and 3 deletions
|
|
@ -240,6 +240,13 @@ describe("MODELS structural invariants", () => {
|
|||
}
|
||||
});
|
||||
|
||||
it("replaces retired OpenRouter Elephant alias with current Ling routes", () => {
|
||||
const openrouterModels = MODELS["openrouter"] as Record<string, unknown>;
|
||||
assert.equal(openrouterModels["openrouter/elephant-alpha"], undefined);
|
||||
assert.ok(openrouterModels["inclusionai/ling-2.6-1t:free"]);
|
||||
assert.ok(openrouterModels["inclusionai/ling-2.6-flash"]);
|
||||
});
|
||||
|
||||
it("no provider has duplicate model IDs", () => {
|
||||
const duplicates: string[] = [];
|
||||
for (const [providerKey, providerModels] of Object.entries(MODELS)) {
|
||||
|
|
|
|||
|
|
@ -9683,9 +9683,9 @@ export const MODELS = {
|
|||
contextWindow: 200000,
|
||||
maxTokens: 100000,
|
||||
} satisfies Model<"openai-completions">,
|
||||
"openrouter/elephant-alpha": {
|
||||
id: "openrouter/elephant-alpha",
|
||||
name: "Elephant",
|
||||
"inclusionai/ling-2.6-1t:free": {
|
||||
id: "inclusionai/ling-2.6-1t:free",
|
||||
name: "inclusionAI: Ling-2.6-1T (free)",
|
||||
api: "openai-completions",
|
||||
provider: "openrouter",
|
||||
baseUrl: "https://openrouter.ai/api/v1",
|
||||
|
|
@ -9700,6 +9700,23 @@ export const MODELS = {
|
|||
contextWindow: 262144,
|
||||
maxTokens: 32768,
|
||||
} satisfies Model<"openai-completions">,
|
||||
"inclusionai/ling-2.6-flash": {
|
||||
id: "inclusionai/ling-2.6-flash",
|
||||
name: "inclusionAI: Ling-2.6-flash",
|
||||
api: "openai-completions",
|
||||
provider: "openrouter",
|
||||
baseUrl: "https://openrouter.ai/api/v1",
|
||||
reasoning: false,
|
||||
input: ["text"],
|
||||
cost: {
|
||||
input: 0.08,
|
||||
output: 0.24,
|
||||
cacheRead: 0.016,
|
||||
cacheWrite: 0,
|
||||
},
|
||||
contextWindow: 262144,
|
||||
maxTokens: 32768,
|
||||
} satisfies Model<"openai-completions">,
|
||||
"prime-intellect/intellect-3": {
|
||||
id: "prime-intellect/intellect-3",
|
||||
name: "Prime Intellect: INTELLECT-3",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue