diff options
Diffstat (limited to 'plugin')
| -rw-r--r-- | plugin/vim-ai.vim | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/plugin/vim-ai.vim b/plugin/vim-ai.vim index 451ef90..088ba3d 100644 --- a/plugin/vim-ai.vim +++ b/plugin/vim-ai.vim @@ -1,22 +1,9 @@ -" Ensure Python3 and OpenAI is available +" Ensure python3 is available if !has('python3') - echoerr "Python 3 support is required for Vim-AI plugin" + echoerr "Python 3 support is required for vim-ai plugin" finish endif -" Add ChatGPT dependencies -python3 << EOF -import sys -try: - import openai -except ImportError: - print("Error: OpenAI module not found. Please install with Pip.") - raise -import vim -import os - -EOF - let g:vim_ai_complete_default = { \ "engine": "complete", \ "options": { |