Skip to content

Keep a model's answer when it comes back in the shape of the schema - #2

Merged
ralyodio merged 1 commit into
mainfrom
fix-schema-echo
Nov 7, 2026
Merged

ralyodio merged 1 commit into
mainfrom
fix-schema-echo

Conversation

@ralyodio

@ralyodio ralyodio commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

qwen3.5 9B answered crawlproof ad copy as a copy of the JSON Schema with the right values under properties, so validation failed with every field undefined. unwrapEcho recovers that and a wrapper named after the object; jsonInstructions drops the $schema/$id keys and says not to echo. Bumps 0.1.1.

🤖 Generated with Claude Code

Small models shown a JSON Schema often nest correct values under "properties"
next to $schema/type/required, so validation reported every field undefined.
Unwrap that and a wrapper named after the object, and stop sending the meta keys
that invite the copy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ralyodio
ralyodio merged commit 3045cea into main Nov 7, 2026
3 checks passed
@ralyodio
ralyodio deleted the fix-schema-echo branch November 7, 2026 02:02
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