mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-09-12 08:29:30 -04:00
commit
71f507ee94
@ -64,6 +64,7 @@ class Completion:
|
||||
text = response.text.split('}]}\n\nevent: youChatToken\ndata: {"youChatToken": "')[-1]
|
||||
text = text.replace('"}\n\nevent: youChatToken\ndata: {"youChatToken": "', '')
|
||||
text = text.replace('event: done\ndata: I\'m Mr. Meeseeks. Look at me.\n\n', '')
|
||||
text = text[:-4] # trims '"}', along with the last two remaining newlines
|
||||
|
||||
extra = {
|
||||
'youChatSerpResults' : loads(youChatSerpResults),
|
||||
|
Loading…
Reference in New Issue
Block a user