mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-06 12:45:00 +00:00
load litellm if model metadata json is present
This commit is contained in:
parent
f6023865f8
commit
b8d09e1f04
2 changed files with 14 additions and 10 deletions
|
@ -17,6 +17,8 @@ class LazyLiteLLM:
|
|||
_lazy_module = None
|
||||
|
||||
def __getattr__(self, name):
|
||||
if name == "_lazy_module":
|
||||
return super()
|
||||
self._load_litellm()
|
||||
return getattr(self._lazy_module, name)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue