Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/llm/providers/claude_openrouter_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@ async def _create_message(
or "exceeds the maximum length" in error_str
or "exceeds the maximum allowed length" in error_str
or "Input tokens exceed the configured limit" in error_str
or "Requested token count exceeds the model's maximum context length" in error_str
or "BadRequestError" in error_str and "context length" in error_str
):
logger.debug(f"OpenRouter LLM Context limit exceeded: {error_str}")
raise ContextLimitError(f"Context limit exceeded: {error_str}")
Expand Down
2 changes: 2 additions & 0 deletions src/llm/providers/mirothinker_sglang_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ async def _create_message(
or "exceeds the maximum length" in error_str
or "exceeds the maximum allowed length" in error_str
or "Input tokens exceed the configured limit" in error_str
or "Requested token count exceeds the model's maximum context length" in error_str
or "BadRequestError" in error_str and "context length" in error_str
):
logger.debug(f"MiroThinker LLM Context limit exceeded: {error_str}")
raise ContextLimitError(f"Context limit exceeded: {error_str}")
Expand Down
Loading