diff options
| author | Martin Bielik <mx.bielik@gmail.com> | 2023-03-26 18:46:00 +0200 |
|---|---|---|
| committer | Martin Bielik <mx.bielik@gmail.com> | 2023-03-26 18:46:00 +0200 |
| commit | 8af2250ee04a228e064a750f341812c02134081d (patch) | |
| tree | 1655d70b51c381c4fe9e010234b900f07d56cb06 | |
| parent | 6fa8938304afc740f550bf87e26b3c52dd508d0e (diff) | |
| download | vim-ai-8af2250ee04a228e064a750f341812c02134081d.tar.gz | |
min openai-python version, fixes #3
| -rw-r--r-- | README.md | 2 | ||||
| -rwxr-xr-x | install.sh | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -12,7 +12,7 @@ Complete text and chat with GPT in Vim/Neovim using OpenAI. ## Installation -vim-ai requires Vim/Neovim compiled with python3 support and the [openai-python](https://github.com/openai/openai-python) library. +vim-ai requires Vim/Neovim compiled with python3 support and the [openai-python](https://github.com/openai/openai-python) library (version 0.27+). ```sh # configure openai api key https://platform.openai.com/account/api-keys @@ -2,13 +2,13 @@ if [ -n "$(which pip)" ]; then echo installing deps using pip - pip install openai + pip install "openai>=0.27" exit 0 fi if [ -n "$(which pip3)" ]; then echo installing deps using pip3 - pip3 install openai + pip3 install "openai>=0.27" exit 0 fi |