Skip to content

fix(api): page and stream-complete GET /v1/models for large catalogs - #12882

Merged
diegosouzapw merged 4 commits into
diegosouzapw:release/v3.8.51from
RaviTharuma:cursor/models-catalog-pagination-6cae
Sep 10, 2026
Merged

diegosouzapw merged 4 commits into
diegosouzapw:release/v3.8.51from
RaviTharuma:cursor/models-catalog-pagination-6cae

Conversation

@RaviTharuma

Copy link
Copy Markdown
Contributor

Summary

Pages and stream-completes GET /v1/models for large catalogs, and encodes catalog page cache keys without extra pipes.

Fixes #12881

Test plan

  • Unit tests for catalog pagination
  • Unit tests for catalog cache key hashing

cursoragent and others added 2 commits September 6, 2026 15:56
Honor OpenAI-compatible limit/after query params, set Content-Length,
and write large catalog bodies in chunks so Desktop no longer sees a
mid-JSON cutoff on ~1MB+ lists.

Co-authored-by: Ravi Tharuma <RaviTharuma@users.noreply.github.com>
Co-authored-by: Ravi Tharuma <RaviTharuma@users.noreply.github.com>
@RaviTharuma

Copy link
Copy Markdown
Contributor Author

Parent PR for #12881.

@diegosouzapw
diegosouzapw merged commit 6029515 into diegosouzapw:release/v3.8.51 Sep 10, 2026
10 of 16 checks passed
@RaviTharuma
RaviTharuma deleted the cursor/models-catalog-pagination-6cae branch September 23, 2026 19:36
muhamadgalihsaputra pushed a commit to niyatna/NiyatnaRoute that referenced this pull request Sep 27, 2026
…iegosouzapw#12882)

Validado numa worktree combinada com a onda de dashboard/monitoring desta leva sobre `release/v3.8.51`: typecheck:core limpo, check-api-typecheck OK (289), check-file-size OK após rebaseline, 130/131 nos testes focados — a falha restante é asserção de tempo de parede sob carga, verde 6/6 isolada.

Paginar e completar o stream em `GET /v1/models` é a correção certa para catálogo grande: um payload único que cresce com o número de providers vira timeout silencioso no cliente, não erro.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(api): page and stream-complete GET /v1/models for large catalogs

3 participants