Skip to content

Commit

Permalink
Merge pull request openai#69 from rattrayalex/ralex/extract-function-…
Browse files Browse the repository at this point in the history
…call-option

Extract function call option to a schema
  • Loading branch information
athyuttamre committed Aug 16, 2023
2 parents e137748 + 591b06a commit 403fb87
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2158,6 +2158,15 @@ components:
- name
- parameters

ChatCompletionFunctionCallOption:
type: object
properties:
name:
type: string
description: The name of the function to call.
required:
- name

ChatCompletionResponseMessage:
type: object
description: A chat completion message generated by the model.
Expand Down Expand Up @@ -2251,13 +2260,7 @@ components:
oneOf:
- type: string
enum: [none, auto]
- type: object
properties:
name:
type: string
description: The name of the function to call.
required:
- name
- $ref: "#/components/schemas/ChatCompletionFunctionCallOption"
temperature:
type: number
minimum: 0
Expand Down

0 comments on commit 403fb87

Please sign in to comment.