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

Function isSameProviderFamily

internal/thinking/validate.go:367–373  ·  view source on GitHub ↗
(from, to string)

Source from the content-addressed store, hash-verified

365}
366
367func isSameProviderFamily(from, to string) bool {
368 if from == to {
369 return true
370 }
371 return (isGeminiFamily(from) && isGeminiFamily(to)) ||
372 (isOpenAIFamily(from) && isOpenAIFamily(to))
373}
374
375func abs(x int) int {
376 if x < 0 {

Callers 1

ValidateConfigFunction · 0.85

Calls 2

isGeminiFamilyFunction · 0.85
isOpenAIFamilyFunction · 0.85

Tested by

no test coverage detected