mirror of https://github.com/knrd1/chatgpt.git
addressing multiple issues; error handling
This commit is contained in:
parent
75197d214f
commit
e10b6a61fa
|
@ -52,7 +52,7 @@ while True:
|
|||
top_p=1,
|
||||
frequency_penalty=0,
|
||||
presence_penalty=0,
|
||||
request_timeout=5 # Set request timeout to 3 minutes
|
||||
request_timeout=180 # Set request timeout to 3 minutes
|
||||
)
|
||||
answers = [x.strip() for x in response.choices[0].text.strip().split('\n')]
|
||||
for answer in answers:
|
||||
|
|
Loading…
Reference in New Issue