chore: fetch rerank model and fix placeholder
This commit is contained in:
parent
b50f8a4c11
commit
15ab8407e4
@ -180,7 +180,7 @@ export const EMBEDDING_REGEX = /(?:^text-|embed|bge-|e5-|LLM2Vec|retrieval|uae-|
|
|||||||
// Rerank models
|
// Rerank models
|
||||||
export const RERANKING_REGEX = /(?:rerank|re-rank|re-ranker|re-ranking|retrieval|retriever)/i
|
export const RERANKING_REGEX = /(?:rerank|re-rank|re-ranker|re-ranking|retrieval|retriever)/i
|
||||||
|
|
||||||
export const NOT_SUPPORTED_REGEX = /(?:^tts|rerank|whisper|speech)/i
|
export const NOT_SUPPORTED_REGEX = /(?:^tts|whisper|speech)/i
|
||||||
|
|
||||||
// Tool calling models
|
// Tool calling models
|
||||||
export const FUNCTION_CALLING_MODELS = [
|
export const FUNCTION_CALLING_MODELS = [
|
||||||
|
|||||||
@ -139,11 +139,11 @@ const PopupContainer: React.FC<Props> = ({ base: _base, resolve }) => {
|
|||||||
<Form.Item
|
<Form.Item
|
||||||
name="rerankModel"
|
name="rerankModel"
|
||||||
label={t('models.rerank_model')}
|
label={t('models.rerank_model')}
|
||||||
initialValue={getModelUniqId(base.rerankModel)}
|
|
||||||
tooltip={{ title: t('models.rerank_model_tooltip'), placement: 'right' }}
|
tooltip={{ title: t('models.rerank_model_tooltip'), placement: 'right' }}
|
||||||
rules={[{ required: false, message: t('message.error.enter.model') }]}>
|
rules={[{ required: false, message: t('message.error.enter.model') }]}>
|
||||||
<Select
|
<Select
|
||||||
style={{ width: '100%' }}
|
style={{ width: '100%' }}
|
||||||
|
defaultValue={getModelUniqId(base.rerankModel) || undefined}
|
||||||
options={rerankSelectOptions}
|
options={rerankSelectOptions}
|
||||||
placeholder={t('settings.models.empty')}
|
placeholder={t('settings.models.empty')}
|
||||||
allowClear
|
allowClear
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user