forked from open-webui/open-webui
fix: ollamahub modelfile import with username
This commit is contained in:
parent
ca1daf5e02
commit
7074a882b4
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue