Skip to content

Add missing items property to schema of read_multiple_files tool #23

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jochil
Copy link
Contributor

@jochil jochil commented May 16, 2025

When communicating with an OpenAI (compatible) API the following error will be thrown due a missing property in the json of the tool definition:

error, status code: 400, status: 400 Bad Request, message: Invalid schema for function 'read_multiple_files': In context=('properties', 'paths'), array schema missing items.

Adding the items property fixes this problem

It also corresponds with https://json-schema.org/understanding-json-schema/reference/array#items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant