mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5770] [Issue]: NanoGPT model list reports Context 0 / Max Output 0 #3188
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#3188
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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: 0andMax Output: 0for 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
inception/mercury-2.5-preview(or any model from a vendor outside the aggregator fallback list).Context: 0 Max Output: 0and Max Context Window is not auto-set.Environment
staging)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:GET https://nano-gpt.com/api/v1/models?detailed=true— the same models, plus:For
inception/mercury-2.5-previewthe detailed catalog reportscontext_length: 260000andmax_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:
Additional context
packages/shared/src/constants/model-lists.tsstates 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 inconnections.routes.tsalready readscontext_lengthandmax_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: