MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / newModelCooldownError

Function newModelCooldownError

sdk/cliproxy/auth/selector.go:52–61  ·  view source on GitHub ↗
(model, provider string, resetIn time.Duration)

Source from the content-addressed store, hash-verified

50}
51
52func newModelCooldownError(model, provider string, resetIn time.Duration) *modelCooldownError {
53 if resetIn < 0 {
54 resetIn = 0
55 }
56 return &modelCooldownError{
57 model: model,
58 provider: provider,
59 resetIn: resetIn,
60 }
61}
62
63func (e *modelCooldownError) Error() string {
64 modelName := e.model

Callers 4

getAvailableAuthsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected