MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 9 callersFunction_content_policy_router
(**router_kwargs: object)
tests/unit/proxy/test_proxy_server_endpoints_and_startup.py:5694
↓ 9 callersFunction_controlled_upstream
( stream_chunks: tuple[bytes, ...] = _SSE_CHUNKS, )
tests/rust-python-harness/shared/parity/fixtures/test_recording.py:242
↓ 9 callersFunction_converged
(gateway: Gateway, name: str, expected: Mapping[str, JsonValue], *, key: str | None = None)
tests/integration/management/test_credential_federation_values.py:223
↓ 9 callersFunction_converse_event_frame
(event_type: str, body: Mapping[str, object])
tests/unit/llms/bedrock/chat/test_invoke_handler.py:890
↓ 9 callersMethod_cookie
(resp)
tests/unit/proxy/management_endpoints/test_ui_sso.py:10847
↓ 9 callersFunction_copilot_surface_responder
(model_payload)
tests/unit/llms/github_copilot/test_per_user_auth.py:760
↓ 9 callersMethod_core_get_model_list
( self, model_name: str | None = None, team_id: str | None = None )
litellm/router_rust/steps/plugins.py:33
↓ 9 callersMethod_core_handle
(self)
litellm/router_rust/surface/model_info.py:261
↓ 9 callersFunction_count
(gateway: Gateway, body: Mapping[str, JsonValue], key: str | None = None)
tests/integration/providers/test_anthropic_count_tokens_system_lift_wire.py:238
↓ 9 callersFunction_count_with_router
( monkeypatch: pytest.MonkeyPatch, router: Router, tools: tuple[dict[str, object], ...], responses: bool )
tests/unit/proxy/test_proxy_token_counter.py:3060
↓ 9 callersFunction_create
(model: str, text: str, *, include_model: bool = True)
tests/integration/providers/test_responses_websocket_session_limit.py:404
↓ 9 callersMethod_create
( self, request: FallbackCreateRequest, router: Router, stored: _StoredRouterSettings )
tests/unit/proxy/test_fallback_management_endpoints.py:555
↓ 9 callersFunction_create_key
(gateway: Gateway, model: str)
tests/integration/authorization/test_jwt_key_mapping_lifecycle.py:363
↓ 9 callersFunction_create_mapping
( gateway: Gateway, key: str, client_id: str, issuer: str | None = None, spelling: Literal
tests/integration/authorization/test_jwt_key_mapping_lifecycle.py:369
↓ 9 callersFunction_custom_tier_config
A valid operator-defined tier set: two built-in names plus one custom tier.
tests/unit/router_strategy/test_complexity_router.py:12856
↓ 9 callersFunction_database_windows
(table: _Table | None, sink: _Sink, lagging_replica: bool = False)
tests/unit/proxy/hooks/test_model_budget_shared_windows.py:65
↓ 9 callersFunction_decide
(gateway: Gateway, model: str, *, key: str | None = None)
tests/integration/providers/test_databricks_decisions_wire.py:115
↓ 9 callersFunction_decode_realtime_token_payload
Decode realtime token payload; returns None for legacy/raw ephemeral tokens.
litellm/proxy/realtime_endpoints/endpoints.py:307
↓ 9 callersFunction_decoded_invoke_frames
(raw: bytes)
tests/unit/llms/bedrock/passthrough/guardrail_translation/test_handler.py:3337
↓ 9 callersFunction_default_endpoint_deployment
(model_id: str, litellm_params: Mapping[str, object])
tests/unit/router_utils/pre_call_checks/test_encrypted_content_affinity_check.py:2697
↓ 9 callersFunction_delegate_auth_mcp_server
(server_id: str = "delegate-1")
tests/unit/proxy/mcp_server/test_mcp_server_tool_calls_and_headers.py:7264
↓ 9 callersMethod_delete_old_rows_batched
Delete a table's rows older than the cutoff in batches. Stops at whichever bound is reached first: the backlog running out, the
litellm/proxy/db/db_transaction_queue/spend_log_cleanup.py:814
↓ 9 callersFunction_delete_teams
(gateway: Gateway, team_ids: Sequence[str])
tests/integration/management/test_team_delete_large_membership.py:238
↓ 9 callersFunction_denied_by
( general_settings: Mapping[str, object], caller: UserAPIKeyAuth, load_team: TeamObjectLoader = _no_team )
tests/unit/proxy/auth/test_search_tool_deny_by_default.py:107
↓ 9 callersFunction_deploy
(scenario: Scenario, family: Family, wire: Wire)
tests/integration/streaming/test_stream_clean_eof_without_finish_reason.py:172
↓ 9 callersFunction_deployment_of
(ctx: RoutingContext, model_id: str)
tests/unit/router_utils/pre_call_checks/test_encrypted_content_affinity_check.py:2701
↓ 9 callersFunction_deployments_hit
(wire: Wire)
tests/integration/sdk/test_router_unsupported_params_fallback_wire.py:76
↓ 9 callersFunction_descriptor
(key: str, value: str, rpm: int)
tests/unit/caching/test_request_redis_batch_pre_call.py:93
↓ 9 callersFunction_dicts
The dict items of ``value`` (when it's a list), as a tuple. Else empty.
litellm/integrations/otel/model/payloads.py:779
↓ 9 callersFunction_discover
(gateway: Gateway, cleanups: ExitStack, model: str, key: str)
tests/integration/management/test_tool_policy_user.py:200
↓ 9 callersFunction_drain
(queue: SpendUpdateQueue)
tests/unit/proxy/db/test_model_access_group_spend.py:108
↓ 9 callersFunction_drain_cache_writes
()
tests/integration/sdk/test_caching_redis_sdk.py:25
↓ 9 callersMethod_drive_non_streaming
( self, *, monkeypatch, response, logging_obj, route_type, return_result=False, client_model=None
tests/unit/proxy/test_common_request_processing.py:7427
↓ 9 callersFunction_droppable
(model: str, message: str)
litellm/llms/volcengine/videos/transformation.py:201
↓ 9 callersFunction_echo_upstream
(marker: str)
tests/integration/spend/test_passthrough_request_tags.py:159
↓ 9 callersMethod_emit
(e,...t)
litellm/proxy/_experimental/out/_next/static/chunks/2hk8n3azev--d.js:11
↓ 9 callersMethod_emit_and_get_guardrail_span
(self, entry)
tests/unit/integrations/test_otel_guardrail_violation_spans.py:399
↓ 9 callersFunction_empty_spend_transactions
(**overrides)
tests/unit/proxy/db/test_db_spend_update_writer.py:4086
↓ 9 callersFunction_encrypted_agent_task
()
tests/unit/router_strategy/test_complexity_router.py:3478
↓ 9 callersFunction_enter_relay_logging_mocks
(stack, parsed_body)
tests/unit/proxy/pass_through_endpoints/test_pass_through_endpoints.py:6256
↓ 9 callersFunction_error_message
(response: httpx.Response, status: int)
tests/integration/security/test_files_batches_access.py:210
↓ 9 callersFunction_event
(request_id: str, **payload: object)
tests/unit/integrations/zerobus/test_zerobus_logger.py:45
↓ 9 callersFunction_exchange_with_upstream_response
Run the raw (non-bridge) authorization_code exchange against a canned upstream token-endpoint response and return what the gateway would hand the
tests/unit/proxy/mcp_server/test_discoverable_endpoints.py:9493
↓ 9 callersMethod_expand_messages_for_classification
Convert raw OpenAI-format messages to Lasso API format with content blocks. - assistant messages with `tool_calls` → assistant messa
litellm/proxy/guardrails/guardrail_hooks/lasso/lasso.py:665
↓ 9 callersFunction_expect_rejected
(content: bytes, reason: RejectionReason, *, max_size_bytes: int = 512 * 1024 * 1024)
tests/unit/proxy/rag_endpoints/test_upload_security.py:56
↓ 9 callersFunction_expected_body
(endpoint: Endpoint, *responses: JsonValue)
tests/integration/providers/test_gemini_tool_result_part_reference_wire.py:544
↓ 9 callersFunction_expected_response
(route: Route, clef_name: str, marker: str)
tests/integration/providers/test_cloudflare_clef_images_wire.py:133
↓ 9 callersFunction_extract_body
(config: ScaleDownChatConfig, schema: dict)
tests/unit/llms/scaledown/chat/test_scaledown_chat_transformation.py:547
↓ 9 callersMethod_extract_output_text_and_images
Extract text content, images, and tool calls from a response output item. Override this method to customize text/image/tool extracti
litellm/llms/openai/responses/guardrail_translation/handler.py:1862
↓ 9 callersFunction_fail_through
(core: RouterCore, deployment_id: str, times: int = 1)
tests/unit/test_router/core/test_selection.py:45
↓ 9 callersFunction_failed_stream
(error: JsonValue, model: str = _BACKEND)
tests/integration/providers/test_bedrock_mantle_context_overflow_wire.py:97
↓ 9 callersFunction_failing_a
( make_core: MakeCore, host: EndpointHost, model_list: list[dict[str, object]] | None = None )
tests/unit/test_router/core/test_parity_provider_scoped_fallbacks.py:53
↓ 9 callersFunction_fake_file_row
(unified_id: str, created_by: str = "user-1", team_id: str = "team-1")
tests/unit/proxy/pass_through_endpoints/test_managed_id_rewriter.py:1804
↓ 9 callersFunction_fake_request
(parent_otel_span: object | None = None, path: str = "/key/generate")
tests/unit/integrations/open_telemetry/test_otel_exception_handler.py:28
↓ 9 callersFunction_fallback_chat_response
(model: str, content: str)
tests/unit/test_router/test_router_fallbacks.py:636
↓ 9 callersMethod_file_object
(**overrides)
tests/unit/types/llms/test_types_llms_openai.py:633
↓ 9 callersFunction_filter_endpoints_by_team_allowed_routes
Filter pass-through endpoints based on team's allowed_passthrough_routes and denied_passthrough_routes metadata. Args: team_id:
litellm/proxy/pass_through_endpoints/pass_through_endpoints.py:4481
↓ 9 callersFunction_filter_models_by_team_id
Filter models by team ID. Returns models where: - team_id matches the model's BYOK team_id, OR - team_id is in access_via_team_ids, OR
litellm/proxy/proxy_server.py:17532
↓ 9 callersFunction_finished_span
()
tests/unit/integrations/langfuse/test_langfuse_sdk.py:1272
↓ 9 callersFunction_forget_sign_in
Delete the account a sign-in creates for ``email``, and its session keys, whether or not the test passes.
tests/integration/authorization/test_sso_blank_identity.py:380
↓ 9 callersFunction_freeze_today
(monkeypatch, frozen)
tests/unit/proxy/utils/helpers/test_month_end_projection.py:17
↓ 9 callersFunction_fresh
(token_data, save, http, reload=lambda: None, **options)
tests/unit/proxy/client/cli/test_pkce_login.py:128
↓ 9 callersFunction_generate_key
(client: ManagementClient, resources: ResourceManager, body: KeyGenerateBody)
tests/e2e/management/test_key_management_e2e.py:87
↓ 9 callersFunction_get_allowed_mcp_servers_from_mcp_server_names
Get the filtered MCP servers from the MCP server names. Fails closed when ``mcp_servers`` is explicitly provided (path- or header-derive
litellm/proxy/mcp_server/operations.py:624
↓ 9 callersMethod_get_boto3_client
Get a boto3 client for the specified service using BaseAWSLLM auth.
litellm/rag/ingestion/bedrock_ingestion.py:593
↓ 9 callersFunction_get_cli_sso_flow_or_raise
(login_id: str | None, cache: DualCache)
litellm/proxy/management_endpoints/ui_sso.py:399
↓ 9 callersMethod_get_generic_sso_redirect_params
Get redirect parameters for Generic SSO with proper state priority handling. Optionally generates PKCE parameters if GENERIC_CLIENT_U
litellm/proxy/management_endpoints/ui_sso.py:3563
↓ 9 callersMethod_get_headers_dictionary
Convert a string or dictionary of headers into a dictionary of headers.
litellm/integrations/opentelemetry.py:3450
↓ 9 callersFunction_get_jwt_handler_with_issuer_keys
(issuers: list, keys_by_url: dict)
tests/unit/proxy/auth/test_jwt.py:1610
↓ 9 callersFunction_get_redis_cluster_kwargs
Config kwargs the target cluster client's constructor actually accepts. Defaults to the sync ``redis.RedisCluster``, but the async cluster client
litellm/_redis.py:155
↓ 9 callersFunction_get_redis_env_kwarg_mapping
()
litellm/_redis.py:197
↓ 9 callersMethod_get_request_body
Get the request body for the Bedrock Image Generation API Checks the model/provider and transforms the request body accordingly
litellm/llms/bedrock/image_generation/image_handler.py:296
↓ 9 callersFunction_get_team_deployments
Fetch all deployments for a given team_id from the database. Centralizes team deployment queries to ensure consistent filtering and error ha
litellm/proxy/management_endpoints/model_management_endpoints.py:2399
↓ 9 callersFunction_get_unscoped_list_files
(query: str)
tests/unit/proxy/openai_files_endpoint/test_files_endpoint.py:3200
↓ 9 callersFunction_get_url_hash
Generate hash for URL to use as cache key.
litellm/llms/gigachat/file_handler.py:34
↓ 9 callersFunction_git
(repo: Path, *args: str)
tests/unit/test_default_branch.py:14
↓ 9 callersMethod_guardrail
(self)
tests/unit/proxy/guardrails/guardrail_hooks/test_bedrock_guardrails.py:4779
↓ 9 callersFunction_handler
Return a mock handler whose client records each upload-url POST and signed-URL PUT.
tests/unit/integrations/focus/test_ternary_destination.py:66
↓ 9 callersFunction_headers
(messages: tuple[Message, ...])
tests/unit/proxy/middleware/test_gzip_middleware.py:126
↓ 9 callersFunction_heuristic_v2_artifact
()
tests/unit/router_strategy/test_complexity_router.py:104
↓ 9 callersFunction_history
(*, replayed_reasoning: bool)
tests/unit/llms/anthropic/messages/responses_adapters/test_responses_adapters_handler.py:1348
↓ 9 callersFunction_history_with_foreign_reasoning
()
tests/unit/llms/anthropic/messages/adapters/test_anthropic_messages_adapters_transformation.py:5840
↓ 9 callersFunction_id_jag_gap_warnings
(caplog)
tests/unit/proxy/management_endpoints/test_ui_sso.py:10279
↓ 9 callersFunction_identity
(label: str)
tests/integration/providers/test_inferenceapis_wire.py:39
↓ 9 callersFunction_identity
(endpoint: Endpoint, deployment: str, nonce: str)
tests/integration/routing/test_include_fallback_errors_wire.py:112
↓ 9 callersFunction_image_only_chat_request
()
tests/unit/proxy/guardrails/guardrail_hooks/test_bedrock_guardrails.py:6218
↓ 9 callersMethod_increment_mcp_tool_call_metrics
( self, standard_logging_payload: StandardLoggingPayload, enum_values: UserAPIKeyLabel
litellm/integrations/prometheus.py:2157
↓ 9 callersMethod_increment_token_detail_metrics
Increment per-token-type counters from the Usage object that providers attach to the request. The Usage dict is plumbed onto
litellm/integrations/prometheus.py:1922
↓ 9 callersFunction_ingestion
(embedding=REQUEST_EMBEDDING, router=None, **vector_store)
tests/unit/rag/ingestion/test_s3_vectors_ingestion.py:22
↓ 9 callersFunction_init_slack_alerting_jobs
( acquire_lock_result: bool | None, spend_report_frequency: str = "7d", )
tests/unit/proxy/proxy_server/test_lifecycle.py:1298
↓ 9 callersFunction_interactions_logging_obj
(stream: bool, call_type: str = "acreate")
tests/unit/litellm_core_utils/test_litellm_logging.py:7677
↓ 9 callersMethod_invoke
(self, exc: Exception, callback_headers: Optional[dict] = None)
tests/unit/proxy/test_common_request_processing.py:4445
↓ 9 callersFunction_invoke_chunk_frame
(event: _InvokeEvent)
tests/unit/llms/bedrock/passthrough/guardrail_translation/test_handler.py:3308
↓ 9 callersFunction_invoke_message_method
( method: str, mock_request: MagicMock, user_api_key_dict: UserAPIKeyAuth, add_litellm_data: A
tests/unit/proxy/agent_endpoints/test_a2a_endpoints.py:580
↓ 9 callersMethod_is_adaptive_thinking_model
Whether ``model`` uses adaptive thinking (``output_config.effort``). The model cost map is authoritative: an explicit ``supports_adaptive_thi
litellm/llms/anthropic/common_utils.py:1139
↓ 9 callersMethod_is_encrypted_response_id
(self, response_id: str)
litellm/proxy/hooks/responses_id_security.py:314
↓ 9 callersMethod_judged_shadow_row
(self, router: MagicMock, shadow_params: dict | None = None)
tests/unit/integrations/test_shadow_eval_logger.py:1758
↓ 9 callersFunction_key_spend
(replica: Gateway, key: str)
tests/integration/spend/test_background_interaction_settlement.py:387
↓ 9 callersFunction_keys
(wire: Wire)
tests/integration/sdk/test_router_concurrent_deployment_delete_sdk.py:163
↓ 9 callersMethod_kwargs
(self)
tests/unit/integrations/test_opentelemetry.py:6168
← previousnext →7,501–7,600 of 202,479, ranked by callers