|
@@ -731,14 +731,15 @@ const QuestionAnswerInfo: React.FC = () => {
|
|
|
name='name'
|
|
name='name'
|
|
|
rules={[{ required: true, message: '问答应用名称不能为空' }]}
|
|
rules={[{ required: true, message: '问答应用名称不能为空' }]}
|
|
|
>
|
|
>
|
|
|
- <Input placeholder="请输入问答应用名称" className='form-input-large' />
|
|
|
|
|
|
|
+ <Input placeholder="请输入问答应用名称" className='form-element-standard' style={{ height: '48px'}}/>
|
|
|
</FormItem>
|
|
</FormItem>
|
|
|
<FormItem
|
|
<FormItem
|
|
|
label='应用类型'
|
|
label='应用类型'
|
|
|
name='typeId'
|
|
name='typeId'
|
|
|
>
|
|
>
|
|
|
<Select
|
|
<Select
|
|
|
- className='questionAnswerInfo-content-title'
|
|
|
|
|
|
|
+ className='form-element-select'
|
|
|
|
|
+ style={{ height: '48px'}}
|
|
|
placeholder='请选择问答应用类型'
|
|
placeholder='请选择问答应用类型'
|
|
|
onChange={handleAppChange}
|
|
onChange={handleAppChange}
|
|
|
allowClear={true}
|
|
allowClear={true}
|
|
@@ -764,7 +765,8 @@ const QuestionAnswerInfo: React.FC = () => {
|
|
|
options={appProjectList}
|
|
options={appProjectList}
|
|
|
placeholder="请选择项目"
|
|
placeholder="请选择项目"
|
|
|
showSearch
|
|
showSearch
|
|
|
- className="questionAnswerInfo-content-title"
|
|
|
|
|
|
|
+ className="form-element-select"
|
|
|
|
|
+ style={{ height: '48px'}}
|
|
|
/>
|
|
/>
|
|
|
</FormItem>
|
|
</FormItem>
|
|
|
</>
|
|
</>
|
|
@@ -774,7 +776,8 @@ const QuestionAnswerInfo: React.FC = () => {
|
|
|
name='visible'
|
|
name='visible'
|
|
|
>
|
|
>
|
|
|
<Select
|
|
<Select
|
|
|
- className='questionAnswerInfo-content-title'
|
|
|
|
|
|
|
+ className='form-element-select'
|
|
|
|
|
+ style={{ height: '48px'}}
|
|
|
placeholder='请选择是否公开'
|
|
placeholder='请选择是否公开'
|
|
|
allowClear={true}
|
|
allowClear={true}
|
|
|
onChange={(e) => {
|
|
onChange={(e) => {
|
|
@@ -832,12 +835,12 @@ const QuestionAnswerInfo: React.FC = () => {
|
|
|
</FormItem>
|
|
</FormItem>
|
|
|
|
|
|
|
|
<div className='preset-questions'>
|
|
<div className='preset-questions'>
|
|
|
- <h4>添加预设问题</h4>
|
|
|
|
|
|
|
+ <h4>添加引导问题</h4>
|
|
|
<div>
|
|
<div>
|
|
|
{
|
|
{
|
|
|
inputs.map(input => (
|
|
inputs.map(input => (
|
|
|
<div key={input.id} className='question-item'>
|
|
<div key={input.id} className='question-item'>
|
|
|
- <label>问题 {input.id}</label>
|
|
|
|
|
|
|
+ <label>引导问题 {input.id}</label>
|
|
|
<Input
|
|
<Input
|
|
|
className='question-input'
|
|
className='question-input'
|
|
|
type="text"
|
|
type="text"
|
|
@@ -1001,8 +1004,7 @@ const QuestionAnswerInfo: React.FC = () => {
|
|
|
mode='multiple'
|
|
mode='multiple'
|
|
|
maxCount={MAX_COUNT}
|
|
maxCount={MAX_COUNT}
|
|
|
showSearch={true}
|
|
showSearch={true}
|
|
|
- // suffixIcon={suffix}
|
|
|
|
|
- // className='questionAnswerInfo-content-title'
|
|
|
|
|
|
|
+ className='form-element-select'
|
|
|
placeholder='请选择知识库'
|
|
placeholder='请选择知识库'
|
|
|
>
|
|
>
|
|
|
{
|
|
{
|
|
@@ -1023,7 +1025,7 @@ const QuestionAnswerInfo: React.FC = () => {
|
|
|
<Select
|
|
<Select
|
|
|
placeholder='请选择模型'
|
|
placeholder='请选择模型'
|
|
|
allowClear={true}
|
|
allowClear={true}
|
|
|
- className='questionAnswerInfo-content-title'
|
|
|
|
|
|
|
+ className='form-element-select'
|
|
|
onChange={(value) => {
|
|
onChange={(value) => {
|
|
|
if (value === 'Qwen3-30B') {
|
|
if (value === 'Qwen3-30B') {
|
|
|
setIsDeepThinkVisible(true);
|
|
setIsDeepThinkVisible(true);
|
|
@@ -1045,7 +1047,7 @@ const QuestionAnswerInfo: React.FC = () => {
|
|
|
label='深度思考'
|
|
label='深度思考'
|
|
|
name='isDeepThink'
|
|
name='isDeepThink'
|
|
|
rules={[{ required: true, message: '请选择是否深度思考' }]}>
|
|
rules={[{ required: true, message: '请选择是否深度思考' }]}>
|
|
|
- <Radio.Group buttonStyle="solid" className='form-control-width'>
|
|
|
|
|
|
|
+ <Radio.Group buttonStyle="solid" className='form-element-button-group'>
|
|
|
<Radio.Button value='Y'>是</Radio.Button>
|
|
<Radio.Button value='Y'>是</Radio.Button>
|
|
|
<Radio.Button value='N'>否</Radio.Button>
|
|
<Radio.Button value='N'>否</Radio.Button>
|
|
|
</Radio.Group>
|
|
</Radio.Group>
|
|
@@ -1057,7 +1059,7 @@ const QuestionAnswerInfo: React.FC = () => {
|
|
|
name='max_token'
|
|
name='max_token'
|
|
|
rules={[{ required: true, message: 'max token不能为空' }]}>
|
|
rules={[{ required: true, message: 'max token不能为空' }]}>
|
|
|
<InputNumber
|
|
<InputNumber
|
|
|
- className='questionAnswerInfo-content-title'
|
|
|
|
|
|
|
+ className='form-element-input-number'
|
|
|
/>
|
|
/>
|
|
|
</FormItem>
|
|
</FormItem>
|
|
|
</div>
|
|
</div>
|
|
@@ -1082,7 +1084,7 @@ const QuestionAnswerInfo: React.FC = () => {
|
|
|
<FormItem
|
|
<FormItem
|
|
|
label='Top-p'
|
|
label='Top-p'
|
|
|
name='topP'
|
|
name='topP'
|
|
|
- className='form-control-width'
|
|
|
|
|
|
|
+ className='form-element-standard'
|
|
|
>
|
|
>
|
|
|
<TopPDecimalStep />
|
|
<TopPDecimalStep />
|
|
|
</FormItem>
|
|
</FormItem>
|
|
@@ -1091,7 +1093,7 @@ const QuestionAnswerInfo: React.FC = () => {
|
|
|
<FormItem
|
|
<FormItem
|
|
|
label='Temperature'
|
|
label='Temperature'
|
|
|
name='temperature'
|
|
name='temperature'
|
|
|
- className='form-control-width'
|
|
|
|
|
|
|
+ className='form-element-standard'
|
|
|
>
|
|
>
|
|
|
<TempDecimalStep />
|
|
<TempDecimalStep />
|
|
|
</FormItem>
|
|
</FormItem>
|
|
@@ -1109,7 +1111,7 @@ const QuestionAnswerInfo: React.FC = () => {
|
|
|
name='param_desc'
|
|
name='param_desc'
|
|
|
rules={[{ required: true, message: '回答风格不能为空' }]}>
|
|
rules={[{ required: true, message: '回答风格不能为空' }]}>
|
|
|
<Radio.Group buttonStyle="solid"
|
|
<Radio.Group buttonStyle="solid"
|
|
|
- className='form-control-width'>
|
|
|
|
|
|
|
+ className='form-element-button-group'>
|
|
|
<Radio.Button onClick={() => {
|
|
<Radio.Button onClick={() => {
|
|
|
handleRedioClick('strict')
|
|
handleRedioClick('strict')
|
|
|
}} value='strict'>严谨</Radio.Button>
|
|
}} value='strict'>严谨</Radio.Button>
|
|
@@ -1138,7 +1140,7 @@ const QuestionAnswerInfo: React.FC = () => {
|
|
|
<FormItem
|
|
<FormItem
|
|
|
label='展示引用知识'
|
|
label='展示引用知识'
|
|
|
name='show_recall_result'
|
|
name='show_recall_result'
|
|
|
- className='form-control-width'>
|
|
|
|
|
|
|
+ className='form-element-standard'>
|
|
|
<Switch onChange={onChangeShow} />
|
|
<Switch onChange={onChangeShow} />
|
|
|
</FormItem>
|
|
</FormItem>
|
|
|
</div>
|
|
</div>
|