Projet to use ai api to generate text, image, etc.
- command text
- command translate
- command image
- command speech
- command tts
- openai
- claude
- mistral
- deepl
- Clone the repository:
git clone https://github.com/LordPax/aicli.git
cd aicli
- Build the project:
go mod download
go build
./install.sh
- Execute the script to generate config
Will generate a config file at ~/.config/aicli/config.ini
./aicli
[text]
type=openai
openai-model=gpt-4
openai-apiKey=yoursecretapikey
claude-model=claude-3-5-sonnet-20240620
claude-apiKey=yoursecretapikey
temp=0.7
[translate]
type=deepl
apiKey=yoursecretapikey
[image]
type=openai
model=dall-e-3
apiKey=yoursecretapikey
Add the following line to your .tmux.conf
:
bind H new-window "aicli text" \; rename-window "aicli"
You can install vim-aicli to use aicli in vim.
Add the following line to your .vimrc
:
Plug 'LordPax/vim-aicli'
Add the following line to your ~/.config/i3/config
:
bindsym $mod+s exec /usr/bin/aicli -c -g speech