From b443901bb16107f1a843caa3a37df8f236cc2c75 Mon Sep 17 00:00:00 2001 From: Steve Coffey Date: Sun, 10 Dec 2023 19:50:05 -0800 Subject: [PATCH] update FunctionParameters def, making `parameters` optional --- openapi.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index 14335596..ef60ac54 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -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: @@ -5801,7 +5801,6 @@ components: $ref: "#/components/schemas/FunctionParameters" required: - name - - parameters ChatCompletionFunctionCallOption: type: object @@ -5840,7 +5839,6 @@ components: $ref: "#/components/schemas/FunctionParameters" required: - name - - parameters ChatCompletionToolChoiceOption: description: |