|
@@ -469,18 +469,6 @@ const EditToken = (props) => {
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<Row gutter={12}>
|
|
<Row gutter={12}>
|
|
|
- <Col span={24}>
|
|
|
|
|
- <Form.TextArea
|
|
|
|
|
- field='allow_ips'
|
|
|
|
|
- label={t('IP白名单')}
|
|
|
|
|
- placeholder={t('允许的IP,一行一个,不填写则不限制')}
|
|
|
|
|
- autosize
|
|
|
|
|
- rows={1}
|
|
|
|
|
- extraText={t('请勿过度信任此功能,IP可能被伪造')}
|
|
|
|
|
- showClear
|
|
|
|
|
- style={{ width: '100%' }}
|
|
|
|
|
- />
|
|
|
|
|
- </Col>
|
|
|
|
|
<Col span={24}>
|
|
<Col span={24}>
|
|
|
<Form.Select
|
|
<Form.Select
|
|
|
field='model_limits'
|
|
field='model_limits'
|
|
@@ -488,8 +476,21 @@ const EditToken = (props) => {
|
|
|
placeholder={t('请选择该令牌支持的模型,留空支持所有模型')}
|
|
placeholder={t('请选择该令牌支持的模型,留空支持所有模型')}
|
|
|
multiple
|
|
multiple
|
|
|
optionList={models}
|
|
optionList={models}
|
|
|
- maxTagCount={3}
|
|
|
|
|
extraText={t('非必要,不建议启用模型限制')}
|
|
extraText={t('非必要,不建议启用模型限制')}
|
|
|
|
|
+ filter
|
|
|
|
|
+ searchPosition='dropdown'
|
|
|
|
|
+ showClear
|
|
|
|
|
+ style={{ width: '100%' }}
|
|
|
|
|
+ />
|
|
|
|
|
+ </Col>
|
|
|
|
|
+ <Col span={24}>
|
|
|
|
|
+ <Form.TextArea
|
|
|
|
|
+ field='allow_ips'
|
|
|
|
|
+ label={t('IP白名单')}
|
|
|
|
|
+ placeholder={t('允许的IP,一行一个,不填写则不限制')}
|
|
|
|
|
+ autosize
|
|
|
|
|
+ rows={1}
|
|
|
|
|
+ extraText={t('请勿过度信任此功能,IP可能被伪造')}
|
|
|
showClear
|
|
showClear
|
|
|
style={{ width: '100%' }}
|
|
style={{ width: '100%' }}
|
|
|
/>
|
|
/>
|