switch api for ShowRequest to use the name field (#1816)

This commit is contained in:
Patrick Devine
2024-01-05 15:06:43 -08:00
committed by GitHub
parent 238ac5e765
commit 9c2941e61b
2 changed files with 4 additions and 4 deletions

View File

@ -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,