diff options
Diffstat (limited to 'py')
| -rw-r--r-- | py/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
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( |