Gemini: Remove unneeded length check

Oops, left this in accidentally.
This commit is contained in:
Gordon Shumway 2024-08-05 21:24:04 -04:00 committed by GitHub
parent 7d24850fe9
commit 87a0877f9a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -68,8 +68,6 @@ class Gemini(callbacks.Plugin):
self.history.setdefault(channel, None)
if not self.history[channel]:
self.history[channel] = []
if len(self.history[channel]) > max_history:
self.history[channel] = []
chat = model.start_chat(history=self.history[channel][-max_history:])
if include:
response = chat.send_message("%s: %s" % (msg.nick, text))