Skip to main content

A command line tool to chat with GPT4 and render markdown response.

Project description

v4xyz


v4xyz, way for doing kinds of things.

PyPI - Python Version PyPI PyPI - Downloads GitHub

A cli tool that ask GPT4 for programming solutions and get answers directly in terminal.

 ______   __    _              _             __    __            _      __             
/_  __/  / /   (_)  ___       (_)  ___      / /_  / /  ___      | | /| / / ___ _  __ __
 / /    / _ \ / /  (_-<      / /  (_-<     / __/ / _ \/ -_)     | |/ |/ / / _ `/ / // /
/_/    /_//_//_/  /___/     /_/  /___/     \__/ /_//_/\__/      |__/|__/  \_,_/  \_, / 
                                                                                /___/  

https://user-images.githubusercontent.com/10917115/238183926-b682f0d0-44c2-4815-9728-9ce8f8601319.mp4


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)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page