Nothing works when trying to use options.
$ ai -b BardBot
usage: ai [-h] [--api-key [API_KEY]] [--no-stream] [--raw] [--model [MODEL]] [--log-level [{DEBUG,INFO,WARNING,ERROR,CRITICAL}]]
[--bot [{GPTBot,BingBot,BardBot}]] [--debug] [--multi-line] [--endpoint [ENDPOINT]] [--proxy [PROXY]]
{ask,chat,translate,setting,review,commit} ...
chatGPT cli.
positional arguments:
{ask,chat,translate,setting,review,commit}
command to run
ask ask a question
chat chat with the assistant
translate translate a text
setting view/edit the setting, the setting will be saved in ~/.ai_cli.json
review let the assistant review your code
commit let the assistant help you write a commit message
optional arguments:
-h, --help show this help message and exit
--api-key [API_KEY] the API key to use, defaults to OPENAI_API_KEY env var, or asks you to enter it
--no-stream, -ns non stream the response, default is to live stream the response
--raw, --no-markdown default the content will be rendered as markdown, this will disable that
--model [MODEL], -m [MODEL]
the model to use
--log-level [{DEBUG,INFO,WARNING,ERROR,CRITICAL}], -l [{DEBUG,INFO,WARNING,ERROR,CRITICAL}]
the log level to use, defaults to INFO
--bot [{GPTBot,BingBot,BardBot}], -b [{GPTBot,BingBot,BardBot}]
the bot to use, defaults to GPTBot
--debug, -d enable debug mode, this will print the request and response to the console
--multi-line, -ml enable multi line mode, this will enable multi line input, when enabled, you can end the input with Ctrl+D
--endpoint [ENDPOINT], -e [ENDPOINT]
the endpoint to use, default is https://api.openai.com/v1. You can use this to resolve the issue of the api
endpoint is blocked in your country. OPENAI_API_BASE env var will also work.
--proxy [PROXY], -p [PROXY]
the proxy to use, if env var HTTP_PROXY/HTTPS+PROXY/SOCKS_PROXY/ALL_PROXY is set, this will default to that. When
use socks proxy. you need install pysocks first. pip install pysocks