mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-16 23:41:43 +00:00
refactor(model_info): drop types import from fallback_generalizations
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
0f846cecb8
commit
4cf20f31ed
1 changed files with 3 additions and 4 deletions
|
|
@ -55,7 +55,6 @@ import logging
|
|||
import re
|
||||
from collections.abc import Mapping
|
||||
from dataclasses import dataclass
|
||||
from types import MappingProxyType
|
||||
from typing import Final
|
||||
|
||||
verbose_logger: Final = logging.getLogger("LiteLLM")
|
||||
|
|
@ -225,9 +224,9 @@ class _FallbackGeneralizations:
|
|||
)
|
||||
if not matched:
|
||||
return None
|
||||
fill_missing: Final[Mapping[str, object]] = MappingProxyType(
|
||||
{key: value for model_info in matched for key, value in model_info.items() if key != PROVIDER_KEY}
|
||||
)
|
||||
fill_missing: Final[Mapping[str, object]] = {
|
||||
key: value for model_info in matched for key, value in model_info.items() if key != PROVIDER_KEY
|
||||
}
|
||||
return fill_missing or None
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue