Skip to content

Commit bfc4b4d

Browse files
authored
Merge branch 'main' into fix-openai-inference-snippets
2 parents d443069 + 9a7379b commit bfc4b4d

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

packages/ollama-utils/src/chat-template-automap.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This file is auto generated, please do not modify manually
22
// To update it, run "pnpm run build:automap"
33

4-
import { OllamaChatTemplateMapEntry } from "./types";
4+
import type { OllamaChatTemplateMapEntry } from "./types";
55

66
/**
77
* Skipped these models due to error:

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)