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 details)

Uploaded Source

File details

Details for the file v4xyz-0.1.0.tar.gz.

File metadata

  • Download URL: v4xyz-0.1.0.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.8

File hashes

Hashes for v4xyz-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9b97728f65c172425a00bdaeee9dca9f49c0557ec868b157aa92043a9ece0ef9
MD5 a99e458f14db3c558f18cca8719f3755
BLAKE2b-256 a81c662cdd53c0e9ef1ecc0f6024c7bb2527045f9c58c07e343df67832c66ece

See more details on using hashes here.

Supported by

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