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() should return default model, make get_default_model()/set_default_model() documented APIs #553

Closed
simonw opened this issue Aug 19, 2024 · 1 comment
Labels
enhancement New feature or request python-api

Comments

@simonw
Copy link
Owner

simonw commented Aug 19, 2024

The default model stuff is currently in llm/cli.py but it should be part of LLM core instead.

This should work:

import llm
model = llm.get_model() # Defaults to `gpt-4o-mini` or whatever was set as default
print(model.prompt("hi"))

Inspired by this change:

@simonw simonw added enhancement New feature or request python-api labels Aug 19, 2024
simonw added a commit that referenced this issue Aug 19, 2024
@simonw
Copy link
Owner Author

simonw commented Aug 19, 2024

@simonw simonw closed this as completed Aug 19, 2024
simonw added a commit that referenced this issue Sep 12, 2024
gianlucatruda pushed a commit to gianlucatruda/simonw-llm that referenced this issue Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request python-api
Projects
None yet
Development

No branches or pull requests

1 participant