From 8af2250ee04a228e064a750f341812c02134081d Mon Sep 17 00:00:00 2001 From: Martin Bielik Date: Sun, 26 Mar 2023 18:46:00 +0200 Subject: min openai-python version, fixes #3 --- README.md | 2 +- install.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6cb5e05..dc997a3 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/install.sh b/install.sh index 76174c4..44156bb 100755 --- a/install.sh +++ b/install.sh @@ -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 -- cgit v1.2.3