mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-11-24 01:36:37 +03:00
Fix: Exception in thread & KeyError: 'displayName'
This commit is contained in:
parent
ebc10fa465
commit
1207bb5066
@ -168,9 +168,9 @@ class Client:
|
||||
else:
|
||||
next_data = self.next_data
|
||||
|
||||
if not "availableBots" in self.viewer:
|
||||
if not "viewerBotList" in self.viewer:
|
||||
raise RuntimeError("Invalid token or no bots are available.")
|
||||
bot_list = self.viewer["availableBots"]
|
||||
bot_list = self.viewer["viewerBotList"]
|
||||
|
||||
threads = []
|
||||
bots = {}
|
||||
|
Loading…
Reference in New Issue
Block a user