From 711676a1a951c3bbb7ecab79c8754b5a02e840e8 Mon Sep 17 00:00:00 2001 From: Martin Bielik Date: Thu, 13 Apr 2023 21:47:10 +0200 Subject: removing openai-python from docu --- py/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'py/utils.py') diff --git a/py/utils.py b/py/utils.py index fb0f48f..0703a3b 100644 --- a/py/utils.py +++ b/py/utils.py @@ -81,8 +81,8 @@ def openai_request(url, data): "Content-Type": "application/json", "Authorization": f"Bearer {OPENAI_API_KEY}" } - # request_timeout is a leftover from the time when openai-python was used, - # it needs to be handled in a special way now + # request_timeout is a leftover from the time when openai-python was used + # moving it somewhere else would mean a breaking change, for now handling this way request_timeout=data['request_timeout'] del data['request_timeout'] req = urllib.request.Request( -- cgit v1.2.3