From d46fbff3870a43f56e8375a59415b48fe6d182c1 Mon Sep 17 00:00:00 2001 From: ParthSareen Date: Fri, 24 Oct 2025 14:16:17 -0700 Subject: [PATCH] update id names --- api/types.go | 9 +++++---- server/routes.go | 1 + 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/api/types.go b/api/types.go index 95b054f7e..4f2fb9c93 100644 --- a/api/types.go +++ b/api/types.go @@ -181,10 +181,11 @@ type Message struct { Content string `json:"content"` // Thinking contains the text that was inside thinking tags in the // original model output when ChatRequest.Think is enabled. - Thinking string `json:"thinking,omitempty"` - Images []ImageData `json:"images,omitempty"` - ToolCalls []ToolCall `json:"tool_calls,omitempty"` - ToolName string `json:"tool_name,omitempty"` + Thinking string `json:"thinking,omitempty"` + Images []ImageData `json:"images,omitempty"` + ToolCalls []ToolCall `json:"tool_calls,omitempty"` + ToolName string `json:"tool_name,omitempty"` + ToolCallID string `json:"tool_call_id,omitempty"` } func (m *Message) UnmarshalJSON(b []byte) error { diff --git a/server/routes.go b/server/routes.go index f3a872a68..8f62c5c61 100644 --- a/server/routes.go +++ b/server/routes.go @@ -2170,6 +2170,7 @@ func (s *Server) ChatHandler(c *gin.Context) { } else if len(toolCalls) > 0 { for i := range toolCalls { toolCalls[i].ID = toolCallId() + fmt.Println("toolCallID", toolCalls[i].ID) } res.Message.ToolCalls = toolCalls res.Message.Content = ""