fix: migrate glm-4-flash to glm-4-flash-250414 (model deprecated by Zhipu)
Some checks failed
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled

Zhipu AI has deprecated glm-4-flash, causing 404 errors on all chat requests.
Updated all references:
- config: glm-4-flash → glm-4-flash-250414, added glm-z1-flash
- frontend: defaultModel, conversationStore, ChatArea fallback, ModelsAPI
This commit is contained in:
iven
2026-04-09 18:42:47 +08:00
parent 5f47e62a46
commit 1965fa5269
6 changed files with 18 additions and 11 deletions

View File

@@ -51,11 +51,11 @@ export const PROVIDER_DEFAULTS = {
},
zhipu: {
baseUrl: 'https://open.bigmodel.cn/api/paas/v4',
defaultModel: 'glm-4-flash',
defaultModel: 'glm-4-flash-250414',
},
zhipu_coding: {
baseUrl: 'https://open.bigmodel.cn/api/coding/paas/v4',
defaultModel: 'glm-4-flash',
defaultModel: 'glm-4-flash-250414',
},
kimi: {
baseUrl: 'https://api.moonshot.cn/v1',