fix tool call as well

This commit is contained in:
Wauplin 2024-03-15 14:30:06 +01:00
parent 9a12e141d7
commit 3686f9c10d

View File

@ -539,7 +539,7 @@ impl ChatCompletionChunk {
role: "assistant".to_string(), role: "assistant".to_string(),
content: delta, content: delta,
tool_calls: tool_calls.map(|tc| DeltaToolCall { tool_calls: tool_calls.map(|tc| DeltaToolCall {
index, index: 0,
id: String::new(), id: String::new(),
r#type: "function".to_string(), r#type: "function".to_string(),
function: Function { function: Function {