New manage models interface and new metadata for available models

This commit is contained in:
jeffser 2024-06-26 00:34:05 -06:00
parent ade0b3735e
commit f49b68f1a6
3 changed files with 7 additions and 6 deletions

File diff suppressed because one or more lines are too long

View File

@ -898,8 +898,8 @@ class AlpacaWindow(Adw.ApplicationWindow):
self.available_model_list_box.remove_all()
for name, model_info in self.available_models.items():
model = Adw.ActionRow(
title = name,
subtitle = (_("(Image recognition capable)\n") if model_info["image"] else "") + model_info['description']
title = f"<b>{name.capitalize()}</b> <small>by {model_info['author']}</small>",
subtitle = f"<small>" + (_("(Image recognition capable)\n") if model_info["image"] else "") + f"{model_info['description']}</small>"
)
link_button = Gtk.Button(
icon_name = "globe-symbolic",

View File

@ -116,7 +116,7 @@
<child type="end">
<object class="GtkMenuButton">
<property name="primary">False</property>
<property name="icon-name">open-menu-symbolic</property>
<property name="icon-name">view-more-symbolic</property>
<property name="tooltip-text" translatable="yes">Chat menu</property>
<property name="menu-model">secondary_menu</property>
</object>
@ -597,8 +597,9 @@
<object class= "AdwCarousel" id="manage_models_carousel">
<property name="halign">0</property>
<property name="valign">0</property>
<property name="allow-long-swipes">true</property>
<property name="allow-scroll-wheel">true</property>
<property name="allow-long-swipes">false</property>
<property name="allow-scroll-wheel">false</property>
<property name="allow-mouse-drag">false</property>
<property name="spacing">12</property>
<child>
<object class="GtkScrolledWindow">