Skip to content

Commit

Permalink
Don't show remove model
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudotensor committed Jun 5, 2024
1 parent fa9fdab commit 1e49d4d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/components/chat/ModelSelector.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
export let disabled = false;
export let showSetDefault = true;
export let showAddModelButton = false; // New variable to control the visibility of the add model button
export let showAddRemoveModelButtons = false;
const saveDefaultModel = async () => {
const hasEmptyModel = selectedModels.filter((it) => it === '');
Expand Down Expand Up @@ -52,7 +52,7 @@
</div>
</div>

{#if selectedModelIdx === 0 && showAddModelButton}
{#if selectedModelIdx === 0 && showAddRemoveModelButtons}
<div class=" self-center mr-2 disabled:text-gray-600 disabled:hover:text-gray-600">
<Tooltip content={$i18n.t('Add Model')}>
<button
Expand All @@ -75,7 +75,7 @@
</button>
</Tooltip>
</div>
{:else}
{:else if selectedModelIdx !== 0 && showAddRemoveModelButtons}
<div class=" self-center disabled:text-gray-600 disabled:hover:text-gray-600 mr-2">
<Tooltip content={$i18n.t('Remove Model')}>
<button
Expand Down

0 comments on commit 1e49d4d

Please sign in to comment.