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:
shivam 2026-03-27 18:01:03 -07:00
parent b4259fb2e2
commit 15797acd3b
No known key found for this signature in database

View file

@ -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]: