File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
packages/tasks/src/tasks/chat-completion Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -130,9 +130,9 @@ export interface ChatCompletionInputToolCall {
130130 [ property : string ] : unknown ;
131131}
132132export interface ChatCompletionInputFunctionDefinition {
133- arguments : unknown ;
134133 description ?: string ;
135134 name : string ;
135+ parameters : unknown ;
136136 [ property : string ] : unknown ;
137137}
138138export interface ChatCompletionInputGrammarType {
@@ -235,7 +235,7 @@ export interface ChatCompletionOutputToolCall {
235235 [ property : string ] : unknown ;
236236}
237237export interface ChatCompletionOutputFunctionDefinition {
238- arguments : unknown ;
238+ arguments : string ;
239239 description ?: string ;
240240 name : string ;
241241 [ property : string ] : unknown ;
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments