mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? Feat: Allows users to search for models in the model selection drop-down box #3221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -64,6 +64,7 @@ const SystemModelSettingModal = ({
|
||||
...allOptions[LlmModelType.Image2text],
|
||||
]}
|
||||
allowClear
|
||||
showSearch
|
||||
/>
|
||||
</Form.Item>
|
||||
<Form.Item
|
||||
@ -71,14 +72,22 @@ const SystemModelSettingModal = ({
|
||||
name="embd_id"
|
||||
tooltip={t('embeddingModelTip')}
|
||||
>
|
||||
<Select options={allOptions[LlmModelType.Embedding]} allowClear />
|
||||
<Select
|
||||
options={allOptions[LlmModelType.Embedding]}
|
||||
allowClear
|
||||
showSearch
|
||||
/>
|
||||
</Form.Item>
|
||||
<Form.Item
|
||||
label={t('img2txtModel')}
|
||||
name="img2txt_id"
|
||||
tooltip={t('img2txtModelTip')}
|
||||
>
|
||||
<Select options={allOptions[LlmModelType.Image2text]} allowClear />
|
||||
<Select
|
||||
options={allOptions[LlmModelType.Image2text]}
|
||||
allowClear
|
||||
showSearch
|
||||
/>
|
||||
</Form.Item>
|
||||
|
||||
<Form.Item
|
||||
@ -86,21 +95,33 @@ const SystemModelSettingModal = ({
|
||||
name="asr_id"
|
||||
tooltip={t('sequence2txtModelTip')}
|
||||
>
|
||||
<Select options={allOptions[LlmModelType.Speech2text]} allowClear />
|
||||
<Select
|
||||
options={allOptions[LlmModelType.Speech2text]}
|
||||
allowClear
|
||||
showSearch
|
||||
/>
|
||||
</Form.Item>
|
||||
<Form.Item
|
||||
label={t('rerankModel')}
|
||||
name="rerank_id"
|
||||
tooltip={t('rerankModelTip')}
|
||||
>
|
||||
<Select options={allOptions[LlmModelType.Rerank]} allowClear />
|
||||
<Select
|
||||
options={allOptions[LlmModelType.Rerank]}
|
||||
allowClear
|
||||
showSearch
|
||||
/>
|
||||
</Form.Item>
|
||||
<Form.Item
|
||||
label={t('ttsModel')}
|
||||
name="tts_id"
|
||||
tooltip={t('ttsModelTip')}
|
||||
>
|
||||
<Select options={allOptions[LlmModelType.TTS]} allowClear />
|
||||
<Select
|
||||
options={allOptions[LlmModelType.TTS]}
|
||||
allowClear
|
||||
showSearch
|
||||
/>
|
||||
</Form.Item>
|
||||
</Form>
|
||||
</Modal>
|
||||
|
||||
Reference in New Issue
Block a user