Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
970a7135
Unverified
Commit
970a7135
authored
Dec 09, 2023
by
Timothy Jaeryang Baek
Committed by
GitHub
Dec 09, 2023
Browse files
Merge pull request #200 from ollama-webui/modelfile-import
feat: OllamaHub import improvements
parents
ca1daf5e
453674ae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
src/lib/components/chat/Messages.svelte
src/lib/components/chat/Messages.svelte
+1
-1
src/routes/(app)/modelfiles/create/+page.svelte
src/routes/(app)/modelfiles/create/+page.svelte
+3
-1
No files found.
src/lib/components/chat/Messages.svelte
View file @
970a7135
...
@@ -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
...
...
src/routes/(app)/modelfiles/create/+page.svelte
View file @
970a7135
...
@@ -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 =
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment