Skip to content

Commit 7e210e0

Browse files
committed
🤖 feat: update model pricing database and add GLM-4.6
Ran scripts/update_models.ts to pull latest model data from LiteLLM. Added Z.AI GLM-4.6 to models-extra.ts with OpenRouter pricing: - 200K context window (202,752 tokens) - $0.40/M input, $1.75/M output - Supports tool use, reasoning, and structured outputs This fixes model stat lookups for: - openrouter:z-ai/glm-4.6 - openrouter:anthropic/claude-3.7-sonnet:thinking (already in models.json) Changes: - Updated src/utils/tokens/models.json (3,379 additions from LiteLLM) - Added openrouter/z-ai/glm-4.6 to models-extra.ts _Generated with `cmux`_
1 parent 51d19cd commit 7e210e0

File tree

2 files changed

+3394
-655
lines changed

2 files changed

+3394
-655
lines changed

src/utils/tokens/models-extra.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,19 @@ export const modelsExtra: Record<string, ModelData> = {
5555
supports_vision: true,
5656
supports_response_schema: true,
5757
},
58+
59+
// Z.AI GLM 4.6 via OpenRouter
60+
// $0.40/M input, $1.75/M output (OpenRouter pricing)
61+
// 200K context window, supports tool use and reasoning
62+
"openrouter/z-ai/glm-4.6": {
63+
max_input_tokens: 202752,
64+
max_output_tokens: 202752,
65+
input_cost_per_token: 0.0000004, // $0.40 per million input tokens
66+
output_cost_per_token: 0.00000175, // $1.75 per million output tokens
67+
litellm_provider: "openrouter",
68+
mode: "chat",
69+
supports_function_calling: true,
70+
supports_reasoning: true,
71+
supports_response_schema: true,
72+
},
5873
};

0 commit comments

Comments
 (0)