![]() |
|
#1
|
||||
|
||||
|
ChatGPT from your command prompt: llm
A CLI utility and Python library for interacting with Large Language Models, both via remote APIs and models that can be installed and run on your own machine.
REPO: Code:
https://github.com/simonw/llm Code:
https://llm.datasette.io/en/stable/ Code:
pip install llm Code:
python -m pip install llm Obtain a chatgpt/openai API key from their site. You need to register to openai. When you set your api to llm you can use chatgpt from commmand prompt: Code:
# Paste your OpenAI API key into this llm keys set openai # Run a prompt llm "Ten fun names for a pet pelican" # Run a system prompt against a file cat myfile.py | llm -s "Explain this code" Code:
$ llm "Ten fun names for a pet pelican" Error: You exceeded your current quota, please check your plan and billing details. Last edited by blue_devil; 11-09-2023 at 14:39. Reason: typo |
| The Following User Says Thank You to blue_devil For This Useful Post: | ||
dotdll (07-16-2025) | ||
| Tags |
| chatgpt, openai |
|
|