Skip to content

Commit d9fe863

Browse files
committed
generate
1 parent fd4f212 commit d9fe863

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,9 @@ export interface ChatCompletionInputToolCall {
130130
[property: string]: unknown;
131131
}
132132
export interface ChatCompletionInputFunctionDefinition {
133-
arguments: unknown;
134133
description?: string;
135134
name: string;
135+
parameters: unknown;
136136
[property: string]: unknown;
137137
}
138138
export interface ChatCompletionInputGrammarType {
@@ -235,7 +235,7 @@ export interface ChatCompletionOutputToolCall {
235235
[property: string]: unknown;
236236
}
237237
export interface ChatCompletionOutputFunctionDefinition {
238-
arguments: unknown;
238+
arguments: string;
239239
description?: string;
240240
name: string;
241241
[property: string]: unknown;

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,9 +275,9 @@
275275
},
276276
"ChatCompletionInputFunctionDefinition": {
277277
"type": "object",
278-
"required": ["name", "arguments"],
278+
"required": ["name", "parameters"],
279279
"properties": {
280-
"arguments": {},
280+
"parameters": {},
281281
"description": {
282282
"type": "string",
283283
"nullable": true

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,9 @@
173173
"type": "object",
174174
"required": ["name", "arguments"],
175175
"properties": {
176-
"arguments": {},
176+
"arguments": {
177+
"type": "string"
178+
},
177179
"description": {
178180
"type": "string",
179181
"nullable": true

0 commit comments

Comments
 (0)