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

Function rootModelsURL

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

Source from the content-addressed store, hash-verified

194}
195
196func rootModelsURL(endpoint string) string {
197 trimmed := strings.TrimRight(endpoint, "/")
198 if strings.HasSuffix(trimmed, "/models") {
199 return withModelQuery(trimmed)
200 }
201 return withModelQuery(trimmed + "/models")
202}
203
204func withModelQuery(endpoint string) string {
205 parsed, err := url.Parse(endpoint)

Callers 1

modelDiscoveryURLsFunction · 0.85

Calls 1

withModelQueryFunction · 0.85

Tested by

no test coverage detected