Skip to content

Ask your language model a question from the terminal

Notifications You must be signed in to change notification settings

MattSegal/ask-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ask CLI

❯ ask --help

Usage: ask [OPTIONS] COMMAND [ARGS]...

  Ask your language model a question.

  Examples:
    ask how do I flatten a list in python
    ask ffmpeg convert webm to a gif
    ask what is the best restaurant in melbourne?
    echo 'hello world' | ask what does this text say
    ask web http://example.com | ask what does this website say

Options:
  --help  Show this message and exit.

Commands:
  <default>  Simple one-off queries with no chat history
  chat       Continue chat after initial ask
  config     Set up or configure this tool
  img        Render an image with DALLE-3
  web        Scrape content from provided URLs (HTML, PDFs)

Note: GIF is out of date

Global setup

Get access to binary everywhere

python -m venv venv
. ./venv/bin/activate
pip install poetry
poetry build
deactivate
pip install --user --upgrade --force-reinstall dist/*.whl

Dev setup

Install project requirements:

python -m venv venv
. ./venv/bin/activate
pip install poetry
poetry install
ask --help
ask config

About

Ask your language model a question from the terminal

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages