BerriAI/litellm · error · ValueError
reminder_markers entries must not be blank
Error message
reminder_markers entries must not be blank
What it means
Pydantic validator on ReminderMarkerPair: the open or close delimiter is blank after stripping. Blank markers would make the context-injection scanner match everywhere, so the pair is rejected.
Source
Thrown at litellm/router_strategy/complexity_router/config.py:92
class ReminderMarkerPair(BaseModel):
"""One open/close delimiter pair a harness wraps injected context in.
Normalizing here rather than at the scan is what makes matching case-insensitive: markers reach
the scan already lowered, so it lowercases only the haystack and never the needles. Stripping
keeps YAML indentation whitespace from becoming part of the delimiter.
"""
open: str = Field(description="Opening delimiter, e.g. '<system-reminder>'")
close: str = Field(description="Closing delimiter, e.g. '</system-reminder>'")
@model_validator(mode="after")
def _normalize(self) -> "ReminderMarkerPair":
open_marker: Final = self.open.strip().lower()
close_marker: Final = self.close.strip().lower()
if not open_marker or not close_marker:
raise ValueError("reminder_markers entries must not be blank")
if open_marker == close_marker:
raise ValueError("reminder_markers open and close must be different strings")
self.open = open_marker
self.close = close_marker
return self
# ─── Default Keyword Lists ───
# Note: Keywords should be full words/phrases to avoid substring false positives.
# The matching logic uses word boundary detection for single-word keywords.
DEFAULT_CODE_KEYWORDS: Final[list[str]] = [
"function",
"class",
"def",
"const",
"let",
"var",View on GitHub (pinned to 77b7c6c40c)
Solutions
- Use non-blank strings for reminder_markers entries.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at litellm/router_strategy/complexity_router/config.py:92 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of BerriAI/litellm@77b7c6c40c (2026-08-18).
Data as JSON: /api/errors/38c946ddd088b201.
Report an issue: GitHub.