lbiester commited on
Commit
a59fdb5
·
verified ·
1 Parent(s): db84fee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -21,7 +21,7 @@ def middchat(bot_cache: BotCache, message: str, history: List[Tuple[str, str]])
21
  """
22
  # get the bot options
23
  # for new chats, fetch new bots
24
- if message == "update bots":
25
  all_bots = bot_cache.update()
26
  else:
27
  all_bots = bot_cache.bots
 
21
  """
22
  # get the bot options
23
  # for new chats, fetch new bots
24
+ if message == "update bots" or len(history) <= 1:
25
  all_bots = bot_cache.update()
26
  else:
27
  all_bots = bot_cache.bots