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/chat.py | |
| parent | a726c49281b0f232ea1b84ed1c0e2438eef1d4cb (diff) | |
| download | vim-ai-a8087e6f4ff418143eef31d363122242790c9556.tar.gz | |
request timeout
Diffstat (limited to 'py/chat.py')
| -rw-r--r-- | py/chat.py | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -38,9 +38,10 @@ try: vim.command("redraw") response = openai.ChatCompletion.create( - model="gpt-3.5-turbo", - messages=messages, - stream=True, + model="gpt-3.5-turbo", + messages=messages, + stream=True, + request_timeout=request_timeout_seconds, ) generating_text = False |