MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / modelDiscoveryURLs

Function modelDiscoveryURLs

internal/providers/models.go:176–183  ·  view source on GitHub ↗
(endpoint string)

Source from the content-addressed store, hash-verified

174}
175
176func modelDiscoveryURLs(endpoint string) []string {
177 primary := modelsURL(endpoint)
178 root := rootModelsURL(endpoint)
179 if root == primary {
180 return []string{primary}
181 }
182 return []string{primary, root}
183}
184
185func modelsURL(endpoint string) string {
186 trimmed := strings.TrimRight(endpoint, "/")

Callers 1

fetchAPIModelsFunction · 0.85

Calls 2

modelsURLFunction · 0.85
rootModelsURLFunction · 0.85

Tested by

no test coverage detected