feat: fix and improve model list ui and features
This commit is contained in:
1 parent
9caf057a68
commit
7058cf0771
6 files changed
+230
-33
No files matched your search
@@ -354,8 +354,11 @@ export function invalidateCache({ chats=false, agents=false } = {}) {
|
||||
// --- Connection ---
|
||||
|
||||
export function onConnect (callback) {
|
||||
// TODO: return cancel function
|
||||
connectListeners.push(callback);
|
||||
if (socket && socket.readyState === WebSocket.OPEN) {
|
||||
callback();
|
||||
}
|
||||
// TODO: return cancel function
|
||||
}
|
||||
|
||||
function reconnect() {
|
||||
|
||||
Reference in new issue
Block a user