mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-18 04:41:56 +00:00
fix comment
This commit is contained in:
parent
f0c2964f0b
commit
32abe742fa
1 changed files with 2 additions and 4 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue