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

Adds support for JSON mode in OpenAI Chat model #34

Merged
merged 1 commit into from
Nov 8, 2023

Conversation

chrisgreg
Copy link
Contributor

The new update to OpenAI ChatGPT APIs allow users to specify if they want their response to be in JSON or not (defaults to text).

This allows Langchain to specify the response type as valid JSON or not.

https://platform.openai.com/docs/api-reference/chat/create#chat-create-response_format

@brainlid brainlid merged commit 9b6bdae into brainlid:main Nov 8, 2023
@brainlid
Copy link
Owner

brainlid commented Nov 8, 2023

This looks good! Thanks for the doc link and the submission.

❤️💛💙💜

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.

2 participants