↓ 15 callersFunctionget_spend_logs_id(
call_type: str,
response_obj: Mapping[str, object],
kwargs: Mapping[str, object],
metadata:
litellm/proxy/spend_tracking/spend_tracking_utils.py:373
↓ 15 callersMethodhandle_count_tokens_request(
self,
request_data: dict[str, object],
litellm_params: dict[str, object],
re
tests/unit/proxy/test_proxy_token_counter.py:1007
↓ 15 callersMethodopenai_passthrough_handler Handle OpenAI passthrough logging with cost tracking for chat completions, embeddings, image generation, image editing, and responses
litellm/proxy/pass_through_endpoints/llm_provider_handlers/openai_passthrough_logging_handler.py:476
↓ 15 callersMethodpre_call_hook(
self,
*,
user_api_key_dict: UserAPIKeyAuth,
data: dict[str, object], # muta
litellm/proxy/response_api_endpoints/endpoints.py:2181
↓ 15 callersFunctionsettle_chat(
rig: AliasRig,
model: str,
key: str,
status: int,
*,
seconds: float = 60,
extra:
tests/integration/authorization/_hidden_alias_budget.py:186