Skip to content

fix: Update FunctionParameters schema to enforce required properties and adjust ListModelsResponse structure #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 1 addition & 12 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -674,18 +674,7 @@ components:
documentation about the format.

Omitting `parameters` defines a function with an empty parameter list.
properties:
type:
type: string
description: The type of the parameters. Currently, only `object` is supported.
properties:
type: object
description: The properties of the parameters.
required:
type: array
items:
type: string
description: The required properties of the parameters.
additionalProperties: true
ChatCompletionToolType:
type: string
description: The type of the tool. Currently, only `function` is supported.
Expand Down
9 changes: 2 additions & 7 deletions src/types/generated/index.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.