()
| 47 | const isEdit = props.editingToken.id !== undefined; |
| 48 | |
| 49 | const getInitValues = () => ({ |
| 50 | name: '', |
| 51 | remain_quota: 500000, |
| 52 | expired_time: -1, |
| 53 | unlimited_quota: false, |
| 54 | model_limits_enabled: false, |
| 55 | model_limits: [], |
| 56 | allow_ips: '', |
| 57 | group: '', |
| 58 | tokenCount: 1, |
| 59 | rate_limit_per_minute: 0, |
| 60 | rate_limit_per_day: 0, |
| 61 | channel_tag: null, |
| 62 | total_usage_limit: null, // 添加总使用次数限制初始值 |
| 63 | }); |
| 64 | |
| 65 | const handleCancel = () => { |
| 66 | props.handleClose(); |
no outgoing calls
no test coverage detected