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

Function normalizeModelPairs

internal/watcher/diff/model_hash.go:110–125  ·  view source on GitHub ↗
(collect func(out func(key string)))

Source from the content-addressed store, hash-verified

108}
109
110func normalizeModelPairs(collect func(out func(key string))) []string {
111 seen := make(map[string]struct{})
112 keys := make([]string, 0)
113 collect(func(key string) {
114 if _, exists := seen[key]; exists {
115 return
116 }
117 seen[key] = struct{}{}
118 keys = append(keys, key)
119 })
120 if len(keys) == 0 {
121 return nil
122 }
123 sort.Strings(keys)
124 return keys
125}
126
127func hashJoined(keys []string) string {
128 if len(keys) == 0 {

Callers 8

SummarizeGeminiModelsFunction · 0.85
SummarizeClaudeModelsFunction · 0.85
SummarizeCodexModelsFunction · 0.85
ComputeClaudeModelsHashFunction · 0.85
ComputeCodexModelsHashFunction · 0.85
ComputeGeminiModelsHashFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected