You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: openapi.yaml
+56Lines changed: 56 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2293,6 +2293,7 @@ components:
2293
2293
type: integer
2294
2294
finish_reason:
2295
2295
type: string
2296
+
enum: ["stop", "length"]
2296
2297
usage:
2297
2298
type: object
2298
2299
properties:
@@ -2369,6 +2370,7 @@ components:
2369
2370
content:
2370
2371
type: string
2371
2372
description: The contents of the message.
2373
+
nullable: true
2372
2374
function_call:
2373
2375
type: object
2374
2376
description: The name and arguments of a function that should be called, as generated by the model.
@@ -2381,6 +2383,28 @@ components:
2381
2383
description: The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.
2382
2384
required:
2383
2385
- role
2386
+
2387
+
ChatCompletionStreamResponseDelta:
2388
+
type: object
2389
+
properties:
2390
+
role:
2391
+
type: string
2392
+
enum: ["system", "user", "assistant", "function"]
2393
+
description: The role of the author of this message.
2394
+
content:
2395
+
type: string
2396
+
description: The contents of the chunk message.
2397
+
nullable: true
2398
+
function_call:
2399
+
type: object
2400
+
description: The name and arguments of a function that should be called, as generated by the model.
2401
+
properties:
2402
+
name:
2403
+
type: string
2404
+
description: The name of the function to call.
2405
+
arguments:
2406
+
type: string
2407
+
description: The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.
0 commit comments