diff --git a/server/routes.go b/server/routes.go index 347d5221..c33b7195 100644 --- a/server/routes.go +++ b/server/routes.go @@ -1290,7 +1290,7 @@ func (s *Server) ChatHandler(c *gin.Context) { } caps := []Capability{CapabilityCompletion} - if req.Tools != nil { + if len(req.Tools) > 0 { caps = append(caps, CapabilityTools) }