Skip to content

Commit ffa4709

Browse files
authored
fix: Update FunctionParameters schema to enforce required properties and adjust ListModelsResponse structure (#9)
Signed-off-by: Eden Reich <[email protected]>
1 parent 9f121a7 commit ffa4709

File tree

2 files changed

+3
-19
lines changed

2 files changed

+3
-19
lines changed

openapi.yaml

+1-12
Original file line numberDiff line numberDiff line change
@@ -674,18 +674,7 @@ components:
674674
documentation about the format.
675675
676676
Omitting `parameters` defines a function with an empty parameter list.
677-
properties:
678-
type:
679-
type: string
680-
description: The type of the parameters. Currently, only `object` is supported.
681-
properties:
682-
type: object
683-
description: The properties of the parameters.
684-
required:
685-
type: array
686-
items:
687-
type: string
688-
description: The required properties of the parameters.
677+
additionalProperties: true
689678
ChatCompletionToolType:
690679
type: string
691680
description: The type of the tool. Currently, only `function` is supported.

src/types/generated/index.ts

+2-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)