Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
switch api for ShowRequest to use the name field (#1816)
Patrick Devine9c2941e61b31
diff --git a/cmd/cmd.go b/cmd/cmd.goindex 591e2e7bc..fd3427c18 100644--- a/cmd/cmd.go+++ b/cmd/cmd.go@@ -149,7 +149,7 @@ func RunHandler(cmd *cobra.Command, args []string) error {name := args[0]// check if the model exists on the server- model, err := client.Show(cmd.Context(), &api.ShowRequest{Model: name})+ model, err := client.Show(cmd.Context(), &api.ShowRequest{Name: name})var statusError api.StatusErrorswitch {case errors.As(err, &statusError) && statusError.StatusCode == http.StatusNotFound:@@ -335,7 +335,7 @@ func ShowHandler(cmd *cobra.Command, args []string) error {return errors.New("one of '--license', '--modelfile', '--parameters', '--system', or '--template' must be specified")}- req := api.ShowRequest{Model: args[0]}+ req := api.ShowRequest{Name: args[0]}resp, err := client.Show(cmd.Context(), &req)if err != nil {return errdiff --git a/cmd/interactive.go b/cmd/interactive.goindex 3eb9d6e67..8d567689b 100644--- a/cmd/interactive.go+++ b/cmd/interactive.go@@ -34,7 +34,7 @@ func modelIsMultiModal(cmd *cobra.Command, name string) bool {return false}- req := api.ShowRequest{Model: name}+ req := api.ShowRequest{Name: name}resp, err := client.Show(cmd.Context(), &req)if err != nil {return false@@ -293,7 +293,7 @@ func generateInteractive(cmd *cobra.Command, opts generateOptions) error {return err}req := &api.ShowRequest{- Model: opts.Model,+ Name: opts.Model,System: opts.System,Template: opts.Template,Options: opts.Options,