Sun, 25 Aug 2024 19:44:24 +0200
Implemented some more menu actions.
- Start and Stop a local 'ollama' server in the background.
- List available models.
- List running models.
- Open the 'ollama' model library in a browser.
<?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>OllamaRunningModelsDialog</class> <widget class="QDialog" name="OllamaRunningModelsDialog"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>600</width> <height>400</height> </rect> </property> <property name="windowTitle"> <string>Running Models</string> </property> <property name="sizeGripEnabled"> <bool>true</bool> </property> <layout class="QVBoxLayout" name="verticalLayout"> <item> <widget class="QTreeWidget" name="modelsList"> <property name="editTriggers"> <set>QAbstractItemView::NoEditTriggers</set> </property> <property name="alternatingRowColors"> <bool>true</bool> </property> <property name="selectionMode"> <enum>QAbstractItemView::NoSelection</enum> </property> <property name="rootIsDecorated"> <bool>false</bool> </property> <property name="itemsExpandable"> <bool>false</bool> </property> <property name="sortingEnabled"> <bool>true</bool> </property> <column> <property name="text"> <string>Name</string> </property> </column> <column> <property name="text"> <string>ID</string> </property> </column> <column> <property name="text"> <string>Size</string> </property> </column> <column> <property name="text"> <string>Processor</string> </property> </column> <column> <property name="text"> <string>Expires</string> </property> </column> </widget> </item> <item> <widget class="QDialogButtonBox" name="buttonBox"> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> <property name="standardButtons"> <set>QDialogButtonBox::Close</set> </property> </widget> </item> </layout> </widget> <resources/> <connections> <connection> <sender>buttonBox</sender> <signal>accepted()</signal> <receiver>OllamaRunningModelsDialog</receiver> <slot>accept()</slot> <hints> <hint type="sourcelabel"> <x>248</x> <y>254</y> </hint> <hint type="destinationlabel"> <x>157</x> <y>274</y> </hint> </hints> </connection> <connection> <sender>buttonBox</sender> <signal>rejected()</signal> <receiver>OllamaRunningModelsDialog</receiver> <slot>reject()</slot> <hints> <hint type="sourcelabel"> <x>316</x> <y>260</y> </hint> <hint type="destinationlabel"> <x>286</x> <y>274</y> </hint> </hints> </connection> </connections> </ui>