Skip to content

Commit 3fd3440

Browse files
[Bot] Update tasks specs (#1252)
This PR updates the @huggingface/tasks specs. It has been generated by running: ```sh pnpm run inference-tgi-import pnpm run inference-tei-import pnpm run inference-codegen ``` This PR was automatically created by the [Tasks - Update specs workflow](https://github.com/huggingface/huggingface.js/blob/main/.github/update-specs.yml). Make sure the changes are correct before merging. Co-authored-by: Wauplin <[email protected]>
1 parent d2fa134 commit 3fd3440

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)