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

Function SummarizeClaudeModels

internal/watcher/diff/models_summary.go:54–72  ·  view source on GitHub ↗

SummarizeClaudeModels hashes Claude model aliases for change detection.

(models []config.ClaudeModel)

Source from the content-addressed store, hash-verified

52
53// SummarizeClaudeModels hashes Claude model aliases for change detection.
54func SummarizeClaudeModels(models []config.ClaudeModel) ClaudeModelsSummary {
55 if len(models) == 0 {
56 return ClaudeModelsSummary{}
57 }
58 keys := normalizeModelPairs(func(out func(key string)) {
59 for _, model := range models {
60 name := strings.TrimSpace(model.Name)
61 alias := strings.TrimSpace(model.Alias)
62 if name == "" && alias == "" {
63 continue
64 }
65 out(strings.ToLower(name) + "|" + strings.ToLower(alias))
66 }
67 })
68 return ClaudeModelsSummary{
69 hash: hashJoined(keys),
70 count: len(keys),
71 }
72}
73
74// SummarizeCodexModels hashes Codex model aliases for change detection.
75func SummarizeCodexModels(models []config.CodexModel) CodexModelsSummary {

Callers 1

BuildConfigChangeDetailsFunction · 0.85

Calls 2

normalizeModelPairsFunction · 0.85
hashJoinedFunction · 0.85

Tested by

no test coverage detected