diff --git a/web/app/components/app/chat/more-info/index.tsx b/web/app/components/app/chat/more-info/index.tsx index 83cc5be7c8..ff4f99e517 100644 --- a/web/app/components/app/chat/more-info/index.tsx +++ b/web/app/components/app/chat/more-info/index.tsx @@ -14,10 +14,10 @@ export type IMoreInfoProps = { const MoreInfo: FC = ({ more, isQuestion, className }) => { const { t } = useTranslation() return (
- {`${t('appLog.detail.timeConsuming')} ${more.latency}${t('appLog.detail.second')}`} - {`${t('appLog.detail.tokenCost')} ${formatNumber(more.tokens)}`} - · - {more.time} + {`${t('appLog.detail.timeConsuming')} ${more.latency}${t('appLog.detail.second')}`} + {`${t('appLog.detail.tokenCost')} ${formatNumber(more.tokens)}`} + · + {more.time}
) } export default React.memo(MoreInfo) diff --git a/web/app/components/header/account-setting/model-page/configs/xinference.tsx b/web/app/components/header/account-setting/model-page/configs/xinference.tsx index e093e76068..d4eecf6bdf 100644 --- a/web/app/components/header/account-setting/model-page/configs/xinference.tsx +++ b/web/app/components/header/account-setting/model-page/configs/xinference.tsx @@ -80,6 +80,13 @@ const config: ProviderConfig = { 'zh-Hans': 'Embeddings', }, }, + { + key: 'reranking', + label: { + 'en': 'Rerank', + 'zh-Hans': 'Rerank', + }, + }, ], }, { diff --git a/web/app/components/header/account-setting/model-page/model-modal/Form.tsx b/web/app/components/header/account-setting/model-page/model-modal/Form.tsx index af6110b329..c1bcb6286c 100644 --- a/web/app/components/header/account-setting/model-page/model-modal/Form.tsx +++ b/web/app/components/header/account-setting/model-page/model-modal/Form.tsx @@ -150,10 +150,11 @@ const Form: FC = ({ if (field.type === 'radio') { const options = typeof field.options === 'function' ? field.options(value) : field.options + return (
{field.label[locale]}
-
+
{ options?.map(option => (