8000 Fixing issues where array doesn't have items by vmkp · Pull Request #136 · gumloop/guMCP · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fixing issues where array doesn't have items #136

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

Closed
wants to merge 1 commit into from

Conversation

vmkp
Copy link
Contributor
@vmkp vmkp commented May 11, 2025

When using with OpenAI, there is a schema error for sheets and slack because of type array doesn't have the required values key

For Slack

openai.BadRequestError: Error code: 400 - {'statusCode': 400, 'error': {'message': "Invalid schema for function 'create_canvas': In context=('properties', 'blocks'), array schema missing items.", 'type': 'invalid_request_error', 'param': 'tools[6].function.parameters', 'code': 'invalid_function_parameters'}, 'message': 'Error from OpenAI API: Bad Request: {\n  "error": {\n    "message": "Invalid schema for function \'create_canvas\': In context=(\'properties\', \'blocks\'), array schema missing items.",\n    "type": "invalid_request_error",\n    "param": "tools[6].function.parameters",\n    "code": "invalid_function_parameters"\n  }\n}'}

For Sheets

openai.BadRequestError: Error code: 400 - {'statusCode': 400, 'error': {'message': "Invalid schema for function 'append-values': In context=('properties', 'values', 'items'), array schema missing items.", 'type': 'invalid_request_error', 'param': 'tools[5].function.parameters', 'code': 'invalid_function_parameters'}, 'message': 'Error from OpenAI API: Bad Request: {\n  "error": {\n    "message": "Invalid schema for function \'append-values\': In context=(\'properties\', \'values\', \'items\'), array schema missing items.",\n    "type": "invalid_request_error",\n    "param": "tools[5].function.parameters",\n    "code": "invalid_function_parameters"\n  }\n}'}

Copy link
Contributor
@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

2 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile

Copy link
Contributor
@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

2 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile

Copy link
Collaborator
@dvlpjrs dvlpjrs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! Merged

@dvlpjrs
Copy link
Collaborator
dvlpjrs commented May 12, 2025

Fixed formatting in a follow-up, thanks for the PR! Opened PR #138.

@dvlpjrs dvlpjrs closed this May 12, 2025
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.

2 participants
0