mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-13 23:11:40 +00:00
refactor: lazy load get_llm_provider and remove_index_from_tool_calls (#18608)
This commit is contained in:
parent
7d81d245fb
commit
1452f01505
1 changed files with 3 additions and 0 deletions
|
|
@ -32,6 +32,7 @@ UTILS_NAMES = (
|
|||
"ModelResponse", "ModelResponseStream", "EmbeddingResponse", "ImageResponse",
|
||||
"TranscriptionResponse", "TextCompletionResponse", "get_provider_fields",
|
||||
"ModelResponseListIterator", "get_valid_models", "timeout",
|
||||
"get_llm_provider", "remove_index_from_tool_calls",
|
||||
)
|
||||
|
||||
# Token counter names that support lazy loading via _lazy_import_token_counter
|
||||
|
|
@ -336,6 +337,8 @@ _UTILS_IMPORT_MAP = {
|
|||
"ModelResponseListIterator": (".utils", "ModelResponseListIterator"),
|
||||
"get_valid_models": (".utils", "get_valid_models"),
|
||||
"timeout": (".timeout", "timeout"),
|
||||
"get_llm_provider": ("litellm.litellm_core_utils.get_llm_provider_logic", "get_llm_provider"),
|
||||
"remove_index_from_tool_calls": ("litellm.litellm_core_utils.core_helpers", "remove_index_from_tool_calls"),
|
||||
}
|
||||
|
||||
_COST_CALCULATOR_IMPORT_MAP = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue