Browse Source

enh: valve field desc support

Timothy J. Baek 10 months ago
parent
commit
5d7de927e5
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

@@ -203,7 +203,7 @@
 								</div>
 
 								{#if (valves[property] ?? null) !== null}
-									<div class="flex mt-0.5 space-x-2">
+									<div class="flex mt-0.5 mb-1 space-x-2">
 										<div class=" flex-1">
 											<input
 												class="w-full rounded-lg py-2 px-4 text-sm dark:text-gray-300 dark:bg-gray-850 outline-none"
@@ -216,6 +216,12 @@
 										</div>
 									</div>
 								{/if}
+
+								{#if (valvesSpec.properties[property]?.description ?? null) !== null}
+									<div class="text-xs text-gray-500">
+										{valvesSpec.properties[property].description}
+									</div>
+								{/if}
 							</div>
 						{/each}
 					{:else}