Jelajahi Sumber

fix: playground

Timothy J. Baek 11 bulan lalu
induk
melakukan
1fb4c60233
1 mengubah file dengan 5 tambahan dan 7 penghapusan
  1. 5 7
      src/lib/components/workspace/Playground.svelte

+ 5 - 7
src/lib/components/workspace/Playground.svelte

@@ -321,13 +321,11 @@
 							<div class="max-w-full">
 								<Selector
 									placeholder={$i18n.t('Select a model')}
-									items={$models
-										.filter((model) => model.name !== 'hr')
-										.map((model) => ({
-											value: model.id,
-											label: model.custom_info?.name ?? model.name,
-											info: model
-										}))}
+									items={$models.map((model) => ({
+										value: model.id,
+										label: model.name,
+										model: model
+									}))}
 									bind:value={selectedModelId}
 								/>
 							</div>