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

Initial design #1

Closed
simonw opened this issue Apr 1, 2023 · 4 comments
Closed

Initial design #1

simonw opened this issue Apr 1, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@simonw
Copy link
Owner

simonw commented Apr 1, 2023

Initially this tool will let you run things against ChatGPT and GPT-4 from the command-line.

Over time I want to introduce Pluggy plugins to allow you to hook it up to all sorts of other language models, including ones that run locally.

But for starters it will do this:

llm "Prompt goes here"

And a streaming variant:

llm "Ten ideas for cheesecakes" -s

Plus use -4 to run against GPT-4, or --model X to specify another model.

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

simonw commented Apr 1, 2023

Need to solve API keys. I'm going to look for the OPENAI_API_KEY environment variable, but I'll also have it read from ~/.openai-api-key.txt if that's present because that's my own personal preference.

simonw added a commit that referenced this issue Apr 1, 2023
@simonw
Copy link
Owner Author

simonw commented Apr 1, 2023

I need to rename to llm-cli - the PyPI llm name is not allowed:

https://github.com/simonw/llm-cli/actions/runs/4585299987/jobs/8097362394

Uploading llm-0.1-py3-none-any.whl
25l
  0% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.0/12.7 kB • --:-- • ?
  0% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0.0/12.7 kB • --:-- • ?
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.7/12.7 kB • 00:00 • 37.0 MB/s
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.7/12.7 kB • 00:00 • 37.0 MB/s
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.7/12.7 kB • 00:00 • 37.0 MB/s
25hWARNING  Error during upload. Retry with the --verbose option for more details. 
ERROR    HTTPError: 400 Bad Request from https://upload.pypi.org/legacy/        
         The name 'llm' is too similar to an existing project. See              
         https://pypi.org/help/#project-name for more information.              
Error: Process completed with exit code 1.

simonw added a commit that referenced this issue Apr 1, 2023
simonw added a commit that referenced this issue Apr 1, 2023
@simonw
Copy link
Owner Author

simonw commented Apr 1, 2023

@simonw
Copy link
Owner Author

simonw commented Apr 1, 2023

Dustin Ingram helped me out on PyPI Slack - I have llm now: https://thepsf.slack.com/archives/C09FGMHD1/p1680385756056109

https://pypi.org/project/llm/

@simonw simonw closed this as completed Apr 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant