From afde0f6707016a91998d6f2fb6ccd84f00ff5c92 Mon Sep 17 00:00:00 2001 From: filip <44206832+filipkujawa@users.noreply.github.com> Date: Mon, 5 Oct 2026 04:03:24 +0000 Subject: [PATCH] fix(cost): price Databricks GLM aliases from the zhipuai catalog (#12673) --- crates/goose-provider-types/src/canonical/name_builder.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/goose-provider-types/src/canonical/name_builder.rs b/crates/goose-provider-types/src/canonical/name_builder.rs index 5a078434d..5db26f748 100644 --- a/crates/goose-provider-types/src/canonical/name_builder.rs +++ b/crates/goose-provider-types/src/canonical/name_builder.rs @@ -226,6 +226,10 @@ fn infer_provider_from_model(model: &str) -> Option<&'static str> { return Some("cohere"); } + if model_lower.starts_with("glm-") { + return Some("zhipuai"); + } + None } @@ -255,6 +259,7 @@ fn strip_common_prefixes(model: &str) -> String { "ministral-", "pixtral-", "devstral-", + "glm-", ]; let mut earliest_pos = None;