From a8087e6f4ff418143eef31d363122242790c9556 Mon Sep 17 00:00:00 2001 From: Martin Bielik Date: Mon, 20 Mar 2023 18:23:07 +0100 Subject: request timeout --- py/utils.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'py/utils.py') 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") -- cgit v1.2.3