feat: add xinference rerank model (#1619)
This commit is contained in:
parent
e1d2203371
commit
bb98f5756a
3 changed files with 13 additions and 5 deletions
|
|
@ -80,6 +80,13 @@ const config: ProviderConfig = {
|
|||
'zh-Hans': 'Embeddings',
|
||||
},
|
||||
},
|
||||
{
|
||||
key: 'reranking',
|
||||
label: {
|
||||
'en': 'Rerank',
|
||||
'zh-Hans': 'Rerank',
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -150,10 +150,11 @@ const Form: FC<FormProps> = ({
|
|||
|
||||
if (field.type === 'radio') {
|
||||
const options = typeof field.options === 'function' ? field.options(value) : field.options
|
||||
|
||||
return (
|
||||
<div key={field.key} className='py-3'>
|
||||
<div className={nameClassName}>{field.label[locale]}</div>
|
||||
<div className='grid grid-cols-2 gap-3'>
|
||||
<div className={`grid grid-cols-${options?.length} gap-3`}>
|
||||
{
|
||||
options?.map(option => (
|
||||
<div
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue