MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / getInitValues

Function getInitValues

web/src/pages/Token/EditToken.js:49–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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();

Callers 3

loadTokenFunction · 0.70
EditToken.jsFile · 0.70
submitFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected