Skip to content

Commit 3f767d2

Browse files
committed
New relase notes
1 parent 7f3fb0d commit 3f767d2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

data/com.jeffser.Alpaca.metainfo.xml.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@
9090
<p>Fixes</p>
9191
<ul>
9292
<li>Made support dialog more common</li>
93+
<li>Dialog title on tag chooser when downloading models didn't display properly</li>
94+
<li>Prevent chat generation from generating a title with multiple lines</li>
9395
</ul>
9496
</description>
9597
</release>

src/window.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ def generate_chat_title(self, message, label_element):
580580
if 'images' in message: data["images"] = message['images']
581581
response = connection_handler.simple_post(f"{connection_handler.url}/api/generate", data=json.dumps(data))
582582

583-
new_chat_name = json.loads(response.text)["response"].strip().removeprefix("Title: ").removeprefix("title: ").strip('\'"').replace('\n', '').title()
583+
new_chat_name = json.loads(response.text)["response"].strip().removeprefix("Title: ").removeprefix("title: ").strip('\'"').replace('\n', ' ').title()
584584
new_chat_name = new_chat_name[:50] + (new_chat_name[50:] and '...')
585585
self.rename_chat(label_element.get_name(), new_chat_name, label_element)
586586

0 commit comments

Comments
 (0)