mirror of
https://github.com/open-webui/open-webui
synced 2024-11-28 15:05:07 +00:00
Merge pull request #200 from ollama-webui/modelfile-import
feat: OllamaHub import improvements
This commit is contained in:
commit
970a71354b
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user