Skip to content

Commit 1d477dc

Browse files
authored
Merge branch 'main' into inference-client
2 parents 9148639 + 3fd3440 commit 1d477dc

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

packages/tasks/src/tasks/chat-completion/inference.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ export interface ChatCompletionStreamOutputDelta {
273273
content?: string;
274274
role: string;
275275
tool_call_id?: string;
276-
tool_calls?: ChatCompletionStreamOutputDeltaToolCall;
276+
tool_calls?: ChatCompletionStreamOutputDeltaToolCall[];
277277
[property: string]: unknown;
278278
}
279279
export interface ChatCompletionStreamOutputDeltaToolCall {

packages/tasks/src/tasks/chat-completion/spec/stream_output.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,10 @@
104104
"example": "assistant"
105105
},
106106
"tool_calls": {
107-
"$ref": "#/$defs/ChatCompletionStreamOutputDeltaToolCall"
107+
"type": "array",
108+
"items": {
109+
"$ref": "#/$defs/ChatCompletionStreamOutputDeltaToolCall"
110+
}
108111
}
109112
},
110113
"title": "ChatCompletionStreamOutputToolCallDelta"

0 commit comments

Comments
 (0)