diff options
| author | Martin Bielik <mx.bielik@gmail.com> | 2023-03-20 18:23:07 +0100 |
|---|---|---|
| committer | Martin Bielik <mx.bielik@gmail.com> | 2023-03-20 18:23:07 +0100 |
| commit | a8087e6f4ff418143eef31d363122242790c9556 (patch) | |
| tree | 576b89d4878b4fc91faf34432cd625f9c835d04c /py/utils.py | |
| parent | a726c49281b0f232ea1b84ed1c0e2438eef1d4cb (diff) | |
| download | vim-ai-a8087e6f4ff418143eef31d363122242790c9556.tar.gz | |
request timeout
Diffstat (limited to 'py/utils.py')
| -rw-r--r-- | py/utils.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/py/utils.py b/py/utils.py index c9e88f2..05da3b9 100644 --- a/py/utils.py +++ b/py/utils.py @@ -1,6 +1,8 @@ import sys import os +request_timeout_seconds = 15 + def load_api_key(): config_file_path = os.path.join(os.path.expanduser("~"), ".config/openai.token") api_key = os.getenv("OPENAI_API_KEY") |