Skip to content

Commit

Permalink
[Bot] Update tasks specs (#1252)
Browse files Browse the repository at this point in the history
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 <11801849+Wauplin@users.noreply.github.com>
  • Loading branch information
HuggingFaceInfra and Wauplin authored Mar 7, 2025
1 parent d2fa134 commit 3fd3440
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/tasks/src/tasks/chat-completion/inference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ export interface ChatCompletionStreamOutputDelta {
content?: string;
role: string;
tool_call_id?: string;
tool_calls?: ChatCompletionStreamOutputDeltaToolCall;
tool_calls?: ChatCompletionStreamOutputDeltaToolCall[];
[property: string]: unknown;
}
export interface ChatCompletionStreamOutputDeltaToolCall {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,10 @@
"example": "assistant"
},
"tool_calls": {
"$ref": "#/$defs/ChatCompletionStreamOutputDeltaToolCall"
"type": "array",
"items": {
"$ref": "#/$defs/ChatCompletionStreamOutputDeltaToolCall"
}
}
},
"title": "ChatCompletionStreamOutputToolCallDelta"
Expand Down

0 comments on commit 3fd3440

Please sign in to comment.