Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
use head to check heartbeat
Bruce MacDonald765994362cf2
diff --git a/api/client.go b/api/client.goindex ed1053e8e..7753eb913 100644--- a/api/client.go+++ b/api/client.go@@ -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 nildiff --git a/server/routes.go b/server/routes.goindex cc9df958e..108c0743b 100644--- a/server/routes.go+++ b/server/routes.go@@ -319,6 +319,9 @@ func Serve(ln net.Listener) error {r.GET("/", func(c *gin.Context) {c.String(http.StatusOK, "Ollama is running")})+ r.HEAD("/", func(c *gin.Context) {+ c.Status(http.StatusOK)+ })r.POST("/api/pull", PullModelHandler)r.POST("/api/generate", GenerateHandler)