Don't regenerate title when there's a custom chat title

This commit is contained in:
jeffser 2024-08-10 20:22:39 -06:00
parent ffe382aee2
commit 47f5c88ef2

View File

@ -624,6 +624,8 @@ class AlpacaWindow(Adw.ApplicationWindow):
return messages
def generate_chat_title(self, message, label_element):
if not label_element.get_name().startswith(_("New Chat")):
return
logger.debug("Generating chat title")
prompt = f"""
Generate a title following these rules: