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

Function executionResultModel

sdk/cliproxy/auth/conductor.go:1170–1180  ·  view source on GitHub ↗
(routeModel, upstreamModel string, pooled bool)

Source from the content-addressed store, hash-verified

1168}
1169
1170func executionResultModel(routeModel, upstreamModel string, pooled bool) string {
1171 if pooled {
1172 if resolved := strings.TrimSpace(upstreamModel); resolved != "" {
1173 return resolved
1174 }
1175 }
1176 if requested := strings.TrimSpace(routeModel); requested != "" {
1177 return requested
1178 }
1179 return strings.TrimSpace(upstreamModel)
1180}
1181
1182func (m *Manager) filterExecutionModels(auth *Auth, routeModel string, candidates []string, pooled bool) []string {
1183 if len(candidates) == 0 {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected