Browse Source

refac: show default instead of none

Timothy J. Baek 1 year ago
parent
commit
c1971fd8d7
1 changed files with 7 additions and 1 deletions
  1. 7 1
      src/lib/components/chat/Settings/Valves.svelte

+ 7 - 1
src/lib/components/chat/Settings/Valves.svelte

@@ -189,7 +189,13 @@
 										}}
 									>
 										{#if (valves[property] ?? null) === null}
-											<span class="ml-2 self-center"> {$i18n.t('None')} </span>
+											<span class="ml-2 self-center">
+												{#if (valvesSpec?.required ?? []).includes(property)}
+													{$i18n.t('None')}
+												{:else}
+													{$i18n.t('Default')}
+												{/if}
+											</span>
 										{:else}
 											<span class="ml-2 self-center"> {$i18n.t('Custom')} </span>
 										{/if}