fix: resolve argument concatination

This commit is contained in:
Wlad Meixner 2025-03-19 22:13:28 +01:00
parent 7d587a219c
commit 1ddfd19977

View File

@ -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
}
}
}