Unverified Commit 70b1010f authored by Jeffrey Morgan's avatar Jeffrey Morgan Committed by GitHub
Browse files

server: check for empty tools array too (#5779)

parent 84e5721f
...@@ -1290,7 +1290,7 @@ func (s *Server) ChatHandler(c *gin.Context) { ...@@ -1290,7 +1290,7 @@ func (s *Server) ChatHandler(c *gin.Context) {
} }
caps := []Capability{CapabilityCompletion} caps := []Capability{CapabilityCompletion}
if req.Tools != nil { if len(req.Tools) > 0 {
caps = append(caps, CapabilityTools) caps = append(caps, CapabilityTools)
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment