MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 3 callersFunction_entra_environment
(graph_url: str)
tests/integration/authorization/test_sso_blank_identity.py:134
↓ 3 callersFunction_entra_jwt
(expires_at: datetime)
tests/unit/proxy/db/test_pgbouncer.py:590
↓ 3 callersFunction_entra_signed_app_token
A JWTHandler that verifies RS256 tokens against a pre-cached JWKS, plus a signed Entra-style app token.
tests/unit/proxy/auth/test_handle_jwt.py:7741
↓ 3 callersFunction_entries
( drivable: Sequence[CodexCatalogRow], stock: Mapping[str, CodexStockModel] | None, instructions:
litellm/proxy/common_utils/codex_model_catalog.py:474
↓ 3 callersFunction_entries
(value: object)
litellm/llms/vertex_ai/gemini/rejected_thought_signature_retry.py:33
↓ 3 callersFunction_entry
(key: str)
litellm/llms/fal_ai/cost_calculator.py:132
↓ 3 callersFunction_entry
(gateway: Gateway, path: str, name: str, params: Mapping[str, str] | None = None)
tests/integration/routing/test_model_capability_flags.py:334
↓ 3 callersFunction_entry
(index: int)
tests/unit/llms/fastcrw/search/test_transformation.py:206
↓ 3 callersFunction_entry
(index: int)
tests/unit/llms/brave/search/test_brave_search_transformation.py:16
↓ 3 callersFunction_entry
(name: str = "r1")
tests/unit/router_strategy/adaptive_router/test_state_endpoint.py:39
↓ 3 callersFunction_entry_callback_vars
(entry: object)
litellm/proxy/common_utils/callback_config_validation.py:338
↓ 3 callersMethod_enum_values
()
tests/unit/integrations/test_prometheus_queue_guardrail_metrics.py:238
↓ 3 callersFunction_env
(settings: Mapping[str, JsonValue])
litellm/proxy/client/cli/commands/claude_settings.py:431
↓ 3 callersFunction_env_and_reload
(**env)
tests/unit/proxy/mcp_server/test_mcp_server_identity_env.py:24
↓ 3 callersFunction_env_object
(settings: Mapping[str, JsonValue], path: Path)
litellm/proxy/client/cli/commands/claude_settings.py:237
↓ 3 callersFunction_envelope
(code: str | None, message: str)
tests/integration/providers/test_bedrock_mantle_context_overflow_wire.py:48
↓ 3 callersMethod_epoch_to_datetime
`StandardLoggingPayload` stores startTime/endTime as float epoch seconds.
litellm/proxy/logging_endpoints/callback_logs_endpoints.py:52
↓ 3 callersFunction_error
(response: httpx.Response)
tests/integration/providers/test_validated_reply_boundaries_under_faults.py:242
↓ 3 callersFunction_error
(route: str, parameter: str)
tests/integration/compatibility/test_missing_body_param_status.py:886
↓ 3 callersFunction_error
(custom_id: str)
tests/unit/batches/test_batch_line_items.py:61
↓ 3 callersMethod_error
(self, exc: BaseException, status_code: int | None = None)
litellm/harness/endpoint.py:604
↓ 3 callersFunction_error_context
(context: RouteContext)
litellm/rust_bridge/runtime.py:145
↓ 3 callersFunction_error_frames
(text: str)
tests/integration/messages_endpoint/providers/anthropic/test_anthropic_messages_overloaded_wire.py:246
↓ 3 callersMethod_error_has_tool_level_extra_fields
(self, error_text: str)
litellm/llms/azure_ai/chat/transformation.py:506
↓ 3 callersFunction_error_message
(payload: Mapping[str, JsonValue])
tests/integration/providers/test_vertex_partner_count_tokens_wire.py:290
↓ 3 callersFunction_error_message
(response: httpx.Response)
tests/integration/compatibility/test_openai_sdk_client_paths.py:512
↓ 3 callersMethod_error_record
(caplog: pytest.LogCaptureFixture)
tests/unit/proxy/test_common_request_processing.py:12559
↓ 3 callersFunction_error_response
( scope: Scope, message: str, status_code: int, error_type: str = "invalid_request_error",
litellm/proxy/middleware/request_body_decompression_middleware.py:299
↓ 3 callersFunction_error_text
(response_data: Mapping[str, object])
litellm/llms/fal_ai/videos/transformation.py:213
↓ 3 callersFunction_error_text
(response: httpx.Response)
tests/integration/providers/test_gemini_tts_voice_mapping_wire.py:107
↓ 3 callersFunction_error_type
(response: httpx.Response)
tests/integration/providers/test_vertex_gemini_count_tokens_wire.py:604
↓ 3 callersFunction_error_type
(response: httpx.Response)
tests/integration/authorization/test_customer_model_allowlist.py:81
↓ 3 callersMethod_esb_server
(header: "str | None")
tests/unit/proxy/mcp_server/test_mcp_server_manager.py:3375
↓ 3 callersMethod_estimate_audio_block_tokens
Token estimate for one ``input_audio`` content block. When the block carries a base64 ``data`` payload, the estimate comes f
litellm/proxy/hooks/parallel_request_limiter_v3.py:3335
↓ 3 callersFunction_estimate_usage_from_text
( model: str, request_input: object, responses_api_request: Mapping[str, object], generated_te
litellm/responses/streaming_iterator.py:1851
↓ 3 callersFunction_estimate_usage_safely
( model: str, request_input: object, responses_api_request: Mapping[str, object], generated_te
litellm/responses/streaming_iterator.py:1877
↓ 3 callersFunction_estimated_input_cost
Input price for the estimated prompt: the deployment's registered rates when it has any (the id is ``Logging.get_router_model_id()``, never the fl
litellm/proxy/utils.py:1535
↓ 3 callersFunction_estimator_model
(deployment: _RouterEstimatorDeployment)
litellm/proxy/management_endpoints/roi_calculator_endpoints.py:125
↓ 3 callersFunction_event
(name: str | None, payload: Mapping[str, JsonValue])
tests/integration/streaming/test_noma_v2_streaming_settings.py:170
↓ 3 callersFunction_events
(marker: str)
tests/integration/providers/test_responses_bridge_tool_search_chaos.py:118
↓ 3 callersFunction_events
(text: str)
tests/integration/providers/test_bedrock_mantle_context_overflow_wire.py:201
↓ 3 callersMethod_events_for_query
(self, query: str, deadline: float)
tests/e2e/logging/datadog_reader.py:140
↓ 3 callersFunction_eventually_management_scope
( rig: MatrixRig, name: str, expected: tuple[int, int], )
tests/integration/observability/test_guardrail_stream_scope_matrix.py:1187
↓ 3 callersFunction_every_client_frame
(labels: tuple[str, ...])
tests/integration/providers/test_realtime_unguarded_voice_turns.py:755
↓ 3 callersFunction_evict_created_membership_caches
Evict the ``get_team_membership`` negative-cache sentinel for members whose row was just created. A session-token request caches ``NO_TEAM_MEMBER
litellm/proxy/management_endpoints/team_endpoints.py:2430
↓ 3 callersMethod_evict_expired
(self, key: str)
tests/unit/proxy/test_budget_reservation.py:2170
↓ 3 callersFunction_evict_tag_cache_keys
Every endpoint that mutates a tag row must call this, or a deleted tag keeps its budget enforced and a newly created one stays invisible to t
litellm/proxy/management_endpoints/tag_management_endpoints.py:148
↓ 3 callersFunction_exception
(frames: Sequence[Frame])
tests/integration/observability/test_bedrock_invoke_stream_post_call_guardrail.py:493
↓ 3 callersFunction_exception_carrying_status
(carried: int | None, message: str = "boom")
tests/unit/proxy/utils/helpers/test_error_helpers.py:212
↓ 3 callersFunction_exception_changes_request_flow
True for guardrail exceptions the proxy turns into an alternate request flow (a reroute or a passthrough response) rather than a block. A pip
litellm/proxy/utils.py:680
↓ 3 callersFunction_exception_event
(span)
tests/unit/integrations/otel/test_otel_v2_components.py:1170
↓ 3 callersFunction_executeHooks
(s,o,i)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 3 callersMethod_execute_bounded_ddl
Run one DDL statement under a Postgres statement and lock timeout. Partition DDL takes an ACCESS EXCLUSIVE lock, so an unbounded sta
litellm/proxy/db/db_transaction_queue/spend_logs_partition_manager.py:198
↓ 3 callersFunction_execute_chat_completion_agentic_plan
( *, plan: AgenticLoopPlan, callback: CustomLogger, model: str, optional_params: dict[str,
litellm/litellm_core_utils/chat_completion_agentic_loop.py:277
↓ 3 callersFunction_execute_policy_bodies
( inputs: GenericGuardrailAPIInputs, input_type: Literal["request", "response"], scan_only_tool_re
tests/unit/proxy/guardrails/guardrail_hooks/zscaler_ai_guard/test_zscaler_ai_guard.py:153
↓ 3 callersFunction_expect_exactly_once
(rig: Rig, model_names: tuple[str, ...], deployment_ids: tuple[str, ...], four_xx: int)
tests/integration/observability/test_cache_hit_guardrail_metrics_chaos.py:152
↓ 3 callersMethod_expected_fast_cost
(self, standard_cost: float)
tests/unit/proxy/pass_through_endpoints/llm_provider_handlers/test_anthropic_passthrough_logging_handler.py:2363
↓ 3 callersFunction_expected_gemini_stream_frames
(usage: Mapping[str, int] | None)
tests/integration/providers/test_google_genai_adapter_wire.py:218
↓ 3 callersFunction_expected_observation
(body: dict[str, JsonValue])
tests/integration/spend/test_end_user_budget_enforcement.py:494
↓ 3 callersFunction_expected_response
(model: str, state: str)
tests/integration/providers/test_cloudflare_clairic_extraction_wire.py:80
↓ 3 callersMethod_expected_session_cost
(cls, turns: Sequence[_LiveTurn])
tests/unit/proxy/pass_through_endpoints/test_vertex_ai_live_passthrough.py:330
↓ 3 callersFunction_expected_wire_url
The URL boto3 itself would put on the wire for this key.
tests/unit/integrations/test_s3_v2.py:2593
↓ 3 callersFunction_expired_delegate_token_preflight
(mcp_servers: Sequence[str])
tests/unit/proxy/mcp_server/test_mcp_server_tool_calls_and_headers.py:7382
↓ 3 callersMethod_expiring
(self, assertion: SSOIdentityAssertion | None)
litellm/proxy/mcp_server/outbound_credentials/sso_assertion_refresher.py:464
↓ 3 callersMethod_explicit_mantle_route
Check if the model is an explicit mantle route (bedrock-mantle endpoint).
litellm/llms/bedrock/common_utils.py:2206
↓ 3 callersFunction_explicit_max_tokens
( request_kwargs: Mapping[str, object] | None, cap_keys: tuple[str, ...] = _OUTPUT_CAP_KEYS )
litellm/router_utils/pre_call_checks/io_token_rate_limit_check.py:235
↓ 3 callersFunction_explicitly_cleared_ptu_fields
The PTU fields a patch sends as an explicit null, which update_db_model drops. Empty while the feature is off, so disabling pauses PTU rather tha
litellm/proxy/management_endpoints/model_management_endpoints.py:1041
↓ 3 callersMethod_export_window
Export with Mavvrik row cap applied when no explicit limit is passed.
litellm/integrations/mavvrik_focus/mavvrik_focus_logger.py:121
↓ 3 callersFunction_exported_spans
(route: respx.Route)
tests/unit/integrations/langfuse/test_langfuse.py:66
↓ 3 callersFunction_exporter_from_spec
(spec: ExporterSpec)
litellm/integrations/otel/plumbing/providers.py:203
↓ 3 callersFunction_extended_card_1_0
()
tests/unit/proxy/a2a/test_version_convert.py:272
↓ 3 callersMethod_extract_and_set_chat_attributes
(self, span, kwargs, response_obj)
litellm/integrations/mlflow.py:75
↓ 3 callersMethod_extract_and_update_preprocessing_usage
Extract usage information from preprocessing trace.
litellm/llms/bedrock/chat/invoke_agent/transformation.py:361
↓ 3 callersMethod_extract_code_execution_tool_calls
(self, response: object)
litellm/integrations/code_interpreter_interception/handler.py:881
↓ 3 callersMethod_extract_completion_id
Extract completion ID from kwargs or response_obj, or generate one.
litellm/integrations/newrelic/newrelic.py:318
↓ 3 callersMethod_extract_function_call_arguments
Pull ``arguments`` off a function_call entry (dict or model).
litellm/proxy/guardrails/guardrail_hooks/cisco_ai_defense/cisco_ai_defense.py:2156
↓ 3 callersFunction_extract_identity
(kwargs: Mapping[str, object])
litellm/integrations/code_interpreter_interception/handler.py:221
↓ 3 callersMethod_extract_json_schema_from_response_format
(self, value: dict | None)
litellm/llms/anthropic/chat/transformation.py:1807
↓ 3 callersFunction_extract_literal_values
Extract literal values from a Literal type annotation
litellm/proxy/guardrails/guardrail_endpoints.py:1795
↓ 3 callersMethod_extract_masked_entity_count
Count entity-type detections per Cisco rule for the logging payload.
litellm/proxy/guardrails/guardrail_hooks/cisco_ai_defense/cisco_ai_defense.py:1800
↓ 3 callersMethod_extract_masked_texts_from_response
Extract all masked text outputs from the guardrail response. Args: bedrock_guardrail_response: Response from Bedrock gua
litellm/proxy/guardrails/guardrail_hooks/bedrock_guardrails.py:3103
↓ 3 callersMethod_extract_message_output_items
( chat_completion_response: ModelResponse, choices: list[Choices], )
litellm/responses/litellm_completion_transformation/transformation.py:3756
↓ 3 callersMethod_extract_message_reasoning_parts
Extract inspectable reasoning fields from a message/delta object.
litellm/proxy/guardrails/guardrail_hooks/cisco_ai_defense/cisco_ai_defense.py:2096
↓ 3 callersMethod_extract_message_tool_argument_parts
(cls, message: object)
litellm/proxy/guardrails/guardrail_hooks/cisco_ai_defense/cisco_ai_defense.py:2132
↓ 3 callersMethod_extract_metadata
(self, kwargs: PostHogLogKwargs)
litellm/integrations/posthog.py:404
↓ 3 callersMethod_extract_orchestration_model
Extract model information from orchestration trace.
litellm/llms/bedrock/chat/invoke_agent/transformation.py:386
↓ 3 callersFunction_extract_proxy_litellm_metadata
Return ``(kwargs["litellm_metadata"], its user_api_key_auth)`` when it's a dict; ``(None, None)`` otherwise. The proxy attaches its auth/spend-at
litellm/llms/anthropic/messages/adapters/handler.py:249
↓ 3 callersFunction_extract_requested_mcp_access_groups
Extract MCP access groups from a key's object_permission dict.
litellm/proxy/management_helpers/object_permission_utils.py:653
↓ 3 callersMethod_extract_response_id
Pull the raw (decoded) response ID out of a terminal (``response.completed`` or ``response.incomplete``) event. Returns *None* if the
litellm/responses/streaming_iterator.py:3259
↓ 3 callersMethod_extract_response_messages
Extract scannable assistant text from a chat response. Handles both ``ModelResponse`` (Chat Completions) and ``ResponsesAPIResponse``
litellm/proxy/guardrails/guardrail_hooks/cisco_ai_defense/cisco_ai_defense.py:2038
↓ 3 callersFunction_extract_text_from_message
(message: _Message)
litellm/proxy/guardrails/guardrail_hooks/crowdstrike_aidr/crowdstrike_aidr.py:144
↓ 3 callersMethod_extract_text_from_sse_bytes
Extract text from Anthropic SSE byte chunks (content_block_delta → text_delta).
litellm/proxy/guardrails/guardrail_hooks/panw_prisma_airs/panw_prisma_airs.py:953
↓ 3 callersMethod_extract_text_from_streaming_events
Extract text from /v1/responses streaming events (object or dict).
litellm/proxy/guardrails/guardrail_hooks/panw_prisma_airs/panw_prisma_airs.py:974
↓ 3 callersMethod_extract_token_from_db_url
Extract the token (password) from the DATABASE_URL. The token contains the AWS signature with X-Amz-Date and X-Amz-Expires parameter
litellm/proxy/db/prisma_client.py:441
↓ 3 callersMethod_extract_turn_detection
Extract turn_detection from a session.update payload. Handles both the flat beta shape (``session.turn_detection``) and the GA shape
litellm/llms/gemini/realtime/transformation.py:476
↓ 3 callersMethod_extract_usage_info
Extract token usage information from trace events.
litellm/llms/bedrock/chat/invoke_agent/transformation.py:312
↓ 3 callersMethod_extract_video_url_from_response
Helper method to extract video URL from RunwayML response. Shared between sync and async transforms.
litellm/llms/runwayml/videos/transformation.py:432
↓ 3 callersFunction_extraction_request
(state: str, call_id: str)
tests/unit/proxy/hooks/test_parallel_request_limiter_v3.py:9785
↓ 3 callersMethod_extras
(self)
litellm/types/llms/openai.py:1788
↓ 3 callersFunction_fail
(marker: str)
tests/integration/providers/test_responses_compaction_items_wire.py:67
← previousnext →23,201–23,300 of 202,479, ranked by callers