From 32abe742fa81bee3acb42a274b2501afe1657c08 Mon Sep 17 00:00:00 2001 From: rob-maron <132852777+rob-maron@users.noreply.github.com> Date: Tue, 12 May 2026 00:27:56 -0400 Subject: [PATCH] fix comment --- agent/model_metadata.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/agent/model_metadata.py b/agent/model_metadata.py index a3fa8d57981..100c33a136c 100644 --- a/agent/model_metadata.py +++ b/agent/model_metadata.py @@ -1342,10 +1342,8 @@ def _resolve_nous_context_length(model: str) -> Optional[int]: def _safe_ctx(or_id: str, entry: dict) -> Optional[int]: """Return context length, but reject stale 32k values for Kimi models. - OpenRouter reports 32768 for moonshotai/kimi-k2.6 and similar Kimi - models; the actual supported context is 262144. Apply the same guard - used for the generic OpenRouter path (step 6 in resolve_context_length) - so the Nous portal path does not short-circuit it. + Apply the same guard used for the generic OpenRouter path (step 6 in + resolve_context_length) so the Nous portal path does not short-circuit it. """ ctx = entry.get("context_length") if ctx is None: