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

Add fallback to try parsing json when markers not found #56

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

robotdad
Copy link

Fallback for valid json missing markers per #53.

The original logic for finding and extracting json between markers is retained, but if no start marker is found, the function attempts to parse the entire llm_output as json. This change allows the function to handle both marker-enclosed json and raw json input.

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