Use ChatGPT to query information in the terminal!
Note: The main
branch may be in an unstable or even broken state during development.
Please use releases instead of the main
branch in order to get a stable
set of binaries.
- It is written in
go language
- It calls the
gpt-3.5-turbo
model of theOpenAI
company, so you need to go to openai.com ObtainAPI secret key
from the website - Based on text translation service provided by YouDaoZhiYun, it supports multi-language translation function
- In chat, it generates results based on the last 10 interactive conversations
- It will automatically save historical chat information, the information is saved in the
~/.chat.context
file, and it will automatically save 1000 interactive conversations - The configuration file it depends on is
~/.chat.ini
, a sample configuration file: .chat.ini
- Download the corresponding binary file
- Copy the file to the directory included in the system
$PATH
, such as:sudo mv q /usr/local/bin/q
- Copy the default configuration file to the specified location, rename it, and modify the content of the file as needed
- Run the program in terminal:
q Wake Up, Neo!
Translation turned off:
Using the translation function (Simplified Chinese):
Using the translation function (Japanese):
Interactive mode:
Language