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

Refactor the OpenAI integration #381

Merged
merged 2 commits into from
Nov 21, 2023
Merged

Conversation

rlouf
Copy link
Member

@rlouf rlouf commented Nov 20, 2023

We prepare the integration of other model providers, and the use of JSON mode, by providing a more robust and generalizable interface to the OpenAI integration.

TODO

  • Refactor generate_choice
  • Test generate_choice
  • Document OpenAIConfig
  • Make generate_choice work with batches and generate several samples

@rlouf rlouf force-pushed the refactor-openai branch 11 times, most recently from 009e1e3 to 8e4c63d Compare November 21, 2023 09:48
@rlouf rlouf marked this pull request as ready for review November 21, 2023 09:49
@rlouf rlouf merged commit 25ba231 into outlines-dev:main Nov 21, 2023
5 checks passed
@rlouf rlouf deleted the refactor-openai branch November 21, 2023 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant