fix(cost): price Databricks GLM aliases from the zhipuai catalog (#12673)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user