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

Function countAPIKeys

internal/watcher/diff/openai_compat.go:87–95  ·  view source on GitHub ↗
(entry config.OpenAICompatibility)

Source from the content-addressed store, hash-verified

85}
86
87func countAPIKeys(entry config.OpenAICompatibility) int {
88 count := 0
89 for _, keyEntry := range entry.APIKeyEntries {
90 if strings.TrimSpace(keyEntry.APIKey) != "" {
91 count++
92 }
93 }
94 return count
95}
96
97func countOpenAIModels(models []config.OpenAICompatibilityModel) int {
98 count := 0

Callers 3

DiffOpenAICompatibilityFunction · 0.85
openAICompatSignatureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected