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

Function withModelQuery

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

Source from the content-addressed store, hash-verified

202}
203
204func withModelQuery(endpoint string) string {
205 parsed, err := url.Parse(endpoint)
206 if err != nil {
207 return endpoint
208 }
209 query := parsed.Query()
210 query.Set("return_wildcard_routes", "false")
211 query.Set("include_model_access_groups", "false")
212 query.Set("only_model_access_groups", "false")
213 query.Set("include_metadata", "false")
214 parsed.RawQuery = query.Encode()
215 return parsed.String()
216}
217
218func discoveryTransport(ep Endpoint) http.RoundTripper {
219 transport := http.DefaultTransport.(*http.Transport).Clone()

Callers 2

modelsURLFunction · 0.85
rootModelsURLFunction · 0.85

Calls 1

SetMethod · 0.65

Tested by

no test coverage detected