From 3686f9c10de70c156c8f7e5c67d35e5678cd263e Mon Sep 17 00:00:00 2001 From: Wauplin Date: Fri, 15 Mar 2024 14:30:06 +0100 Subject: [PATCH] fix tool call as well --- router/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/router/src/lib.rs b/router/src/lib.rs index d92df086..50d2cbf4 100644 --- a/router/src/lib.rs +++ b/router/src/lib.rs @@ -539,7 +539,7 @@ impl ChatCompletionChunk { role: "assistant".to_string(), content: delta, tool_calls: tool_calls.map(|tc| DeltaToolCall { - index, + index: 0, id: String::new(), r#type: "function".to_string(), function: Function {