Problem
If OpenRouter omits context_length, ModelInfo.from_openrouter stores 0. The router then always rejects the model with context 0 < N tokens, which reads like the model is tiny rather than "unknown".
Where
src/model_router/models.py (from_openrouter)
src/model_router/router.py (_reject_reason)
Suggested fix
Store None for unknown context. In _reject_reason, either skip the context check or reject with the reason "context size unknown". Pick one and document it.
Done when
Problem
If OpenRouter omits
context_length,ModelInfo.from_openrouterstores0. The router then always rejects the model withcontext 0 < N tokens, which reads like the model is tiny rather than "unknown".Where
src/model_router/models.py(from_openrouter)src/model_router/router.py(_reject_reason)Suggested fix
Store
Nonefor unknown context. In_reject_reason, either skip the context check or reject with the reason"context size unknown". Pick one and document it.Done when
context_length