Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
directly use isvalidpart
Josh Yanc365f195a88c
diff --git a/types/model/name.go b/types/model/name.goindex 2739b53c7..d85fd0c6c 100644--- a/types/model/name.go+++ b/types/model/name.go@@ -252,13 +252,7 @@ func (n Name) DisplayShortest() string {}func IsValidNamespace(namespace string) bool {- name := Name{- Host: "h",- Model: "m",- Namespace: namespace,- Tag: "t",- }- return name.IsValid()+ return isValidPart(kindNamespace, namespace)}// IsValid reports whether all parts of the name are present and valid. The