(clientVersion string)
| 282 | } |
| 283 | |
| 284 | func 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 | |
| 297 | func countModels(raw []byte) (int, error) { |
| 298 | var payload struct { |
no test coverage detected