mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-12 23:01:41 +00:00
fix: import HiddenParams from types.llms.base to avoid cyclic imports
CodeQL flagged a module-level cycle when hidden_params_timing imported litellm.types.utils. HiddenParams is defined in litellm.types.llms.base; import it there instead so response_metadata → hidden_params_timing does not pull in the full types.utils graph. Made-with: Cursor
This commit is contained in:
parent
b4259fb2e2
commit
15797acd3b
1 changed files with 1 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ import datetime
|
|||
from typing import Any, Optional, Union
|
||||
|
||||
from litellm.constants import LITELLM_DETAILED_TIMING
|
||||
from litellm.types.utils import HiddenParams
|
||||
from litellm.types.llms.base import HiddenParams
|
||||
|
||||
|
||||
def get_response_hidden_params(response: Any) -> Union[HiddenParams, dict]:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue