mirror of
https://github.com/ollama/ollama.git
synced 2025-11-12 07:37:38 +01:00
remove ToolCall from GenerateResponse
This commit is contained in:
@@ -275,11 +275,6 @@ func (s *Server) GenerateHandler(c *gin.Context) {
|
||||
}
|
||||
|
||||
r.Response = sb.String()
|
||||
if toolCalls, ok := m.parseToolCalls(sb.String()); ok {
|
||||
r.ToolCalls = toolCalls
|
||||
r.Response = ""
|
||||
}
|
||||
|
||||
c.JSON(http.StatusOK, r)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user