A command line tool to chat with GPT4 and render markdown response.
Project description
v4xyz
v4xyz, way for doing kinds of things.
A cli tool that ask GPT4 for programming solutions and get answers directly in terminal.
______ __ _ _ __ __ _ __
/_ __/ / / (_) ___ (_) ___ / /_ / / ___ | | /| / / ___ _ __ __
/ / / _ \ / / (_-< / / (_-< / __/ / _ \/ -_) | |/ |/ / / _ `/ / // /
/_/ /_//_//_/ /___/ /_/ /___/ \__/ /_//_/\__/ |__/|__/ \_,_/ \_, /
/___/
1. Installation
1.1 Installing from pypi
pip install v4xyz
1.2 Installing from github
git clone https://github.com/imhuwq/v4xyz
cd v4xyz
python setup.py install
2. Setup config
Once you have v4xyz
installed, you have to config the OpenAI API key and the proxies if necessary.
v4 -e # this will open the config file with your editor
The config file is in json format:
{
"openai_secret": "",
"openai_model": "gpt-4-turbo",
"http_proxy": "",
"https_proxy": ""
}
The openai_secret
must be set to your OpenAI key.
The openai_model
is optional, the default is gpt-4-turbo
.
The http_proxy
and https_proxy
are optional if the OpenAI API is directly accessible from your region.
3. Ask AI in Terminal
v4 'How to config a reverse proxy with Nginx?'
v4 'send a HTTP GET request using telnet'
v4 'any thing here'
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
v4xyz-0.1.0.tar.gz
(8.7 kB
view hashes)