Skip to content

Commit

Permalink
update FunctionParameters def, making parameters optional
Browse files Browse the repository at this point in the history
  • Loading branch information
sdcoffey committed Dec 11, 2023
1 parent 23a4b18 commit b443901
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5784,7 +5784,7 @@ components:

FunctionParameters:
type: object
description: "The parameters the functions accepts, described as a JSON Schema object. See the [guide](/docs/guides/text-generation/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.\n\nTo describe a function that accepts no parameters, provide the value `{\"type\": \"object\", \"properties\": {}}`."
description: "The parameters the functions accepts, described as a JSON Schema object. See the [guide](/docs/guides/text-generation/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.\n\nOmitting `parameters` defines a function with an empty parameter list."
additionalProperties: true

ChatCompletionFunctions:
Expand All @@ -5801,7 +5801,6 @@ components:
$ref: "#/components/schemas/FunctionParameters"
required:
- name
- parameters

ChatCompletionFunctionCallOption:
type: object
Expand Down Expand Up @@ -5840,7 +5839,6 @@ components:
$ref: "#/components/schemas/FunctionParameters"
required:
- name
- parameters

ChatCompletionToolChoiceOption:
description: |
Expand Down

0 comments on commit b443901

Please sign in to comment.