mirror of
https://github.com/gosticks/openai-responses-api-go.git
synced 2025-10-16 11:55:34 +00:00
fix: resolve argument concatination
This commit is contained in:
parent
7d587a219c
commit
1ddfd19977
@ -540,7 +540,7 @@ func (a *ResponsesStreamAccumulator) AddChunk(chunk *models.ResponseStreamRespon
|
|||||||
a.Choices[choice.Index].ToolCalls[toolCallIndex].Function.Name = toolCallDelta.Function.Name
|
a.Choices[choice.Index].ToolCalls[toolCallIndex].Function.Name = toolCallDelta.Function.Name
|
||||||
}
|
}
|
||||||
if toolCallDelta.Function.Arguments != "" {
|
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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user