Skip to content
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

Invalid JSON response when using Claude due to unescaped quotes #2128

Open
rpvitruvix opened this issue Feb 14, 2025 · 0 comments
Open

Invalid JSON response when using Claude due to unescaped quotes #2128

rpvitruvix opened this issue Feb 14, 2025 · 0 comments

Comments

@rpvitruvix
Copy link

When using Claude with structured output, I'm getting JSON parsing errors due to unescaped quotes in string values. I know this might be an Anthropic issue, but wanted to check if there's anything we can do on the Agno side?

Example error:

ERROR:__main__:Failed to process document chunk: Expecting ',' delimiter: line 6 column 162 (char 265)

The issue happens in responses like this:

"surrounding_text": "...this power of attorney would be a "Springing Power of Attorney" in that..."

Any suggestions on how to handle this?

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

No branches or pull requests

1 participant