Added back regenerate button

This commit is contained in:
jeffser
2024-08-26 14:05:42 -06:00
parent d2271a7ade
commit db198e10c0
3 changed files with 23 additions and 16 deletions

View File

@@ -342,12 +342,13 @@ class action_buttons(Gtk.Box):
message_element = self.get_parent()
if not chat.busy:
message_element.set_text()
message_element.container.remove(message_element.footer)
if message_element.footer:
message_element.container.remove(message_element.footer)
message_element.remove_overlay(self)
message_element.action_buttons = None
history = window.convert_history_to_ollama(chat)[:list(chat.messages).index(message_element.message_id)]
data = {
"model": window.get_current_model(1),
"model": window.model_selector.get_model(),
"messages": history,
"options": {"temperature": window.model_tweaks["temperature"], "seed": window.model_tweaks["seed"]},
"keep_alive": f"{window.model_tweaks['keep_alive']}m"