From 7074a882b4483399be027e9dfb3fe1c8f1d4d331 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Fri, 8 Dec 2023 21:03:03 -0800 Subject: [PATCH 1/2] fix: ollamahub modelfile import with username --- src/routes/(app)/modelfiles/create/+page.svelte | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/routes/(app)/modelfiles/create/+page.svelte b/src/routes/(app)/modelfiles/create/+page.svelte index 6e4e3f7d2..18dee2d3d 100644 --- a/src/routes/(app)/modelfiles/create/+page.svelte +++ b/src/routes/(app)/modelfiles/create/+page.svelte @@ -228,7 +228,9 @@ SYSTEM """${system}"""`.replace(/^\s*\n/gm, ''); imageUrl = modelfile.imageUrl; title = modelfile.title; await tick(); - tagName = `${modelfile.user.username}/${modelfile.tagName}`; + tagName = `${modelfile.user.username === 'hub' ? '' : `hub/`}${modelfile.user.username}/${ + modelfile.tagName + }`; desc = modelfile.desc; content = modelfile.content; suggestions = From 453674aeb7dcab07e9930aff9d0eed9d92531c03 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Fri, 8 Dec 2023 21:05:03 -0800 Subject: [PATCH 2/2] feat: modelfile ollamahub link to creator --- src/lib/components/chat/Messages.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/chat/Messages.svelte b/src/lib/components/chat/Messages.svelte index 7e950d312..3c021664f 100644 --- a/src/lib/components/chat/Messages.svelte +++ b/src/lib/components/chat/Messages.svelte @@ -325,7 +325,7 @@ {#if selectedModelfile.user}