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

Function isAPIKeyAuth

sdk/cliproxy/auth/conductor.go:1003–1008  ·  view source on GitHub ↗
(auth *Auth)

Source from the content-addressed store, hash-verified

1001}
1002
1003func isAPIKeyAuth(auth *Auth) bool {
1004 if auth == nil {
1005 return false
1006 }
1007 return auth.AuthKind() == AuthKindAPIKey
1008}
1009
1010func isOpenAICompatAPIKeyAuth(auth *Auth) bool {
1011 if !isAPIKeyAuth(auth) {

Callers 1

isOpenAICompatAPIKeyAuthFunction · 0.85

Calls 1

AuthKindMethod · 0.80

Tested by

no test coverage detected