From 1ddfd19977878739e7feb8334ce7eff4268a3c50 Mon Sep 17 00:00:00 2001 From: Wlad Meixner Date: Wed, 19 Mar 2025 22:13:28 +0100 Subject: [PATCH] fix: resolve argument concatination --- client/responses.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/responses.go b/client/responses.go index 4cec102..549f7ef 100644 --- a/client/responses.go +++ b/client/responses.go @@ -540,7 +540,7 @@ func (a *ResponsesStreamAccumulator) AddChunk(chunk *models.ResponseStreamRespon a.Choices[choice.Index].ToolCalls[toolCallIndex].Function.Name = toolCallDelta.Function.Name } if toolCallDelta.Function.Arguments != "" { - a.Choices[choice.Index].ToolCalls[toolCallIndex].Function.Arguments += toolCallDelta.Function.Arguments + a.Choices[choice.Index].ToolCalls[toolCallIndex].Function.Arguments = toolCallDelta.Function.Arguments } } }