Skip to content

Fix Moonshot JSON schema compatibility error#1

Draft
Csaba8472 with Copilot wants to merge 1 commit into
mainfrom
copilot/fix-moonshot-json-schema-error
Draft

Fix Moonshot JSON schema compatibility error#1
Csaba8472 with Copilot wants to merge 1 commit into
mainfrom
copilot/fix-moonshot-json-schema-error

Conversation

Copilot AI commented May 19, 2026

Copy link
Copy Markdown

Summary

Adds a changelog entry for version 1.0.50 that documents the fix for the Moonshot 400 tools.function.parameters is not a valid moonshot flavored json schema error.

Root Cause

Moonshot (and some other third-party providers) only accept a strict subset of JSON Schema for tool parameter definitions. The CLI was sending schemas that included keywords like additionalProperties which Moonshot's schema validator rejects.

Fix

Tool parameter JSON schemas are now sanitized before being sent to the model provider — unsupported keywords (e.g. additionalProperties) are stripped so the definitions conform to each provider's expected schema flavour. This is consistent with the existing sanitization added in v1.0.22 for MCP tool schemas.

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