From 8421f691816c61d8cb2f2147d6c6aacfd42c890d Mon Sep 17 00:00:00 2001 From: Martin Bielik Date: Fri, 3 Mar 2023 18:09:21 +0100 Subject: using openai api directly --- README.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 59d559d..20475c8 100644 --- a/README.md +++ b/README.md @@ -9,9 +9,6 @@ Complete text in vim using OpenAI. Prerequisites: ```sh -# install https://github.com/peterdemin/openai-cli -pip install openai-cli - # configure openai api key https://platform.openai.com/account/api-keys echo "YOUR_OPENAPI_TOKEN" > ~/.config/openai.token @@ -19,12 +16,14 @@ echo "YOUR_OPENAPI_TOKEN" > ~/.config/openai.token export OPENAI_API_TOKEN="YOUR_OPENAPI_TOKEN" ``` -Add plugin to your `.vimrc`, e.g. using `vim-plug`: +Add plugin to your `.vimrc` using `vim-plug`: ```vim -Plug 'madox2/vim-ai' +Plug 'madox2/vim-ai', { 'do': './install.sh' } ``` +The plugin requires `python3` and `pip` to be installed. + ## Usage ### Basic usage -- cgit v1.2.3