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

Function authPriority

sdk/cliproxy/auth/selector.go:115–128  ·  view source on GitHub ↗
(auth *Auth)

Source from the content-addressed store, hash-verified

113}
114
115func authPriority(auth *Auth) int {
116 if auth == nil || auth.Attributes == nil {
117 return 0
118 }
119 raw := strings.TrimSpace(auth.Attributes["priority"])
120 if raw == "" {
121 return 0
122 }
123 parsed, err := strconv.Atoi(raw)
124 if err != nil {
125 return 0
126 }
127 return parsed
128}
129
130func canonicalModelKey(model string) string {
131 model = strings.TrimSpace(model)

Callers 4

buildScheduledAuthMetaFunction · 0.85
schedulerAuthCandidatesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected