feat: add support for GLM 5 (if) (#123)

(cherry picked from commit e26d65aa55726e330f6806aa1abfe05ac6801619)

Co-authored-by: zx <me@char.moe>
This commit is contained in:
zx07
2026-02-13 20:37:13 +08:00
committed by GitHub
parent d7d5dc90bc
commit 03ab554d1c
2 changed files with 8 additions and 0 deletions

View File

@@ -53,6 +53,7 @@ export const PROVIDER_MODELS = {
{ id: "minimax-m2.1", name: "MiniMax M2.1" },
{ id: "glm-4.7", name: "GLM 4.7" },
{ id: "glm-4.6", name: "GLM 4.6" },
{ id: "glm-5", name: "GLM 5" },
],
ag: [ // Antigravity - special case: models call different backends
{ id: "claude-opus-4-6-thinking", name: "Claude Opus 4.6 Thinking" },

View File

@@ -218,6 +218,13 @@ export const DEFAULT_PRICING = {
cached: 0.375,
reasoning: 4.50,
cache_creation: 0.75
},
"glm-5": {
input: 1.00,
output: 4.00,
cached: 0.50,
reasoning: 6.00,
cache_creation: 1.00
}
},