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

Support JSON Outputs with json and Wrappers #136

Open
xiaobin-noss opened this issue Dec 30, 2024 · 2 comments
Open

Support JSON Outputs with json and Wrappers #136

xiaobin-noss opened this issue Dec 30, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@xiaobin-noss
Copy link

Hi, this project is amazing!
I have a small request regarding JSON handling. It's becoming increasingly common for JSON outputs generated by LLMs (such as GPT or Claude) to include wrappers like json at the beginning or at the end.

Would it be possible to enhance the tool to handle these cases directly? If needed, I’d be happy to help submit a PR for this feature.

@josdejong
Copy link
Owner

Ah, that is a nice one, thanks for your suggestion. Yes I think we can handle stripping code block backticks.

A PR would be welcome, thanks for the offer :)

@josdejong josdejong added the enhancement New feature or request label Dec 30, 2024
@Suixinlei
Copy link

This is my PR, sorry that the issue was raised by my work account, I can't submit a PR using that account.

#138

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants