build: pin Rust toolchain to 1.92 for reliable builds

* build: pin Rust toolchain to 1.92 for reliable builds

* feat(onboard): add GLM-5 as selectable Zhipu model

* fix(onboard): map zhipu alias to GLM model selections

* fix(onboard): map zhipu alias to GLM model selections

* fix(onboard): show model options for Z.AI provider
This commit is contained in:
Leonardo Gonzalez 2026-02-15 14:36:18 -05:00 committed by GitHub
parent 49bb20f961
commit 92c42dc24d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

2
rust-toolchain.toml Normal file
View file

@ -0,0 +1,2 @@
[toolchain]
channel = "1.92"

View file

@ -399,6 +399,7 @@ fn default_model_for_provider(provider: &str) -> String {
match provider { match provider {
"anthropic" => "claude-sonnet-4-20250514".into(), "anthropic" => "claude-sonnet-4-20250514".into(),
"openai" => "gpt-4o".into(), "openai" => "gpt-4o".into(),
"glm" | "zhipu" | "zai" | "z.ai" => "glm-5".into(),
"ollama" => "llama3.2".into(), "ollama" => "llama3.2".into(),
"groq" => "llama-3.3-70b-versatile".into(), "groq" => "llama-3.3-70b-versatile".into(),
"deepseek" => "deepseek-chat".into(), "deepseek" => "deepseek-chat".into(),
@ -646,6 +647,8 @@ fn setup_provider() -> Result<(String, String, String)> {
"xai" => "https://console.x.ai", "xai" => "https://console.x.ai",
"cohere" => "https://dashboard.cohere.com/api-keys", "cohere" => "https://dashboard.cohere.com/api-keys",
"moonshot" => "https://platform.moonshot.cn/console/api-keys", "moonshot" => "https://platform.moonshot.cn/console/api-keys",
"glm" | "zhipu" => "https://open.bigmodel.cn/usercenter/proj-mgmt/apikeys",
"zai" | "z.ai" => "https://platform.z.ai/",
"minimax" => "https://www.minimaxi.com/user-center/basic-information", "minimax" => "https://www.minimaxi.com/user-center/basic-information",
"vercel" => "https://vercel.com/account/tokens", "vercel" => "https://vercel.com/account/tokens",
"cloudflare" => "https://dash.cloudflare.com/profile/api-tokens", "cloudflare" => "https://dash.cloudflare.com/profile/api-tokens",
@ -778,7 +781,8 @@ fn setup_provider() -> Result<(String, String, String)> {
("moonshot-v1-128k", "Moonshot V1 128K"), ("moonshot-v1-128k", "Moonshot V1 128K"),
("moonshot-v1-32k", "Moonshot V1 32K"), ("moonshot-v1-32k", "Moonshot V1 32K"),
], ],
"glm" => vec![ "glm" | "zhipu" | "zai" | "z.ai" => vec![
("glm-5", "GLM-5 (latest)"),
("glm-4-plus", "GLM-4 Plus (flagship)"), ("glm-4-plus", "GLM-4 Plus (flagship)"),
("glm-4-flash", "GLM-4 Flash (fast)"), ("glm-4-flash", "GLM-4 Flash (fast)"),
], ],