mirror of
https://github.com/ollama/ollama.git
synced 2025-05-11 10:26:53 +02:00
pr feedback
- move error check to api client pull - simplify error check in generate - return nil on any pull error
This commit is contained in:
parent
61dd87bd90
commit
f533f85d44
3 changed files with 13 additions and 19 deletions
|
@ -106,6 +106,11 @@ func (c *Client) Pull(ctx context.Context, req *PullRequest, fn PullProgressFunc
|
|||
return err
|
||||
}
|
||||
|
||||
if resp.Error.Message != "" {
|
||||
// couldn't pull the model from the directory, proceed anyway
|
||||
return nil
|
||||
}
|
||||
|
||||
return fn(resp)
|
||||
}),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue