Skip to content

Commit

Permalink
Merge pull request #135 from openai/sc/omittable-function-params-docs
Browse files Browse the repository at this point in the history
update FunctionParameters def, making `parameters` optional
  • Loading branch information
sdcoffey authored Dec 14, 2023
2 parents 5fa0158 + b443901 commit 98052b7
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 @@ -5835,7 +5835,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 @@ -5852,7 +5852,6 @@ components:
$ref: "#/components/schemas/FunctionParameters"
required:
- name
- parameters

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

ChatCompletionToolChoiceOption:
description: |
Expand Down

0 comments on commit 98052b7

Please sign in to comment.