Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BerriAI/litellm
/ functions
Functions
202,479 in github.com/BerriAI/litellm
⨍
Functions
202,479
◇
Types & classes
26,341
↳
Endpoints
5,595
↓ 5 callers
Method
_is_assembled_stream_success
Final assembled stream export (not a per-chunk success call). Per-chunk callers pass a ``ModelResponseStream`` (or ``None``); the fin
litellm/litellm_core_utils/litellm_logging.py:2536
↓ 5 callers
Function
_is_billed
(litellm_metadata: Mapping[str, object])
tests/unit/proxy/common_utils/test_check_responses_cost.py:177
↓ 5 callers
Function
_is_classifier_timeout
(exc: BaseException)
litellm/router_strategy/complexity_router/complexity_router.py:1322
↓ 5 callers
Function
_is_databricks_agent
(litellm_params: Mapping[str, object])
litellm/proxy/agent_endpoints/databricks_oauth.py:98
↓ 5 callers
Method
_is_entity_within_model_budget
( self, entity_type: Litellm_EntityType, entity_id: str | None, team_id: str |
litellm/proxy/hooks/model_max_budget_limiter.py:1032
↓ 5 callers
Function
_is_form_content_type
True iff Starlette's ``request.form()`` will actually parse this body. Substring matching ``"form"`` is unsafe: ``request.form()`` returns e
litellm/proxy/common_utils/http_parsing_utils.py:104
↓ 5 callers
Function
_is_gateway_enabled
()
litellm/proxy/anthropic_endpoints/gateway_endpoints.py:129
↓ 5 callers
Function
_is_gateway_route
Keep the route on the gateway if its path is in the LLM data-plane surface. Prometheus registers /metrics as a Mount (``app.mount("/metrics", mak
gateway/main.py:39
↓ 5 callers
Function
_is_generate
(request: Request)
tests/integration/providers/test_custom_prompt_template_chaos.py:130
↓ 5 callers
Function
_is_generate
(request: Request)
tests/integration/providers/test_ollama_prompt_tools_chaos.py:189
↓ 5 callers
Function
_is_invoke_stream_endpoint
(endpoint: str)
litellm/llms/bedrock/passthrough/guardrail_translation/handler.py:75
↓ 5 callers
Function
_is_list
(value: object)
litellm/router_rust/steps/precall.py:202
↓ 5 callers
Function
_is_mcp_access_group_cached
Return True if *name* is a known MCP access group tag. Positive results are cached for the configured management-object TTL (``get_management
litellm/proxy/proxy_server.py:22835
↓ 5 callers
Function
_is_object_list
(value: object)
litellm/proxy/guardrails/guardrail_hooks/headroom/headroom.py:99
↓ 5 callers
Method
_is_output_file_gone_at_provider
A 404 naming the output file means there is nothing to fetch on this or any later poll: providers like Vertex AI advertise an output path for
enterprise/litellm_enterprise/proxy/common_utils/check_batch_cost.py:405
↓ 5 callers
Method
_is_preformatted_cached_chat_stream
(result: object)
litellm/completion_extras/litellm_responses_transformation/handler.py:55
↓ 5 callers
Function
_is_restricted_virtual_key_request
Best-effort detection for route-restricted virtual keys. We treat a requestor as a "restricted" virtual key if `allowed_routes` is a
litellm/proxy/management_endpoints/mcp_management_endpoints.py:782
↓ 5 callers
Function
_is_team_key
(data: GenerateKeyRequest | LiteLLM_VerificationToken)
litellm/proxy/management_endpoints/key_management_endpoints.py:594
↓ 5 callers
Function
_is_telemetry_request
(request)
tests/_vcr_conftest_common.py:484
↓ 5 callers
Function
_is_trusted_search_api_base
( caller_api_base: str, default_api_base: str | None, base_env_var: str | None, )
litellm/llms/base_llm/search/transformation.py:36
↓ 5 callers
Function
_issue_from
(responses: Sequence[FakeResponse])
tests/e2e_harness/test_e2e_http.py:56
↓ 5 callers
Function
_issued_token
(issued: dict[str, object])
tests/integration/mcp/test_mcp_oauth_flows.py:92
↓ 5 callers
Function
_items
(value: object)
litellm/router_rust/surface/indexes.py:485
↓ 5 callers
Method
_iter_metadata_dicts
Return all metadata dicts available on the request. Depending on the endpoint, Router may populate `metadata` or `litellm_metadata`.
litellm/router_utils/pre_call_checks/deployment_affinity_check.py:285
↓ 5 callers
Function
_iter_openai_jsonl_entries
( openai_file_content: FileTypes, )
litellm/llms/vertex_ai/files/transformation.py:985
↓ 5 callers
Function
_join_upload_body
Materialize a transform result's upload body for byte-level assertions.
tests/unit/llms/vertex_ai/files/test_vertex_ai_files_streaming.py:63
↓ 5 callers
Function
_joined_choice
(parts: tuple[str, ...])
litellm/integrations/otel/model/payloads.py:865
↓ 5 callers
Function
_json
A view's contents as router-core takes them: plain JSON, a set as a list. A caller wrote them, so a cycle is possible: anything nested past ``DEFA
litellm/router_rust/surface/indexes.py:68
↓ 5 callers
Function
_json
(value: object)
tests/integration/observability/test_guardrail_stream_scope_matrix.py:60
↓ 5 callers
Function
_json_contains_exact_string
(value: JsonValue, expected: str)
tests/integration/observability/_logging_only_scope_support.py:937
↓ 5 callers
Function
_json_object
(value: object)
litellm/litellm_core_utils/realtime_streaming.py:236
↓ 5 callers
Function
_json_reply
(body: dict[str, JsonValue], status: int = 200)
tests/integration/security/test_files_batches_access.py:110
↓ 5 callers
Function
_json_reply
(body: Mapping[str, JsonValue], status: int = 200)
tests/integration/management/test_vector_store_file_list_managed_ids.py:82
↓ 5 callers
Function
_json_request
(body: dict, headers: dict[str, str])
tests/unit/proxy/ocr_endpoints/test_endpoints.py:28
↓ 5 callers
Function
_json_tool_call
(arguments: object)
tests/unit/llms/anthropic/chat/test_anthropic_chat_transformation.py:8327
↓ 5 callers
Function
_jsonl
(model: str)
tests/integration/providers/test_files_batches_wire.py:54
↓ 5 callers
Function
_keep_window_days
Keep source rows whose UTC `date` falls on a day the window touches; each kept day is then uploaded whole.
litellm/integrations/ternary/export_engine.py:130
↓ 5 callers
Method
_key_and_team_servers
(self, key_servers, team_servers)
tests/unit/proxy/mcp_server/auth/test_user_api_key_auth_mcp.py:10659
↓ 5 callers
Function
_key_fingerprint_matcher
(r1, r2)
tests/_vcr_conftest_common.py:998
↓ 5 callers
Function
_key_permission_and_budget_ids
(key: str)
tests/integration/management/test_project_lifecycle.py:74
↓ 5 callers
Function
_keychain_not_cleared_note_path
()
litellm/litellm_core_utils/cli_token_utils.py:318
↓ 5 callers
Function
_keys_posted_to
(requests: Sequence[Request], suffix: str)
tests/integration/routing/test_batch_mode_deployments_wire.py:230
↓ 5 callers
Function
_known_user
(email: str = "known@example.com")
tests/unit/proxy/auth/test_login_utils.py:716
↓ 5 callers
Function
_kwargs_with_a_budget_reservation
(reservation: dict)
tests/unit/rust_bridge/host/test_callbacks_legacy_python.py:100
↓ 5 callers
Function
_labels
(count: int)
tests/integration/providers/test_realtime_unguarded_voice_turns.py:751
↓ 5 callers
Function
_last_user_text
(operation: str, messages: Sequence[Mapping[str, JsonValue]])
litellm/llms/scaledown/chat/transformation.py:297
↓ 5 callers
Function
_leaks
(posted: tuple[_Posted, ...])
tests/integration/sdk/test_router_include_fallback_errors_wire.py:132
↓ 5 callers
Function
_ledger_client
(parity_database: str, monkeypatch: pytest.MonkeyPatch)
tests/integration/database/test_spendlogs_ledger_parity.py:1247
↓ 5 callers
Function
_legacy_replacement
(*texts, tool_calls=None)
tests/unit/proxy/policy_engine/test_pipeline_executor.py:1668
↓ 5 callers
Function
_limits
(body: Mapping[str, JsonValue])
tests/integration/providers/test_bedrock_mantle_output_limit_wire.py:287
↓ 5 callers
Function
_list_and_call
( gateway: Gateway, client: str, path: str, key: str, name: str, arguments: Mapping[str, object] )
tests/integration/mcp/test_mcp_transports.py:56
↓ 5 callers
Function
_list_files
(body: object)
tests/unit/llms/manus/files/test_transformation.py:16
↓ 5 callers
Function
_list_items
(value: object)
litellm/proxy/guardrails/guardrail_hooks/ovalix/ovalix_extraction.py:31
↓ 5 callers
Function
_listed_model
(gateway: Gateway, model: str)
tests/integration/pricing/test_model_listing_token_limits.py:93
↓ 5 callers
Function
_litellm_params
(**overrides)
tests/unit/proxy/guardrails/guardrail_hooks/test_decision_model.py:631
↓ 5 callers
Method
_live_exporter_threads
(self)
tests/unit/integrations/test_opentelemetry.py:6893
↓ 5 callers
Function
_live_instances_named
(name: str)
tests/unit/proxy/guardrails/test_guardrail_registry.py:229
↓ 5 callers
Function
_live_narrowed_model_ids
( model_list: Sequence[Mapping[str, object]], user_api_key_dict: UserAPIKeyAuth, model: str | None
tests/unit/proxy/health_endpoints/test_health_endpoints.py:4128
↓ 5 callers
Function
_llm_call
()
tests/unit/proxy/proxy_server/test_routes_audio.py:67
↓ 5 callers
Method
_load_skill
Cache-first read of the Prisma skill row. Owner-scope filtering happens on the cached row, so the cache is per-skill not per-caller.
litellm/llms/litellm_proxy/skills/handler.py:153
↓ 5 callers
Function
_loaded_tool
()
tests/integration/providers/test_responses_bridge_tool_search_undeferred_wire.py:91
↓ 5 callers
Function
_localhost_error
()
tests/unit/a2a_protocol/test_a2a_exception_mapping_utils.py:12
↓ 5 callers
Function
_lock_manager
(redis_cache, acquired)
tests/unit/proxy/proxy_server/test_background_health.py:248
↓ 5 callers
Function
_log_call
( guardrail: ContentFilterGuardrail, prompt: str | list[Mapping[str, object]], answer: Message,
tests/unit/proxy/guardrails/guardrail_hooks/litellm_content_filter/test_content_filter.py:1861
↓ 5 callers
Function
_logged_fields
(value: object)
litellm/integrations/prometheus.py:277
↓ 5 callers
Function
_logged_request
(logging_obj: Logging)
tests/unit/decisions/test_call.py:38
↓ 5 callers
Function
_logged_request_messages
(original_function: str, *args: object, **kwargs: object)
tests/unit/test_utils.py:8633
↓ 5 callers
Method
_logger
(self, transport_handler, tenant_id=None)
tests/unit/integrations/test_langsmith_init.py:227
↓ 5 callers
Method
_logger
(self)
tests/unit/integrations/test_langsmith_init.py:398
↓ 5 callers
Function
_logger_with_mock_virtual_key_gauges
()
tests/unit/integrations/test_prometheus_rate_limit_labels.py:335
↓ 5 callers
Method
_logging
()
tests/unit/llms/bedrock/realtime/test_bedrock_realtime_transformation.py:954
↓ 5 callers
Function
_logging_obj
(call_id: str = "call-fal")
tests/unit/proxy/pass_through_endpoints/llm_provider_handlers/test_fal_ai_passthrough_logging_handler.py:20
↓ 5 callers
Function
_logging_obj
(call_type: str)
tests/unit/proxy/guardrails/guardrail_hooks/test_singulr.py:44
↓ 5 callers
Function
_logging_obj
(litellm_call_id: str, mcp_session_id: str | None = None)
tests/unit/proxy/guardrails/guardrail_hooks/test_agent_365.py:89
↓ 5 callers
Function
_logging_obj
(call_type: str)
tests/unit/decisions/test_call.py:26
↓ 5 callers
Method
_logging_obj
()
tests/unit/proxy/test_common_request_processing.py:12957
↓ 5 callers
Method
_logging_obj_with
(callbacks)
tests/unit/llms/custom_httpx/test_llm_http_handler.py:3568
↓ 5 callers
Function
_logging_obj_with_search_failures
()
tests/unit/integrations/vector_store_integrations/test_vector_store_pre_call_hook.py:482
↓ 5 callers
Function
_logging_only_akto
( post: AsyncMock, unreachable_fallback: Literal["fail_closed", "fail_open"] = "fail_closed" )
tests/unit/proxy/guardrails/guardrail_hooks/akto/test_akto.py:1880
↓ 5 callers
Function
_lookup
(result: AgentAccess | Exception)
tests/unit/proxy/agent_endpoints/auth/test_agent_permission_handler.py:47
↓ 5 callers
Function
_lookup_end_user_and_apply_budget
Look up end_user from DB and apply budget limits to valid_token.
litellm/proxy/auth/user_api_key_auth.py:4817
↓ 5 callers
Function
_make_admin_auth
(role: LitellmUserRoles = LitellmUserRoles.PROXY_ADMIN)
tests/unit/proxy/management_endpoints/test_mcp_management_endpoints.py:6007
↓ 5 callers
Function
_make_admin_key_dict
()
tests/unit/proxy/management_endpoints/test_key_management_endpoints.py:11012
↓ 5 callers
Method
_make_app_with_auth
(self, auth_fn)
tests/unit/proxy/management_endpoints/test_workflow_management_endpoints.py:645
↓ 5 callers
Function
_make_arize_phoenix_logger
Create an ``arize_phoenix`` callback backed by an in-memory exporter. ArizePhoenixLogger._init_tracing creates its own TracerProvider, so we
tests/unit/integrations/arize/test_arize_otel_coexistence.py:41
↓ 5 callers
Function
_make_client
(handler)
tests/unit/proxy/middleware/test_security_headers_middleware.py:19
↓ 5 callers
Function
_make_custom_stream_wrapper
Build a minimal CustomStreamWrapper for testing.
tests/unit/litellm_core_utils/test_max_streaming_duration.py:24
↓ 5 callers
Function
_make_grandfather_fixtures
Mock prisma client plus the key's existing object permission row.
tests/unit/proxy/management_helpers/test_object_permission_utils.py:1414
↓ 5 callers
Function
_make_guardrail
(yaml_filename: str, category_name: str)
tests/unit/proxy/guardrails/guardrail_hooks/litellm_content_filter/test_content_filter.py:680
↓ 5 callers
Function
_make_guardrail_sg_pdpa
Create a ContentFilterGuardrail from a YAML policy template file.
tests/unit/proxy/guardrails/guardrail_hooks/litellm_content_filter/test_content_filter.py:1223
↓ 5 callers
Method
_make_handler
(self)
tests/unit/llms/bedrock/count_tokens/test_bedrock_count_tokens_handler.py:89
↓ 5 callers
Function
_make_header_iterator
( *, headers: dict, config: Mock, logging_obj: LiteLLMLoggingObj, )
tests/unit/responses/test_streaming_iterator.py:1005
↓ 5 callers
Method
_make_hook
Return a ManagedFiles instance with prisma_client mocked.
tests/unit/llms/test_file_search_responses.py:330
↓ 5 callers
Function
_make_httpx_response
(body: dict)
tests/unit/llms/gigachat/passthrough/test_gigachat_passthrough_transformation.py:57
↓ 5 callers
Function
_make_image_response
Helper to build a minimal ImageResponse for tests.
tests/unit/proxy/hooks/test_image_generation_guardrails.py:28
↓ 5 callers
Function
_make_invite
Build a fake invitation object with the attributes the handler reads.
tests/unit/proxy/proxy_server/test_routes_onboarding.py:28
↓ 5 callers
Method
_make_iterator
(self)
tests/unit/responses/litellm_completion_transformation/test_litellm_completion_responses.py:5630
↓ 5 callers
Function
_make_keepalive_resolver
Wrap `_resolve_keepalive_seconds` with a memo keyed on the serving deployment's model_id. The steady-state case (no mid-stream fallback, the o
litellm/proxy/proxy_server.py:10756
↓ 5 callers
Function
_make_keyword_filter
(recorded_inputs, top_k: int = 3)
tests/unit/proxy/mcp_server/test_semantic_tool_filter.py:2003
↓ 5 callers
Method
_make_logging_obj
(self)
tests/unit/llms/vertex_ai/gemini/test_vertex_and_google_ai_studio_gemini.py:7238
← previous
next →
14,501–14,600 of 202,479, ranked by callers