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

Function codexModelsURL

cmd/fetch_codex_models/main.go:284–295  ·  view source on GitHub ↗
(clientVersion string)

Source from the content-addressed store, hash-verified

282}
283
284func codexModelsURL(clientVersion string) (string, error) {
285 u, err := url.Parse(codexModelsBaseURL + codexModelsPath)
286 if err != nil {
287 return "", err
288 }
289 if strings.TrimSpace(clientVersion) != "" {
290 q := u.Query()
291 q.Set("client_version", strings.TrimSpace(clientVersion))
292 u.RawQuery = q.Encode()
293 }
294 return u.String(), nil
295}
296
297func countModels(raw []byte) (int, error) {
298 var payload struct {

Callers 1

fetchModelsFunction · 0.85

Calls 3

QueryMethod · 0.80
SetMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected