Warning
This project is still in development and is not ready for use.
AICO is an AI-powered text generation tool using OpenAI's GPT-4.
Since pre-built binaries are not provided, you will need to install Go to build and run AICO.
Make sure you have Go version 1.20 or higher installed on your system.
You can check the installed version by running go version
.
If you do not have Go installed or your version is outdated, download and install it from the Go website.
Once you have Go installed, follow these steps to install AICO:
- Clone the repository:
git clone https://github.com/micheam/ai-assistant-console.git
- Navigate to the project directory:
cd ai-assistant-console
- Use the
go.mod
file to manage dependencies. You don't need to do anything manually since Go will handle this for you. - Build the executable binary by running
make
:This will create a binary executable in themake
bin/
directory.
Now, you can use commands as described in the Usage section.
Currently, AICO requires an OpenAI API key to use the GPT-4 API. You can get an API key from the OpenAI API Keys page.
Once you have an API key, you can set it in the OPENAI_API_KEY
environment variable:
export OPENAI_API_KEY=<your API key>
After building the binary, you can run chat
to start chatting with AI.
NAME:
chat - Chat with AI
USAGE:
chat [global options] command [command options] [arguments...]
VERSION:
0.0.7
COMMANDS:
config Show config file path
tui Chat with AI in TUI
send Send message to AI
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--debug Enable debug mode (default: false) [$AICO_DEBUG]
--model value, -m value GPT model to use (default: "gpt-4")
--persona value, -p value Persona to use (default: "default")
--help, -h show help
--version, -v print the version
To chat with AI in TUI mode, use the tui
subcommand:
$ ./bin/chat tui
In TUI mode, you can send message with ';; (double semicolon)' line.
$ ./bin/chat tui
Conversation with gpt-4-1106-preview
------------------------------
> Translate into English:
>
> こんにちは、世界。
> ;;
Hello, world.
To send a message to AI, use the send
subcommand:
$ ./bin/chat send "Translate into English: こんにちは、世界。"
Hello, world.
AICO can be used as a Vim plugin to generate text in Vim buffers. Please see the Vim plugin documentation for more information.
AICO_DEBUG
: Sets the debug mode of AICO. Default isfalse
.
To contribute to AICO development, clone this repository and make the desired code changes. Before submitting your changes, ensure the following:
- All tests pass by running
make test
- The code formatting is consistent and adheres to Go standards
The AICO project is released under the MIT License.