mirror of
https://github.com/ollama/ollama.git
synced 2025-05-11 18:36:41 +02:00
use head to check heartbeat
This commit is contained in:
parent
40a25bf8c3
commit
765994362c
2 changed files with 4 additions and 1 deletions
|
@ -225,7 +225,7 @@ func (c *Client) Delete(ctx context.Context, req *DeleteRequest) error {
|
|||
}
|
||||
|
||||
func (c *Client) Heartbeat(ctx context.Context) error {
|
||||
if err := c.do(ctx, http.MethodGet, "/", nil, nil); err != nil {
|
||||
if err := c.do(ctx, http.MethodHead, "/", nil, nil); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue