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
|
||||
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
|
||||
export const FUNCTION_CALLING_MODELS = [
|
||||
|
||||
@ -139,11 +139,11 @@ const PopupContainer: React.FC<Props> = ({ base: _base, resolve }) => {
|
||||
<Form.Item
|
||||
name="rerankModel"
|
||||
label={t('models.rerank_model')}
|
||||
initialValue={getModelUniqId(base.rerankModel)}
|
||||
tooltip={{ title: t('models.rerank_model_tooltip'), placement: 'right' }}
|
||||
rules={[{ required: false, message: t('message.error.enter.model') }]}>
|
||||
<Select
|
||||
style={{ width: '100%' }}
|
||||
defaultValue={getModelUniqId(base.rerankModel) || undefined}
|
||||
options={rerankSelectOptions}
|
||||
placeholder={t('settings.models.empty')}
|
||||
allowClear
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user