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

Function canonicalModelKey

sdk/cliproxy/auth/selector.go:130–141  ·  view source on GitHub ↗
(model string)

Source from the content-addressed store, hash-verified

128}
129
130func canonicalModelKey(model string) string {
131 model = strings.TrimSpace(model)
132 if model == "" {
133 return ""
134 }
135 parsed := thinking.ParseSuffix(model)
136 modelName := strings.TrimSpace(parsed.ModelName)
137 if modelName == "" {
138 return model
139 }
140 return modelName
141}
142
143func authWebsocketsEnabled(auth *Auth) bool {
144 if auth == nil {

Callers 13

PickMethod · 0.85
isAuthBlockedForModelFunction · 0.85
pickMixedWithStrategyMethod · 0.85
supportedModelSetForAuthFunction · 0.85
ensureModelLockedMethod · 0.85
supportsModelMethod · 0.85

Calls 1

ParseSuffixFunction · 0.92

Tested by

no test coverage detected