Skip to content

Commit

Permalink
New relase notes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffser committed Aug 1, 2024
1 parent 7f3fb0d commit 3f767d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions data/com.jeffser.Alpaca.metainfo.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@
<p>Fixes</p>
<ul>
<li>Made support dialog more common</li>
<li>Dialog title on tag chooser when downloading models didn't display properly</li>
<li>Prevent chat generation from generating a title with multiple lines</li>
</ul>
</description>
</release>
Expand Down
2 changes: 1 addition & 1 deletion src/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ def generate_chat_title(self, message, label_element):
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)

Expand Down

0 comments on commit 3f767d2

Please sign in to comment.