MCPcopy Create free account
hub / github.com/bricks-cloud/BricksLLM / checkModelValidity

Function checkModelValidity

internal/manager/route.go:90–100  ·  view source on GitHub ↗
(provider, model string)

Source from the content-addressed store, hash-verified

88}
89
90func checkModelValidity(provider, model string) bool {
91 if provider == "azure" {
92 return contains(model, azureSupportedModels)
93 }
94
95 if provider == "openai" {
96 return contains(model, openaiSupportedModels)
97 }
98
99 return false
100}
101
102var (
103 azureSupportedModels = []string{

Callers 1

validateRouteMethod · 0.85

Calls 1

containsFunction · 0.70

Tested by

no test coverage detected