From b9f19e127485279f59d995b533c4e275452d103c Mon Sep 17 00:00:00 2001 From: Anthony DePasquale Date: Mon, 2 Dec 2024 08:16:47 +0100 Subject: [PATCH 1/2] Add deep link to Local Chat --- packages/tasks/src/local-apps.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/tasks/src/local-apps.ts b/packages/tasks/src/local-apps.ts index 2249183a4..a1fa9ceee 100644 --- a/packages/tasks/src/local-apps.ts +++ b/packages/tasks/src/local-apps.ts @@ -325,6 +325,14 @@ export const LOCAL_APPS = { displayOnModelPage: isLlamaCppGgufModel, snippet: snippetLocalAI, }, + localchat: { + prettyLabel: "Local Chat", + docsUrl: "https://localchat.co", + mainTask: "text-generation", + displayOnModelPage: (model) => isMlxModel(model), + deeplink: (model) => + new URL(`https://localchat.co/model/${model.id}`), + }, jan: { prettyLabel: "Jan", docsUrl: "https://jan.ai", From 82460b00db832738535c33557b42a4731bda0915 Mon Sep 17 00:00:00 2001 From: Anthony Date: Thu, 5 Dec 2024 16:50:35 +0100 Subject: [PATCH 2/2] Simplify display logic Co-authored-by: Pedro Cuenca --- packages/tasks/src/local-apps.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/tasks/src/local-apps.ts b/packages/tasks/src/local-apps.ts index 0b1e616af..2120cdd2c 100644 --- a/packages/tasks/src/local-apps.ts +++ b/packages/tasks/src/local-apps.ts @@ -330,7 +330,7 @@ export const LOCAL_APPS = { prettyLabel: "Local Chat", docsUrl: "https://localchat.co", mainTask: "text-generation", - displayOnModelPage: (model) => isMlxModel(model), + displayOnModelPage: isMlxModel, deeplink: (model) => new URL(`https://localchat.co/model/${model.id}`), },