mirror of
https://github.com/ollama/ollama.git
synced 2025-03-29 11:11:47 +01:00
server: check for empty tools array too (#5779)
This commit is contained in:
parent
84e5721f3a
commit
70b1010fa5
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user