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

Remove chat completion and refactor the model router #65

Merged
merged 4 commits into from
Apr 24, 2023

Conversation

rlouf
Copy link
Member

@rlouf rlouf commented Apr 23, 2023

Simplify the API, waiting for a better user interface for auto-regressive completions #58

We refactor the model router so models can be more discoverable; to instantiate a text_completion model from openai one would type:

import outlines.models as models

gpt3 = models.text_completion.openai("gtp-3.5-turbo", *parameters)

@rlouf rlouf changed the title Remove chat completion Remove chat completion and refactor the model router Apr 23, 2023
The available providers for each category are currently not
discoverable as the map is encapsulated in a function. Instead
we use a module approach, where a `model_kind` model by `provider`
is accessed via `outlines.models.model_kind.provider`.
@rlouf rlouf marked this pull request as ready for review April 24, 2023 07:11
@rlouf rlouf merged commit 0e86488 into main Apr 24, 2023
@rlouf rlouf deleted the remove-chat-completion branch April 24, 2023 07:35
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