mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-01 21:02:12 +03:00
- Add glm-5.1 model to GLM Coding provider with fitness scores - Update glm-5 pricing to match Z.AI API page ($1/$3.2/$0.2) - Set glm-5.1 pricing to $1.2/$5/$0.3 per Z.AI - Remove glm-4-32b (deprecated, returns empty from upstream) - Rename Z.AI provider display name from "Z.AI (GLM-5)" to "Z.AI" - Update zai pricing section to match glm pricing
35 lines
1.5 KiB
JavaScript
35 lines
1.5 KiB
JavaScript
import test from "node:test";
|
|
import assert from "node:assert/strict";
|
|
|
|
import { getDefaultPricing } from "../../src/shared/constants/pricing.ts";
|
|
import { REGISTRY } from "../../open-sse/config/providerRegistry.ts";
|
|
|
|
test("T12: pricing table includes MiniMax, GLM, Kimi and gpt-5.4 mini entries", () => {
|
|
const pricing = getDefaultPricing();
|
|
|
|
assert.ok(pricing.cx["gpt-5.4"], "missing cx/gpt-5.4");
|
|
assert.ok(pricing.cx["gpt-5.4-mini"], "missing cx/gpt-5.4-mini");
|
|
|
|
assert.ok(pricing.minimax["minimax-m2.5"], "missing minimax/minimax-m2.5");
|
|
assert.ok(pricing.minimax["minimax-m2.7"], "missing minimax/minimax-m2.7");
|
|
assert.equal(pricing.minimax["minimax-m2.5"].input, 0.27);
|
|
assert.equal(pricing.minimax["minimax-m2.5"].output, 0.95);
|
|
|
|
assert.ok(pricing.glm["glm-4.7"], "missing glm/glm-4.7");
|
|
assert.ok(pricing.glm["glm-5"], "missing glm/glm-5");
|
|
assert.equal(pricing.glm["glm-4.7"].input, 0.6);
|
|
assert.equal(pricing.glm["glm-4.7"].output, 2.2);
|
|
|
|
assert.ok(pricing.kimi["kimi-k2.5"], "missing kimi/kimi-k2.5");
|
|
assert.ok(pricing.kimi["kimi-k2.5-thinking"], "missing kimi/kimi-k2.5-thinking");
|
|
assert.ok(pricing.kimi["kimi-for-coding"], "missing kimi/kimi-for-coding");
|
|
});
|
|
|
|
test("T12: minimax default model list starts with M2.7", () => {
|
|
const minimaxModels = REGISTRY.minimax.models.map((m) => m.id);
|
|
const minimaxCnModels = REGISTRY["minimax-cn"].models.map((m) => m.id);
|
|
|
|
assert.equal(minimaxModels[0], "minimax-m2.7");
|
|
assert.equal(minimaxCnModels[0], "minimax-m2.7");
|
|
});
|