Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

fix model name not matching

Michael Yang0625e805f09e
diff --git a/cmd/cmd.go b/cmd/cmd.go
index 443dc6f55..ee5b753ee 100644
--- a/cmd/cmd.go
+++ b/cmd/cmd.go
@@ -127,13 +127,9 @@ func RunHandler(cmd *cobra.Command, args []string) error {
return err
}
- modelName, modelTag, ok := strings.Cut(args[0], ":")
- if !ok {
- modelTag = "latest"
- }
-
+ canonicalModelPath := server.ParseModelPath(args[0])
for _, model := range models.Models {
- if model.Name == strings.Join([]string{modelName, modelTag}, ":") {
+ if model.Name == canonicalModelPath.GetShortTagname() {
return RunGenerate(cmd, args)
}
}