gpt3: timeout after 30 seconds
This commit is contained in:
parent
e9571418e3
commit
2f868d2389
|
@ -35,7 +35,9 @@ class Gpt3Plugin(Plugin):
|
||||||
max_tokens=128,
|
max_tokens=128,
|
||||||
top_p=1,
|
top_p=1,
|
||||||
frequency_penalty=0.5,
|
frequency_penalty=0.5,
|
||||||
presence_penalty=0
|
presence_penalty=0,
|
||||||
|
timeout=30,
|
||||||
|
response_timeout=30,
|
||||||
)
|
)
|
||||||
except openai.error.OpenAIError:
|
except openai.error.OpenAIError:
|
||||||
return None
|
return None
|
||||||
|
|
Loading…
Reference in a new issue