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

Return Json #15

Open
workflowanalytics opened this issue Jun 19, 2024 · 1 comment
Open

Return Json #15

workflowanalytics opened this issue Jun 19, 2024 · 1 comment

Comments

@workflowanalytics
Copy link

When submitting a single quote message to ChatCompletionRequest, the system returns a json string which I want.
When I submit a messges() array (empty system, assistant) with a quote, I get a 400 error indicating Chat Exception [400 - message: 'messages' must contain the word 'json' in some form, to use 'response_format' of type 'json_object'., type: When I supply a 'return json' in any and all of the inputs (system,assistant,prompt) I get this message.

@StefanBratanov
Copy link
Owner

Hi, thanks for raising. Is it possible to paste the code which fails for you here, so I can more easily replicate the issue you are having?

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

No branches or pull requests

2 participants