diff options
| author | Martin Bielik <mx.bielik@gmail.com> | 2023-04-13 21:47:10 +0200 |
|---|---|---|
| committer | Martin Bielik <mx.bielik@gmail.com> | 2023-04-13 21:47:10 +0200 |
| commit | 711676a1a951c3bbb7ecab79c8754b5a02e840e8 (patch) | |
| tree | 2c130ebf43b802c3227e593d562df5363ebe5495 /py | |
| parent | 97801a0fba2f4bb9409bb7a2b2bfec0344c53838 (diff) | |
| download | vim-ai-711676a1a951c3bbb7ecab79c8754b5a02e840e8.tar.gz | |
removing openai-python from docu
Diffstat (limited to '')
| -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( |