mirror of https://github.com/knrd1/chatgpt.git
print multiple lines of response from the OpenAI API
This commit is contained in:
parent
527008a9ee
commit
7edf97bb08
|
@ -38,5 +38,4 @@ while True:
|
|||
answers = response.choices[0].text.strip().split('\n')
|
||||
for answer in answers:
|
||||
irc.send(bytes("PRIVMSG " + channel + " :" + answer.strip() + "\n", "UTF-8"))
|
||||
irc.send(bytes("PRIVMSG " + channel + " :" + answer + "\n", "UTF-8"))
|
||||
time.sleep(1)
|
||||
|
|
Loading…
Reference in New Issue