Skip to content

Commit 9a7379b

Browse files
[Bot] Update tasks specs (#1281)
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 a9654eb commit 9a7379b

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-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
@@ -154,7 +154,7 @@ export interface ChatCompletionInputStreamOptions {
154154
* choices field will always be an empty array. All other chunks will also include a usage
155155
* field, but with a null value.
156156
*/
157-
include_usage: boolean;
157+
include_usage?: boolean;
158158
[property: string]: unknown;
159159
}
160160
/**

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,6 @@
324324
},
325325
"ChatCompletionInputStreamOptions": {
326326
"type": "object",
327-
"required": ["include_usage"],
328327
"properties": {
329328
"include_usage": {
330329
"type": "boolean",

0 commit comments

Comments
 (0)