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 support for JSON mode #498

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

Conversation

shinohara-rin
Copy link

@shinohara-rin shinohara-rin commented Nov 23, 2023

OpenAI recently introduced a new feature called JSON mode

I didn't see anyone working on this, so I've take the liberty to implement the new parameter response_format.

image image

It works with a fresh instance of BetterChatGPT. However, I had no luck on migrating from previous versions. For now you probably need to manually set the field if you are upgrading from previous versions

I'll be thankful if someone can help me with the migration problem.

@shinohara-rin shinohara-rin marked this pull request as ready for review November 23, 2023 18:28
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.

None yet

1 participant