|
@@ -1553,7 +1553,7 @@ export const SettingsView: React.FC<SettingsViewProps> = ({
|
|
|
onChange={(e) => handleUpdateKbSettings('selectedLLMId', e.target.value)}
|
|
onChange={(e) => handleUpdateKbSettings('selectedLLMId', e.target.value)}
|
|
|
className="w-full px-4 py-3.5 bg-slate-50 border border-slate-200 rounded-2xl text-sm font-medium outline-none focus:ring-4 focus:ring-indigo-500/10 transition-all cursor-pointer appearance-none"
|
|
className="w-full px-4 py-3.5 bg-slate-50 border border-slate-200 rounded-2xl text-sm font-medium outline-none focus:ring-4 focus:ring-indigo-500/10 transition-all cursor-pointer appearance-none"
|
|
|
>
|
|
>
|
|
|
- <option value="">{t('selectLLM')}</option>
|
|
|
|
|
|
|
+ <option value="">--- {t('selectLLMModel')} ---</option>
|
|
|
{models.filter(m => m.type === ModelType.LLM).map(m => (
|
|
{models.filter(m => m.type === ModelType.LLM).map(m => (
|
|
|
<option key={m.id} value={m.id}>{m.name} ({m.modelId})</option>
|
|
<option key={m.id} value={m.id}>{m.name} ({m.modelId})</option>
|
|
|
))}
|
|
))}
|
|
@@ -1567,7 +1567,7 @@ export const SettingsView: React.FC<SettingsViewProps> = ({
|
|
|
onChange={(e) => handleUpdateKbSettings('selectedEmbeddingId', e.target.value)}
|
|
onChange={(e) => handleUpdateKbSettings('selectedEmbeddingId', e.target.value)}
|
|
|
className="w-full px-4 py-3.5 bg-slate-50 border border-slate-200 rounded-2xl text-sm font-medium outline-none focus:ring-4 focus:ring-indigo-500/10 transition-all"
|
|
className="w-full px-4 py-3.5 bg-slate-50 border border-slate-200 rounded-2xl text-sm font-medium outline-none focus:ring-4 focus:ring-indigo-500/10 transition-all"
|
|
|
>
|
|
>
|
|
|
- <option value="">{t('selectEmbedding')}</option>
|
|
|
|
|
|
|
+ <option value="">--- {t('selectEmbeddingModel')} ---</option>
|
|
|
{models.filter(m => m.type === ModelType.EMBEDDING).map(m => (
|
|
{models.filter(m => m.type === ModelType.EMBEDDING).map(m => (
|
|
|
<option key={m.id} value={m.id}>{m.name}</option>
|
|
<option key={m.id} value={m.id}>{m.name}</option>
|
|
|
))}
|
|
))}
|
|
@@ -1579,8 +1579,8 @@ export const SettingsView: React.FC<SettingsViewProps> = ({
|
|
|
value={localKbSettings.selectedRerankId || ''}
|
|
value={localKbSettings.selectedRerankId || ''}
|
|
|
onChange={(e) => handleUpdateKbSettings('selectedRerankId', e.target.value)}
|
|
onChange={(e) => handleUpdateKbSettings('selectedRerankId', e.target.value)}
|
|
|
className="w-full px-4 py-3.5 bg-slate-50 border border-slate-200 rounded-2xl text-sm font-medium outline-none focus:ring-4 focus:ring-indigo-500/10 transition-all"
|
|
className="w-full px-4 py-3.5 bg-slate-50 border border-slate-200 rounded-2xl text-sm font-medium outline-none focus:ring-4 focus:ring-indigo-500/10 transition-all"
|
|
|
- >
|
|
|
|
|
- <option value="">{t('none')}</option>
|
|
|
|
|
|
|
+ >
|
|
|
|
|
+ <option value="">--- {t('selectRerankModel')} ---</option>
|
|
|
{models.filter(m => m.type === ModelType.RERANK).map(m => (
|
|
{models.filter(m => m.type === ModelType.RERANK).map(m => (
|
|
|
<option key={m.id} value={m.id}>{m.name}</option>
|
|
<option key={m.id} value={m.id}>{m.name}</option>
|
|
|
))}
|
|
))}
|
|
@@ -1595,8 +1595,8 @@ export const SettingsView: React.FC<SettingsViewProps> = ({
|
|
|
value={localKbSettings.selectedVisionId || ''}
|
|
value={localKbSettings.selectedVisionId || ''}
|
|
|
onChange={(e) => handleUpdateKbSettings('selectedVisionId', e.target.value)}
|
|
onChange={(e) => handleUpdateKbSettings('selectedVisionId', e.target.value)}
|
|
|
className="w-full px-4 py-3.5 bg-slate-50 border border-slate-200 rounded-2xl text-sm font-medium outline-none focus:ring-4 focus:ring-indigo-500/10 transition-all"
|
|
className="w-full px-4 py-3.5 bg-slate-50 border border-slate-200 rounded-2xl text-sm font-medium outline-none focus:ring-4 focus:ring-indigo-500/10 transition-all"
|
|
|
- >
|
|
|
|
|
- <option value="">{t('none')}</option>
|
|
|
|
|
|
|
+ >
|
|
|
|
|
+ <option value="">--- {t('selectVisionModel')} ---</option>
|
|
|
{models.filter(m => m.type === ModelType.VISION || m.supportsVision).map(m => (
|
|
{models.filter(m => m.type === ModelType.VISION || m.supportsVision).map(m => (
|
|
|
<option key={m.id} value={m.id}>{m.name}</option>
|
|
<option key={m.id} value={m.id}>{m.name}</option>
|
|
|
))}
|
|
))}
|