Unverified Commit 970a7135 authored by Timothy Jaeryang Baek's avatar Timothy Jaeryang Baek Committed by GitHub
Browse files

Merge pull request #200 from ollama-webui/modelfile-import

feat: OllamaHub import improvements
parents ca1daf5e 453674ae
......@@ -325,7 +325,7 @@
</div>
{#if selectedModelfile.user}
<div class="mt-0.5 text-sm font-normal text-gray-500 dark:text-gray-500">
By <a href="https://ollamahub.com/"
By <a href="https://ollamahub.com/m/{selectedModelfile.user.username}"
>{selectedModelfile.user.name
? selectedModelfile.user.name
: `@${selectedModelfile.user.username}`}</a
......
......@@ -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 =
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment