Skip to content

Commit

Permalink
Don't show add model
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudotensor committed Jun 5, 2024
1 parent b5e2b0c commit fa9fdab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/components/chat/ModelSelector.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +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
const saveDefaultModel = async () => {
const hasEmptyModel = selectedModels.filter((it) => it === '');
Expand Down Expand Up @@ -51,7 +52,7 @@
</div>
</div>

{#if selectedModelIdx === 0}
{#if selectedModelIdx === 0 && showAddModelButton}
<div class=" self-center mr-2 disabled:text-gray-600 disabled:hover:text-gray-600">
<Tooltip content={$i18n.t('Add Model')}>
<button
Expand Down

0 comments on commit fa9fdab

Please sign in to comment.