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

Function metaStringValue

cmd/fetch_codex_models/main.go:319–333  ·  view source on GitHub ↗
(m map[string]any, key string)

Source from the content-addressed store, hash-verified

317}
318
319func metaStringValue(m map[string]any, key string) string {
320 if m == nil {
321 return ""
322 }
323 v, ok := m[key]
324 if !ok {
325 return ""
326 }
327 switch val := v.(type) {
328 case string:
329 return strings.TrimSpace(val)
330 default:
331 return ""
332 }
333}

Callers 3

findCodexAuthFunction · 0.70
ensureAccessTokenFunction · 0.70
fetchModelsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected