Skip to content

translator: limit the amount of nodes processed by the jsonschema helper - #2774

Merged
nacx merged 3 commits into
mainfrom
json-nodes
Oct 2, 2026
Merged

nacx merged 3 commits into
mainfrom
json-nodes

Conversation

@nacx

@nacx nacx commented Oct 2, 2026

Copy link
Copy Markdown
Member

Description

Limit the number of nodes processed by the JSON schema helper. A limit existed for the depth, not for the number of sibling nodes or lists that are processed.

Also add a small change to return a proper 422 error instead of a 500 for these invalid requests.

Related Issues/PRs (if applicable)

N/A

Special notes for reviewers (if applicable)

N/A

nacx added 3 commits October 1, 2026 22:53
Signed-off-by: Ignasi Barrera <ignasi@tetrate.io>
Signed-off-by: Ignasi Barrera <ignasi@tetrate.io>
Signed-off-by: Ignasi Barrera <ignasi@tetrate.io>
@nacx
nacx requested a review from a team as a code owner October 2, 2026 03:20
@netlify

netlify Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for theagentrouter canceled.

Name Link
🔨 Latest commit f5f6d31
🔍 Latest deploy log https://app.netlify.com/projects/theagentrouter/deploys/6abf22e48beded000836f15b

@codecov

codecov Bot commented Oct 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@nacx
nacx enabled auto-merge (squash) October 2, 2026 03:27
@nacx
nacx merged commit 06dd32c into main Oct 2, 2026
40 checks passed
@nacx
nacx deleted the json-nodes branch October 2, 2026 14:52
@hustxiayang

Copy link
Copy Markdown
Contributor

@nacx Hi, just curious, do we still need to maintain the codes for the workaround? These codes are for models of gemini2.0x, and they're retired? After gemini-2.5, we can directly use json_schema?

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.

4 participants