MCPcopy
hub / github.com/QuantumNous/new-api / ResetCodexChannelUsage

Function ResetCodexChannelUsage

controller/codex_usage.go:38–45  ·  view source on GitHub ↗
(c *gin.Context)

Source from the content-addressed store, hash-verified

36}
37
38func ResetCodexChannelUsage(c *gin.Context) {
39 fetchCodexChannelWhamData(
40 c,
41 service.ConsumeCodexWhamRateLimitResetCredit,
42 "failed to reset codex usage",
43 "重置用量失败,请稍后重试",
44 )
45}
46
47type codexWhamFetchFunc func(
48 ctx context.Context,

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected