Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: handle truncated JSON and unescaped quotes in community labels#1311

Open
matiasduartee wants to merge 6 commits into
safishamsi:v8from
matiasduartee:fix-label-json-parse
Open

fix: handle truncated JSON and unescaped quotes in community labels#1311
matiasduartee wants to merge 6 commits into
safishamsi:v8from
matiasduartee:fix-label-json-parse

Conversation

@matiasduartee

Copy link
Copy Markdown

This PR adds a regex fallback in _parse_label_response\ so that if the LLM output is truncated (Unterminated string) or contains unescaped quotes inside community names, the parser can salvage the valid name pairs instead of discarding the entire batch of communities.

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