4 releases
0.1.2 | May 9, 2023 |
---|---|
0.1.1 | May 9, 2023 |
0.1.0 | May 8, 2023 |
0.0.0 | May 8, 2023 |
#13 in #ratatui
18KB
174 lines
ja (just ask) a small CLI app that allows you to work with AI tools
Right now it's just yet another wrapper around the openAI apis
Usage: ja [OPTIONS] [INPUT]...
Arguments:
[INPUT]...
Options:
-n, --max-tokens <MAX_TOKENS>
[default: 1000]
-m, --model <MODEL>
[default: gpt-3.5-turbo]
Possible values:
- gpt-3.5-turbo: alias 3.5
- gpt-4: alias 4
-t, --temperature <TEMPERATURE>
[default: 0.7]
-v, --verbose
-h, --help
Print help (see a summary with '-h')
-V, --version
Print version
Example usage:
Provide command line paramters directly:
$ ja hello
assistant: Hello! How can I assist you today?
Provide input via a pipe:
$ echo "hello" | ja
assistant: Hello! How can I assist you today?
Run interactively:
$ ja
Enter your input (finish with ^D):
hello
assistant: Hello! How can I assist you today?
TODO
- stores logs in cache dir (use --verbose to see the filename)
- accept input from stdin
- interactive mode
- syntax highlight code
- tui mode
Dependencies
~12–26MB
~402K SLoC