Skip to content

Commit 71b00e1

Browse files
Wing900claude
andcommitted
fix: 添加自定义模型到搜索索引
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent bd86ff6 commit 71b00e1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hooks/useSettingsSearch.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const useSettingsSearch = (searchQuery: string) => {
1717
const allVisible = new Set([
1818
'language', 'theme', 'defaultPersona', 'fontFamily', 'colorPalette', 'fontSize', 'password',
1919
'autoTitleGeneration', 'titleGenModel',
20-
'showThoughts', 'llmProvider', 'apiKey', 'apiBaseUrl', 'temperature',
20+
'showThoughts', 'llmProvider', 'apiKey', 'apiBaseUrl', 'customModels', 'temperature',
2121
'contextLength', 'maxOutputTokens', 'enableSearch',
2222
'streamInactivityTimeout', 'data', 'pdf-management'
2323
]);
@@ -45,6 +45,7 @@ export const useSettingsSearch = (searchQuery: string) => {
4545
{ id: 'llmProvider', section: 'advanced', texts: [t('llmProvider'), t('llmProviderDesc'), translations.zh.llmProvider, translations.zh.llmProviderDesc] },
4646
{ id: 'apiKey', section: 'advanced', texts: [t('apiKey'), t('apiKeyDesc'), translations.zh.apiKey, translations.zh.apiKeyDesc] },
4747
{ id: 'apiBaseUrl', section: 'advanced', texts: [t('apiBaseUrl'), t('apiBaseUrlDesc'), translations.zh.apiBaseUrl, translations.zh.apiBaseUrlDesc] },
48+
{ id: 'customModels', section: 'advanced', texts: [t('customModels'), t('customModelsDesc'), translations.zh.customModels, translations.zh.customModelsDesc, '自定义模型', 'custom models', 'model list'] },
4849
{ id: 'temperature', section: 'advanced', texts: [t('temperature'), t('temperatureDesc'), translations.zh.temperature, translations.zh.temperatureDesc] },
4950
{ id: 'contextLength', section: 'advanced', texts: [t('contextLength'), t('contextLengthDesc'), translations.zh.contextLength, translations.zh.contextLengthDesc] },
5051
{ id: 'enableSearch', section: 'advanced', texts: [t('enableSearch'), t('enableSearchDesc'), translations.zh.enableSearch, translations.zh.enableSearchDesc] },

0 commit comments

Comments
 (0)