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

Replace XML tags with JSON #744

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Replace XML tags with JSON #744

wants to merge 2 commits into from

Conversation

DonggeLiu
Copy link
Collaborator

@DonggeLiu DonggeLiu commented Dec 6, 2024

For #743.
We will need to reconsider the prompt design to allow prompt extensibility, because using JSON requires automatically quoting and escaping text in existing and future prompts, instead of simply replacing and appending text.

This PR is a simple test for JSON prompt.

TODO:

  1. Request JSON-format response.
  2. Change parser to parse JSON instead of XML.

@DonggeLiu DonggeLiu changed the title Replace XML tags with JOSN Replace XML tags with JSON Dec 6, 2024
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