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

llm.get_model(alias) helper #75

Closed
simonw opened this issue Jul 1, 2023 · 2 comments
Closed

llm.get_model(alias) helper #75

simonw opened this issue Jul 1, 2023 · 2 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Milestone

Comments

@simonw
Copy link
Owner

simonw commented Jul 1, 2023

Now that some models live in llm.default_models.openai_models they are pretty inconvenient to import.

I'm tempted to add this helper:

from llm import get_model
gpt4 = get_model("gpt-4")

This will provide Python API level access to both the model plugins mechanism and the aliases mechanism.

Originally posted by @simonw in #65 (comment)

@simonw simonw added the enhancement New feature or request label Jul 1, 2023
@simonw
Copy link
Owner Author

simonw commented Jul 10, 2023

Fixed in 5a7737b - needs documentation.

@simonw simonw added the documentation Improvements or additions to documentation label Jul 10, 2023
@simonw simonw added this to the 0.5 milestone Jul 10, 2023
@simonw simonw closed this as completed in 35827a5 Jul 10, 2023
@simonw
Copy link
Owner Author

simonw commented Jul 10, 2023

simonw added a commit that referenced this issue Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant