This commit is contained in:
Timothy Jaeryang Baek committed 2026-07-31 21:16:21 -04:00
1 parent 1b7bea00a4
commit b89d672443
5 files changed
+101 -103

No files matched your search

@@ -71,15 +71,10 @@
{$t('admin.chatTitles')}
</h3>
<div class="flex flex-col gap-2.5">
<label class="flex items-center justify-between gap-3 cursor-pointer">
<div class="min-w-0">
<div class="text-xs text-gray-600 dark:text-gray-400">
{$t('admin.chatTitleGeneration')}
</div>
<div class="text-[0.6875rem] text-gray-400 dark:text-gray-600">
{$t('admin.chatTitleGenerationHint')}
</div>
</div>
<label class="flex items-center justify-between cursor-pointer">
<span class="text-xs text-gray-600 dark:text-gray-400">
{$t('admin.chatTitleGeneration')}
</span>
<ToggleSwitch
value={titleGenerationEnabled}
onchange={(value) => {
@@ -87,25 +82,28 @@
}}
/>
</label>
<p class="text-[0.6875rem] text-gray-400 dark:text-gray-600 -mt-1">
{$t('admin.chatTitleGenerationHint')}
</p>
{#if titleGenerationEnabled}
<div class="flex items-center justify-between gap-3">
<div class="min-w-0">
<div class="text-xs text-gray-600 dark:text-gray-400">
<div>
<div class="flex items-center justify-between gap-3">
<span class="min-w-0 text-xs text-gray-600 dark:text-gray-400">
{$t('admin.chatTitleModel')}
</div>
<div class="text-[0.6875rem] text-gray-400 dark:text-gray-600">
{$t('admin.chatTitleModelHint')}
</span>
<div class="shrink-0">
<ModelSelector
bind:selectedModel={titleGenerationModel}
nullable
nullLabel={$t('modelSelector.currentModel')}
preferAbove={false}
/>
</div>
</div>
<div class="shrink-0">
<ModelSelector
bind:selectedModel={titleGenerationModel}
nullable
nullLabel={$t('modelSelector.currentModel')}
preferAbove={false}
/>
</div>
<p class="text-[0.6875rem] text-gray-400 dark:text-gray-600 -mt-1">
{$t('admin.chatTitleModelHint')}
</p>
</div>
{/if}
</div>
@@ -114,23 +112,23 @@
{$t('admin.contextCompaction')}
</h3>
<div class="flex flex-col gap-2.5">
<div class="flex items-center justify-between gap-3">
<div class="min-w-0">
<div class="text-xs text-gray-600 dark:text-gray-400">
<div>
<div class="flex items-center justify-between gap-3">
<span class="min-w-0 text-xs text-gray-600 dark:text-gray-400">
{$t('admin.contextSummaryModel')}
</div>
<div class="text-[0.6875rem] text-gray-400 dark:text-gray-600">
{$t('admin.contextSummaryModelHint')}
</span>
<div class="shrink-0">
<ModelSelector
bind:selectedModel={contextCompactionModel}
nullable
nullLabel={$t('modelSelector.currentModel')}
preferAbove={false}
/>
</div>
</div>
<div class="shrink-0">
<ModelSelector
bind:selectedModel={contextCompactionModel}
nullable
nullLabel={$t('modelSelector.currentModel')}
preferAbove={false}
/>
</div>
<p class="text-[0.6875rem] text-gray-400 dark:text-gray-600 -mt-1">
{$t('admin.contextSummaryModelHint')}
</p>
</div>
<div>
<label class="text-xs text-gray-600 dark:text-gray-400" for="compact-threshold">
@@ -159,23 +157,23 @@
<h3 class="text-xs text-gray-400 dark:text-gray-600 mb-2 mt-5">
{$t('admin.toolApproval')}
</h3>
<div class="flex items-center justify-between gap-3">
<div class="min-w-0">
<div class="text-xs text-gray-600 dark:text-gray-400">
<div>
<div class="flex items-center justify-between gap-3">
<span class="min-w-0 text-xs text-gray-600 dark:text-gray-400">
{$t('admin.toolApprovalReviewModel')}
</div>
<div class="text-[0.6875rem] text-gray-400 dark:text-gray-600">
{$t('admin.toolApprovalReviewModelHint')}
</span>
<div class="shrink-0">
<ModelSelector
bind:selectedModel={toolApprovalReviewModel}
nullable
nullLabel={$t('modelSelector.currentModel')}
preferAbove={false}
/>
</div>
</div>
<div class="shrink-0">
<ModelSelector
bind:selectedModel={toolApprovalReviewModel}
nullable
nullLabel={$t('modelSelector.currentModel')}
preferAbove={false}
/>
</div>
<p class="text-[0.6875rem] text-gray-400 dark:text-gray-600 -mt-1">
{$t('admin.toolApprovalReviewModelHint')}
</p>
</div>
</div>
@@ -44,23 +44,23 @@
<div class="flex-1 min-h-0 overflow-y-auto scrollbar-hover pr-1.5 -mr-1.5">
<h2 class="text-sm font-medium text-gray-900 dark:text-white mb-4">{$t('admin.git')}</h2>
<div class="flex items-center justify-between gap-3">
<div class="min-w-0">
<div class="text-xs text-gray-600 dark:text-gray-400">
<div>
<div class="flex items-center justify-between gap-3">
<span class="min-w-0 text-xs text-gray-600 dark:text-gray-400">
{$t('admin.gitCommitMessageModel')}
</div>
<div class="text-[0.6875rem] text-gray-400 dark:text-gray-600">
{$t('admin.gitCommitMessageModelHint')}
</span>
<div class="shrink-0">
<ModelSelector
bind:selectedModel={commitMessageModel}
nullable
nullLabel={$t('modelSelector.defaultModel')}
preferAbove={false}
/>
</div>
</div>
<div class="shrink-0">
<ModelSelector
bind:selectedModel={commitMessageModel}
nullable
nullLabel={$t('modelSelector.defaultModel')}
preferAbove={false}
/>
</div>
<p class="text-[0.6875rem] text-gray-400 dark:text-gray-600 -mt-1">
{$t('admin.gitCommitMessageModelHint')}
</p>
</div>
</div>
@@ -542,18 +542,18 @@ Files:
</button>
</div>
<div class="flex items-center justify-between gap-3 mb-1">
<div class="min-w-0">
<h3 class="text-xs text-gray-600 dark:text-gray-400">
<div class="mb-1">
<div class="flex items-center justify-between gap-3">
<h3 class="min-w-0 text-xs text-gray-600 dark:text-gray-400">
{$t('models.defaultModel')}
</h3>
<div class="text-[0.6875rem] text-gray-400 dark:text-gray-600">
{$t('models.defaultModelHint')}
<div class="shrink-0">
<ModelSelector bind:selectedModel={defaultModelId} preferAbove={false} />
</div>
</div>
<div class="shrink-0">
<ModelSelector bind:selectedModel={defaultModelId} preferAbove={false} />
</div>
<p class="text-[0.6875rem] text-gray-400 dark:text-gray-600 -mt-1">
{$t('models.defaultModelHint')}
</p>
</div>
<!-- Global defaults -->
@@ -102,23 +102,23 @@
/>
</label>
<div class="flex items-center justify-between gap-3">
<div class="min-w-0">
<div class="text-xs text-gray-600 dark:text-gray-400">
<div>
<div class="flex items-center justify-between gap-3">
<span class="min-w-0 text-xs text-gray-600 dark:text-gray-400">
{$t('admin.skillsBackgroundReviewModel')}
</div>
<div class="text-[0.6875rem] text-gray-400 dark:text-gray-600">
{$t('admin.skillsBackgroundReviewModelHint')}
</span>
<div class="shrink-0">
<ModelSelector
bind:selectedModel={backgroundReviewModel}
nullable
nullLabel={$t('modelSelector.currentModel')}
preferAbove={false}
/>
</div>
</div>
<div class="shrink-0">
<ModelSelector
bind:selectedModel={backgroundReviewModel}
nullable
nullLabel={$t('modelSelector.currentModel')}
preferAbove={false}
/>
</div>
<p class="text-[0.6875rem] text-gray-400 dark:text-gray-600 -mt-1">
{$t('admin.skillsBackgroundReviewModelHint')}
</p>
</div>
{/if}
</div>
@@ -103,25 +103,25 @@
/>
</label>
<div class="flex items-center justify-between gap-3">
<div class="min-w-0">
<div class="text-xs text-gray-600 dark:text-gray-400">
<div>
<div class="flex items-center justify-between gap-3">
<span class="min-w-0 text-xs text-gray-600 dark:text-gray-400">
{$t('memory.backgroundReviewModel')}
</div>
<div class="text-[0.6875rem] text-gray-400 dark:text-gray-600">
{$t('memory.backgroundReviewModelHint')}
</span>
<div class="shrink-0">
<ModelSelector
selectedModel={settings['background_review.model'] ?? null}
nullable
nullLabel={$t('modelSelector.currentModel')}
preferAbove={false}
onchange={(model) =>
(settings = { ...settings!, 'background_review.model': model })}
/>
</div>
</div>
<div class="shrink-0">
<ModelSelector
selectedModel={settings['background_review.model'] ?? null}
nullable
nullLabel={$t('modelSelector.currentModel')}
preferAbove={false}
onchange={(model) =>
(settings = { ...settings!, 'background_review.model': model })}
/>
</div>
<p class="text-[0.6875rem] text-gray-400 dark:text-gray-600 -mt-1">
{$t('memory.backgroundReviewModelHint')}
</p>
</div>
{/if}
</div>