Sfoglia il codice sorgente

Feat: Add rerank option to huggingface's model type drop-down box. #5658 (#5689)

### What problem does this PR solve?

Feat: Add rerank option to huggingface's model type drop-down box. #5658

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
tags/v0.17.1
balibabu 8 mesi fa
parent
commit
1b2fc3cc9a
Nessun account collegato all'indirizzo email del committer

+ 2
- 1
web/src/pages/user-setting/setting-model/ollama-modal/index.tsx Vedi File

[LLMFactory.HuggingFace]: [ [LLMFactory.HuggingFace]: [
{ value: 'embedding', label: 'embedding' }, { value: 'embedding', label: 'embedding' },
{ value: 'chat', label: 'chat' }, { value: 'chat', label: 'chat' },
{ value: 'rerank', label: 'rerank' },
], ],
[LLMFactory.Xinference]: [ [LLMFactory.Xinference]: [
{ value: 'chat', label: 'chat' }, { value: 'chat', label: 'chat' },
type: 'number', type: 'number',
message: t('maxTokensInvalidMessage'), message: t('maxTokensInvalidMessage'),
}, },
({ getFieldValue }) => ({
({}) => ({
validator(_, value) { validator(_, value) {
if (value < 0) { if (value < 0) {
return Promise.reject(new Error(t('maxTokensMinMessage'))); return Promise.reject(new Error(t('maxTokensMinMessage')));

Loading…
Annulla
Salva