We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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)
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.
Now that some models live in llm.default_models.openai_models they are pretty inconvenient to import.
llm.default_models.openai_models
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)
The text was updated successfully, but these errors were encountered:
Fixed in 5a7737b - needs documentation.
Sorry, something went wrong.
35827a5
Now documented here: https://llm.datasette.io/en/latest/python-api.html#basic-usage
Release 0.5
a3c0796
Refs #31, #53, #55, #57, #63, #69, #70, #75, #76, #79, #82, #91, #98
No branches or pull requests
Originally posted by @simonw in #65 (comment)
The text was updated successfully, but these errors were encountered: