Skip to content

fix: coerce string numeric JSON Schema constraints to integers in tool translation#422

Open
anuragg-saxenaa wants to merge 1 commit intodecolua:masterfrom
anuragg-saxenaa:fix/issue-273-schema-numeric-coerce
Open

fix: coerce string numeric JSON Schema constraints to integers in tool translation#422
anuragg-saxenaa wants to merge 1 commit intodecolua:masterfrom
anuragg-saxenaa:fix/issue-273-schema-numeric-coerce

Conversation

@anuragg-saxenaa
Copy link
Copy Markdown
Contributor

Closes #273. Also addresses #276 (non-string tool description). Adds coerceSchemaNumericConstraints() to openaiHelper.js that recursively converts string-valued numeric schema keywords (maxLength, minItems, etc.) to actual numbers. Applied in all three tool translation paths: openaiHelper.filterToOpenAIFormat, claude-to-openai.js, and openai-responses.js (both directions). Also coerces description to guaranteed string.

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.

Error call codex from antigarivy

1 participant