mirror of
https://github.com/ollama/ollama.git
synced 2025-05-11 10:26:53 +02:00
show a more descriptive error in the client if it is newer than the server (#8351)
This commit is contained in:
parent
6ae2adc1af
commit
8bccae4f92
2 changed files with 5 additions and 1 deletions
|
@ -162,6 +162,9 @@ func CreateHandler(cmd *cobra.Command, args []string) error {
|
|||
}
|
||||
|
||||
if err := client.Create(cmd.Context(), req, fn); err != nil {
|
||||
if strings.Contains(err.Error(), "path or Modelfile are required") {
|
||||
return fmt.Errorf("the ollama server must be updated to use `ollama create` with this client")
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue