HKUDS/DeepTutor · error · ValueError

llm.model is required

Error message

llm.model is required

What it means

Error "llm.model is required" thrown in HKUDS/DeepTutor.

Source

Thrown at deeptutor/config/schema.py:27


class PathsConfig(BaseModel):
    user_data_dir: str
    knowledge_bases_dir: str
    user_log_dir: str


class AppConfig(BaseModel):
    llm: LLMConfig
    paths: PathsConfig

    @field_validator("llm", mode="before")
    @classmethod
    def ensure_llm(cls, v: Any) -> Dict[str, Any]:
        if not isinstance(v, dict):
            raise ValueError("llm section must be a mapping")
        if "model" not in v:
            raise ValueError("llm.model is required")
        return v


CURRENT_SCHEMA_VERSION = 1


def migrate_config(cfg: Dict[str, Any]) -> Dict[str, Any]:
    """
    No-op migration for now; placeholder for future versioned changes.
    """
    return cfg

View on GitHub (pinned to 3e82f13042)

When it happens

Trigger: Thrown at deeptutor/config/schema.py:27 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of HKUDS/DeepTutor@3e82f13042 (2026-08-27). Data as JSON: /api/errors/b5cd6b665a8e9cc7. Report an issue: GitHub.