"...composable_kernel_onnxruntime.git" did not exist on "52ae168b171cdc2f0c708a885a28f174c29f41a4"
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 @@ ...@@ -325,7 +325,7 @@
</div> </div>
{#if selectedModelfile.user} {#if selectedModelfile.user}
<div class="mt-0.5 text-sm font-normal text-gray-500 dark:text-gray-500"> <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.name ? selectedModelfile.user.name
: `@${selectedModelfile.user.username}`}</a : `@${selectedModelfile.user.username}`}</a
......
...@@ -228,7 +228,9 @@ SYSTEM """${system}"""`.replace(/^\s*\n/gm, ''); ...@@ -228,7 +228,9 @@ SYSTEM """${system}"""`.replace(/^\s*\n/gm, '');
imageUrl = modelfile.imageUrl; imageUrl = modelfile.imageUrl;
title = modelfile.title; title = modelfile.title;
await tick(); await tick();
tagName = `${modelfile.user.username}/${modelfile.tagName}`; tagName = `${modelfile.user.username === 'hub' ? '' : `hub/`}${modelfile.user.username}/${
modelfile.tagName
}`;
desc = modelfile.desc; desc = modelfile.desc;
content = modelfile.content; content = modelfile.content;
suggestions = 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