diff --git a/aider/models/model.py b/aider/models/model.py index 65e6f3b0d..9ff629d05 100644 --- a/aider/models/model.py +++ b/aider/models/model.py @@ -3,10 +3,18 @@ import math from dataclasses import dataclass, fields import litellm +from typing import Optional from PIL import Image from aider.dump import dump +class NoModelInfo(Exception): + """ + Exception raised when model information cannot be retrieved. + """ + def __init__(self, message: Optional[str] = None): + super().__init__(message or "No model information available.") + @dataclass class ModelSettings: