mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-11 12:24:53 +00:00
fix tool call as well
This commit is contained in:
parent
9a12e141d7
commit
3686f9c10d
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user