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

Method selectionModelForAuth

sdk/cliproxy/auth/conductor.go:1137–1147  ·  view source on GitHub ↗
(auth *Auth, routeModel string)

Source from the content-addressed store, hash-verified

1135}
1136
1137func (m *Manager) selectionModelForAuth(auth *Auth, routeModel string) string {
1138 requestedModel := rewriteModelForAuth(routeModel, auth)
1139 if strings.TrimSpace(requestedModel) == "" {
1140 requestedModel = strings.TrimSpace(routeModel)
1141 }
1142 resolvedModel := m.applyOAuthModelAlias(auth, requestedModel)
1143 if strings.TrimSpace(resolvedModel) == "" {
1144 resolvedModel = requestedModel
1145 }
1146 return resolvedModel
1147}
1148
1149func (m *Manager) selectionModelKeyForAuth(auth *Auth, routeModel string) string {
1150 return canonicalModelKey(m.selectionModelForAuth(auth, routeModel))

Callers 4

closestCooldownWaitMethod · 0.95

Calls 2

applyOAuthModelAliasMethod · 0.95
rewriteModelForAuthFunction · 0.85

Tested by

no test coverage detected