[GH-ISSUE #5770] [Issue]: NanoGPT model list reports Context 0 / Max Output 0 #3188

Closed
opened 2026-10-21 06:00:21 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @SonaGat3 on GitHub (Sep 2, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5770

Originally assigned to: @Gunterlie on GitHub.

Summary

NanoGPT connections show Context: 0 and Max Output: 0 for most models, so the Max Context Window field is never auto-filled and has to be set by hand. Marinara requests NanoGPT's plain model catalog, which does not carry any limit fields.

Expected behavior

Selecting a NanoGPT model fills in that model's context window and output limit, the same way it works for OpenRouter, and Max Context Window is auto-set from the model.

Actual behavior

The model card shows Context: 0 Max Output: 0, Max Context Window stays at whatever was typed manually, and the dropdown label repeats the model id twice because no display name is available.

Only models whose unqualified id also exists in the built-in aggregator fallback (OpenAI, Anthropic, Google, DeepSeek, MiMo, Moonshot, Z.AI, xAI) resolve limits. Any other vendor — for example inception/mercury-2.5-preview — resolves to nothing.

Steps to reproduce

  1. Create a NanoGPT text connection and paste an API key.
  2. Click Fetch Models from API.
  3. Select inception/mercury-2.5-preview (or any model from a vendor outside the aggregator fallback list).
  4. The model card reads Context: 0 Max Output: 0 and Max Context Window is not auto-set.

Environment

  • Marinara Engine version: 2.4.5 (staging)
  • Install type: source (git checkout)
  • OS + version: Windows 10 22H2
  • Browser or app shell: desktop browser

Logs, screenshots, or video

The provider catalog is public, so the difference is reproducible without a key:

GET https://nano-gpt.com/api/v1/models — every entry carries only:

id, object, created, owned_by

GET https://nano-gpt.com/api/v1/models?detailed=true — the same models, plus:

name, description, context_length, max_output_tokens, architecture, capabilities, pricing, ...

For inception/mercury-2.5-preview the detailed catalog reports context_length: 260000 and max_output_tokens: 65536.

Measured on the current catalog (622 models): 609 carry a usable context window and 597 a usable output limit in the detailed variant, and none in the plain one.

Cost of the detailed variant, measured with compression as the server requests it:

Variant On the wire Decoded Request time
plain 7.6 KB 58 KB 0.66 s
detailed 60 KB 675 KB 1.48 s

Additional context

packages/shared/src/constants/model-lists.ts states the intent explicitly — nanogpt: [], // NanoGPT aggregator — models fetched dynamically via API — but the request Marinara sends is the plain catalog, which carries no limits to fetch. The normalizer in connections.routes.ts already reads context_length and max_output_tokens, so no parsing change is needed.

NanoGPT ignores unknown query parameters and answers with the plain catalog, so a future removal of the flag would degrade to today's behavior rather than fail.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • [] I DID NOT read this template and provide the requested details.
Originally created by @SonaGat3 on GitHub (Sep 2, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5770 Originally assigned to: @Gunterlie on GitHub. ## Summary NanoGPT connections show `Context: 0` and `Max Output: 0` for most models, so the Max Context Window field is never auto-filled and has to be set by hand. Marinara requests NanoGPT's plain model catalog, which does not carry any limit fields. ## Expected behavior Selecting a NanoGPT model fills in that model's context window and output limit, the same way it works for OpenRouter, and Max Context Window is auto-set from the model. ## Actual behavior The model card shows `Context: 0 Max Output: 0`, Max Context Window stays at whatever was typed manually, and the dropdown label repeats the model id twice because no display name is available. Only models whose unqualified id also exists in the built-in aggregator fallback (OpenAI, Anthropic, Google, DeepSeek, MiMo, Moonshot, Z.AI, xAI) resolve limits. Any other vendor — for example `inception/mercury-2.5-preview` — resolves to nothing. ## Steps to reproduce 1. Create a NanoGPT text connection and paste an API key. 2. Click **Fetch Models from API**. 3. Select `inception/mercury-2.5-preview` (or any model from a vendor outside the aggregator fallback list). 4. The model card reads `Context: 0 Max Output: 0` and Max Context Window is not auto-set. ## Environment - Marinara Engine version: 2.4.5 (`staging`) - Install type: source (git checkout) - OS + version: Windows 10 22H2 - Browser or app shell: desktop browser ## Logs, screenshots, or video The provider catalog is public, so the difference is reproducible without a key: `GET https://nano-gpt.com/api/v1/models` — every entry carries only: id, object, created, owned_by `GET https://nano-gpt.com/api/v1/models?detailed=true` — the same models, plus: name, description, context_length, max_output_tokens, architecture, capabilities, pricing, ... For `inception/mercury-2.5-preview` the detailed catalog reports `context_length: 260000` and `max_output_tokens: 65536`. Measured on the current catalog (622 models): 609 carry a usable context window and 597 a usable output limit in the detailed variant, and none in the plain one. Cost of the detailed variant, measured with compression as the server requests it: | Variant | On the wire | Decoded | Request time | | --- | --- | --- | --- | | plain | 7.6 KB | 58 KB | 0.66 s | | detailed | 60 KB | 675 KB | 1.48 s | ## Additional context `packages/shared/src/constants/model-lists.ts` states the intent explicitly — `nanogpt: [], // NanoGPT aggregator — models fetched dynamically via API` — but the request Marinara sends is the plain catalog, which carries no limits to fetch. The normalizer in `connections.routes.ts` already reads `context_length` and `max_output_tokens`, so no parsing change is needed. NanoGPT ignores unknown query parameters and answers with the plain catalog, so a future removal of the flag would degrade to today's behavior rather than fail. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 06:00:21 +07:00
  • closed this issue
  • added the
    in-pr
    bug
    labels
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#3188
No description provided.