Просмотр исходного кода

Merge remote-tracking branch 'origin/alpha' into alpha

t0ng7u 6 месяцев назад
Родитель
Сommit
29983e434f
2 измененных файлов с 3 добавлено и 2 удалено
  1. 1 0
      controller/model.go
  2. 2 2
      web/src/components/common/ui/JSONEditor.jsx

+ 1 - 0
controller/model.go

@@ -207,6 +207,7 @@ func ListModels(c *gin.Context, modelType int) {
 		c.JSON(200, gin.H{
 		c.JSON(200, gin.H{
 			"success": true,
 			"success": true,
 			"data":    userOpenAiModels,
 			"data":    userOpenAiModels,
+			"object":  "list",
 		})
 		})
 	}
 	}
 }
 }

+ 2 - 2
web/src/components/common/ui/JSONEditor.jsx

@@ -443,7 +443,7 @@ const JSONEditor = ({
 
 
           return (
           return (
             <Row key={pair.id} gutter={8} align='middle'>
             <Row key={pair.id} gutter={8} align='middle'>
-              <Col span={6}>
+              <Col span={10}>
                 <div className='relative'>
                 <div className='relative'>
                   <Input
                   <Input
                     placeholder={t('键名')}
                     placeholder={t('键名')}
@@ -470,7 +470,7 @@ const JSONEditor = ({
                   )}
                   )}
                 </div>
                 </div>
               </Col>
               </Col>
-              <Col span={16}>{renderValueInput(pair.id, pair.value)}</Col>
+              <Col span={12}>{renderValueInput(pair.id, pair.value)}</Col>
               <Col span={2}>
               <Col span={2}>
                 <Button
                 <Button
                   icon={<IconDelete />}
                   icon={<IconDelete />}