改变端点映射文案
This commit is contained in:
@@ -20,6 +20,7 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
import React, { useState, useEffect, useRef, useMemo } from 'react';
|
||||
import JSONEditor from '../../../common/ui/JSONEditor';
|
||||
import {
|
||||
Banner,
|
||||
SideSheet,
|
||||
Form,
|
||||
Button,
|
||||
@@ -31,10 +32,9 @@ import {
|
||||
Avatar,
|
||||
Col,
|
||||
Row,
|
||||
Tooltip,
|
||||
} from '@douyinfe/semi-ui';
|
||||
import { Save, X, FileText } from 'lucide-react';
|
||||
import { IconInfoCircle, IconLink } from '@douyinfe/semi-icons';
|
||||
import { IconAlertTriangle, IconLink } from '@douyinfe/semi-icons';
|
||||
import { API, showError, showSuccess } from '../../../../helpers';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { useIsMobile } from '../../../../hooks/common/useIsMobile';
|
||||
@@ -447,24 +447,23 @@ const EditModelModal = (props) => {
|
||||
/>
|
||||
</Col>
|
||||
<Col span={24}>
|
||||
<Banner
|
||||
type='warning'
|
||||
closeIcon={null}
|
||||
icon={
|
||||
<IconAlertTriangle
|
||||
size='large'
|
||||
style={{ color: 'var(--semi-color-warning)' }}
|
||||
/>
|
||||
}
|
||||
description={t(
|
||||
'提示:此处配置仅用于控制「模型广场」对用户的展示效果,不会影响模型的实际调用与路由。若需配置真实调用行为,请前往「渠道管理」进行设置。',
|
||||
)}
|
||||
style={{ marginBottom: 12 }}
|
||||
/>
|
||||
<JSONEditor
|
||||
field='endpoints'
|
||||
label={
|
||||
<span className='inline-flex items-center gap-2'>
|
||||
<span>{t('端点映射')}</span>
|
||||
<Tooltip
|
||||
position='top'
|
||||
content={t(
|
||||
'提示:端点映射仅用于模型广场展示,不会影响模型真实调用。如需配置真实调用,请前往「渠道管理」。',
|
||||
)}
|
||||
>
|
||||
<IconInfoCircle
|
||||
size='small'
|
||||
className='text-gray-400 cursor-help'
|
||||
/>
|
||||
</Tooltip>
|
||||
</span>
|
||||
}
|
||||
label={t('在模型广场向用户展示的端点')}
|
||||
placeholder={
|
||||
'{\n "openai": {"path": "/v1/chat/completions", "method": "POST"}\n}'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user