gpt3: timeout after 30 seconds

This commit is contained in:
dece 2022-12-11 22:13:11 +01:00
parent e9571418e3
commit 2f868d2389

View file

@ -35,7 +35,9 @@ class Gpt3Plugin(Plugin):
max_tokens=128,
top_p=1,
frequency_penalty=0.5,
presence_penalty=0
presence_penalty=0,
timeout=30,
response_timeout=30,
)
except openai.error.OpenAIError:
return None