forked from open-webui/open-webui
fix: only ollama models
This commit is contained in:
parent
de5c02db5b
commit
9087aa0e30
2 changed files with 7 additions and 2 deletions
|
@ -15,7 +15,12 @@
|
||||||
let filteredModels = [];
|
let filteredModels = [];
|
||||||
|
|
||||||
$: filteredModels = $models
|
$: filteredModels = $models
|
||||||
.filter((p) => p.name !== 'hr' && p.name.includes(prompt.split(' ')?.at(0)?.substring(1) ?? ''))
|
.filter(
|
||||||
|
(p) =>
|
||||||
|
p.name !== 'hr' &&
|
||||||
|
!p.external &&
|
||||||
|
p.name.includes(prompt.split(' ')?.at(0)?.substring(1) ?? '')
|
||||||
|
)
|
||||||
.sort((a, b) => a.name.localeCompare(b.name));
|
.sort((a, b) => a.name.localeCompare(b.name));
|
||||||
|
|
||||||
$: if (prompt) {
|
$: if (prompt) {
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
<button
|
<button
|
||||||
class=" flex-1 flex justify-between w-full h-full px-4 py-2.5 bg-white hover:bg-gray-50 dark:bg-gray-800 dark:hover:bg-gray-700 outline outline-1 outline-gray-200 dark:outline-gray-600 rounded-lg transition group"
|
class=" flex-1 flex justify-between w-full h-full px-4 py-2.5 bg-white hover:bg-gray-50 dark:bg-gray-800 dark:hover:bg-gray-700 outline outline-1 outline-gray-200 dark:outline-gray-600 rounded-lg transition group"
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
submitPrompt(prompt.content, '');
|
submitPrompt(prompt.content);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div class="flex flex-col text-left self-center">
|
<div class="flex flex-col text-left self-center">
|
||||||
|
|
Loading…
Reference in a new issue