From 3f767d22e911d4632981e5c55946c968d7c7089e Mon Sep 17 00:00:00 2001 From: jeffser Date: Thu, 1 Aug 2024 14:56:38 -0600 Subject: [PATCH] New relase notes --- data/com.jeffser.Alpaca.metainfo.xml.in | 2 ++ src/window.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/data/com.jeffser.Alpaca.metainfo.xml.in b/data/com.jeffser.Alpaca.metainfo.xml.in index 210db1b..252ecb1 100644 --- a/data/com.jeffser.Alpaca.metainfo.xml.in +++ b/data/com.jeffser.Alpaca.metainfo.xml.in @@ -90,6 +90,8 @@

Fixes

diff --git a/src/window.py b/src/window.py index ff8b410..614f714 100644 --- a/src/window.py +++ b/src/window.py @@ -580,7 +580,7 @@ Generate a title following these rules: if 'images' in message: data["images"] = message['images'] response = connection_handler.simple_post(f"{connection_handler.url}/api/generate", data=json.dumps(data)) - new_chat_name = json.loads(response.text)["response"].strip().removeprefix("Title: ").removeprefix("title: ").strip('\'"').replace('\n', '').title() + new_chat_name = json.loads(response.text)["response"].strip().removeprefix("Title: ").removeprefix("title: ").strip('\'"').replace('\n', ' ').title() new_chat_name = new_chat_name[:50] + (new_chat_name[50:] and '...') self.rename_chat(label_element.get_name(), new_chat_name, label_element)