New relase notes

This commit is contained in:
jeffser 2024-08-01 14:56:38 -06:00
parent 7f3fb0d82d
commit 3f767d22e9
2 changed files with 3 additions and 1 deletions

View File

@ -90,6 +90,8 @@
<p>Fixes</p> <p>Fixes</p>
<ul> <ul>
<li>Made support dialog more common</li> <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> </ul>
</description> </description>
</release> </release>

View File

@ -580,7 +580,7 @@ Generate a title following these rules:
if 'images' in message: data["images"] = message['images'] if 'images' in message: data["images"] = message['images']
response = connection_handler.simple_post(f"{connection_handler.url}/api/generate", data=json.dumps(data)) 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 '...') new_chat_name = new_chat_name[:50] + (new_chat_name[50:] and '...')
self.rename_chat(label_element.get_name(), new_chat_name, label_element) self.rename_chat(label_element.get_name(), new_chat_name, label_element)