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
↓ 4 callers
Function
_fake_oci_regions
(endpoint_for=None)
tests/unit/llms/oci/test_oci_common_utils.py:374
↓ 4 callers
Function
_fake_prisma_with_jwt_key_mapping
Every ``find_first`` call (issuer-scoped or global fallback) resolves the same way.
tests/unit/proxy/auth/test_user_api_key_auth_request_flow.py:12167
↓ 4 callers
Function
_fake_proxy_server
A stand-in litellm.proxy.proxy_server module exposing general_settings. The real proxy_server pulls in heavy optional deps that may be absent in
tests/unit/llms/anthropic/messages/test_advisor_orchestration.py:610
↓ 4 callers
Function
_fake_request_with_scheme
A fuller fake Request than ``_fake_request``: adds ``url``, ``headers`` and ``client``, which ``IPAddressUtils.is_request_https`` reads directly i
tests/unit/proxy/management_endpoints/test_saml_sso.py:774
↓ 4 callers
Function
_fal_target
(endpoint: str)
litellm/proxy/pass_through_endpoints/llm_passthrough_endpoints.py:516
↓ 4 callers
Function
_fallback_body
(model: str, fallback_models: list[str], fallback_type: str = "general")
tests/integration/management/test_fallback_management_public_names.py:74
↓ 4 callers
Method
_fan_out
( operator: InMemorySpanExporter, exporters: Mapping[str, InMemorySpanExporter], defau
tests/unit/integrations/otel/test_otel_v2_destinations.py:5122
↓ 4 callers
Method
_fetch_issuer_anchored_oauth_metadata
RFC 8414 issuer-anchored discovery for the OAuth endpoints, with resource-driven scopes. Fetch authorization-server metadata from the admin-c
litellm/proxy/mcp_server/mcp_server_manager.py:5433
↓ 4 callers
Method
_fetch_run
(run_id: str, client: AsyncHTTPHandler | None = None)
litellm/proxy/pass_through_endpoints/llm_provider_handlers/tinyfish_passthrough_logging_handler.py:300
↓ 4 callers
Function
_fetched_for
(credential: str)
tests/integration/mcp/test_mcp_credentials.py:498
↓ 4 callers
Function
_field
(container: object, name: str)
litellm/llms/gemini/google_genai/guardrail_translation/handler.py:38
↓ 4 callers
Function
_field
(body: JsonValue, *path: str)
tests/integration/routing/test_prompt_cache_pin_memory_routes.py:75
↓ 4 callers
Function
_fields
(value: object)
litellm/llms/sagemaker/common_utils.py:112
↓ 4 callers
Function
_file_fields
(parts: tuple[Message, ...])
tests/integration/providers/test_files_batches_wire.py:154
↓ 4 callers
Function
_filter_embed_params
Map and filter optional_params to only include Gemini embedding fields.
litellm/llms/vertex_ai/gemini_embeddings/batch_embed_content_transformation.py:382
↓ 4 callers
Function
_filtered_response_headers
What the edge stores and serves: the provider's headers minus hop-by-hop and volatile entries. Framing headers are in that set, so a stored header
tests/e2e/provider_edge.py:658
↓ 4 callers
Method
_final_drain
(self)
litellm/integrations/newrelic/newrelic_metrics.py:292
↓ 4 callers
Method
_find_deployments_on_same_encryption_boundary
Deployments in ``healthy_deployments`` sharing the originating deployment's encryption boundary, alongside the originating de
litellm/router_utils/pre_call_checks/encrypted_content_affinity_check.py:409
↓ 4 callers
Method
_find_pattern_spans
Return all match spans for a pattern, applying contextual rules if required.
litellm/proxy/guardrails/guardrail_hooks/litellm_content_filter/content_filter.py:965
↓ 4 callers
Function
_findings
(directory)
tests/unit/test_assert_workflow_dir_hygiene.py:84
↓ 4 callers
Function
_finish
(index: int, **fields)
tests/unit/proxy/pass_through_endpoints/test_injected_stream_usage.py:29
↓ 4 callers
Function
_finish_connect_page
(response, scoped_server=None)
tests/unit/proxy/mcp_server/test_gateway_dcr_flow.py:1104
↓ 4 callers
Method
_finish_even_if_cancelled
( self, request: Coroutine[object, object, _EngineResponseT], abandoned: Callable[[_En
litellm/proxy/db/prisma_client.py:147
↓ 4 callers
Function
_finish_reasons
(chunks: Iterable[dict[str, JsonValue]])
tests/integration/providers/test_bedrock_converse_stream_event_frames_wire.py:251
↓ 4 callers
Function
_finish_reasons
(frames: Sequence[Mapping[str, JsonValue]])
tests/integration/providers/test_google_genai_vertex_routes_wire.py:201
↓ 4 callers
Function
_fire_proxy_failure
(logger: PrometheusLogger, model: str)
tests/unit/integrations/test_prometheus_requested_model_cardinality.py:94
↓ 4 callers
Function
_fireworks_wildcard_rows
(client: TestClient)
tests/unit/proxy/proxy_server/test_routes_model_info.py:1077
↓ 4 callers
Function
_first
(body: Mapping[str, JsonValue], name: str)
tests/integration/spend/test_key_metadata_recovery_dropped_connection.py:163
↓ 4 callers
Function
_first_ok
First successful call on a fresh key, which opens the rate-limit window; `sent_at` is captured just before the winning send, so the window opened
tests/e2e/quota_management/ratelimit/test_rate_limit_e2e.py:144
↓ 4 callers
Function
_first_turn
(messages: JsonValue)
tests/integration/messages_endpoint/test_tool_result_text_wire.py:471
↓ 4 callers
Function
_fix_model_name
We normalize some model names to others
litellm/litellm_core_utils/token_counter.py:1429
↓ 4 callers
Function
_flagged_armor_response
()
tests/unit/proxy/guardrails/guardrail_hooks/test_model_armor.py:4945
↓ 4 callers
Function
_flatten_resolved_mcp_server_ids
( identifier_to_server_ids: dict[str, set[str]], )
litellm/proxy/management_helpers/object_permission_utils.py:443
↓ 4 callers
Function
_fleet
(scenario: Scenario)
tests/integration/caching/test_response_cache_chaos.py:154
↓ 4 callers
Function
_flush
(writer: DBSpendUpdateWriter, client: PrismaClient)
tests/integration/database/test_spendlogs_ledger_parity.py:1285
↓ 4 callers
Method
_flush_digest_buckets
Flush any digest buckets whose interval has expired. For each expired bucket, formats a digest summary message and appends it to the
litellm/integrations/SlackAlerting/slack_alerting.py:1613
↓ 4 callers
Function
_fold_by_date
(rows: Sequence[GatewayRouteActivity])
litellm/proxy/management_endpoints/gateway_request_endpoints.py:43
↓ 4 callers
Function
_fold_by_route
(rows: Sequence[GatewayRouteActivity])
litellm/proxy/management_endpoints/gateway_request_endpoints.py:55
↓ 4 callers
Function
_forget_db_health_cache
()
tests/unit/proxy/health_endpoints/test_health_endpoints.py:3491
↓ 4 callers
Method
_forget_miss
(key: str)
litellm/redis/stores/auth_cache/__init__.py:143
↓ 4 callers
Function
_forget_old_package
(monkeypatch: pytest.MonkeyPatch)
tests/unit/llms/anthropic/pass_through/test_pass_through_shim.py:11
↓ 4 callers
Function
_form
(**fields: str)
litellm/proxy/client/cli/commands/pkce_login.py:262
↓ 4 callers
Function
_format_duration
(seconds: float)
tests/rust-python-harness/shared/reporting/ui.py:39
↓ 4 callers
Function
_format_responses_sse_chunk
(chunk: object)
litellm/proxy/proxy_server.py:10560
↓ 4 callers
Method
_forward_bedrock
( self, payloads: tuple[str, ...], guardrail: BlockedWordGuardrail, client_aud
tests/unit/llms/bedrock/realtime/test_bedrock_realtime_handler.py:1903
↓ 4 callers
Function
_forward_kwargs
(kwargs: dict)
litellm/sandbox/main.py:47
↓ 4 callers
Function
_forwarded_ga_session_updates
Run a GA client's session.updates through a transcript-guardrailed proxy and return the forwarded sessions.
tests/unit/litellm_core_utils/test_realtime_streaming.py:5680
↓ 4 callers
Method
_forwarded_projects
(cls, resource: Resource | None = None)
tests/unit/integrations/otel/test_otel_v2_destinations.py:5709
↓ 4 callers
Function
_frame
(event_type: str, payload: Mapping[str, JsonValue])
tests/integration/providers/test_bedrock_converse_stream_event_frames_wire.py:74
↓ 4 callers
Function
_frames
(response: httpx.Response)
tests/integration/providers/test_google_genai_vertex_routes_wire.py:195
↓ 4 callers
Function
_free_ollama_deployment
(model_name: str)
tests/unit/test_router/test_router.py:2409
↓ 4 callers
Function
_fresh
A scripted outcome raising a new exception per call: the core stamps num_retries on the instance it saw.
tests/unit/test_router/core/test_registry_changesets.py:31
↓ 4 callers
Function
_full_access_key
(scenario: Scenario, **fields: JsonValue)
tests/integration/management/test_key_default_allowed_routes.py:103
↓ 4 callers
Function
_function
(name: str, description: str = "run it")
tests/unit/responses/test_additional_tools.py:68
↓ 4 callers
Function
_function_calls
(response: Response)
tests/e2e/llm_translation/test_responses_e2e.py:148
↓ 4 callers
Function
_ga_session_update
( rate: int = 24_000, turn_detection: str | None = "server_vad", language: str | None = "en", model: str =
tests/unit/llms/vertex_ai/audio_transcription/test_vertex_ai_realtime_transformation.py:48
↓ 4 callers
Function
_gate
Drive the real route gate for a non-proxy-admin caller. Reports "allowed" when the gate lets the request through to its handler, and the deni
tests/unit/proxy/auth/test_route_checks.py:4229
↓ 4 callers
Function
_gate_stubs
Patch the gate's downstream dispatch targets so config selection can be observed without making a network call. Returns ``(captured, translat
tests/unit/llms/anthropic/messages/native/test_anthropic_messages_handler.py:915
↓ 4 callers
Function
_gateway_authenticator
()
tests/unit/llms/chatgpt/chat/test_chatgpt_chat_transformation.py:12
↓ 4 callers
Method
_gauge_value
(self, team_id, team_alias)
tests/unit/integrations/test_prometheus_user_team_metrics.py:1379
↓ 4 callers
Function
_gcs_download_mock
A fake GCS `alt=media` endpoint that serves the object one raw chunk at a time, recording the request and how many chunks the consumer has pulled
tests/unit/llms/vertex_ai/files/test_vertex_ai_files_streaming.py:822
↓ 4 callers
Function
_gcs_logger_storing_payload_on
(stored_date: str | None, monkeypatch: pytest.MonkeyPatch)
tests/unit/integrations/gcs_bucket/test_gcs_bucket.py:119
↓ 4 callers
Function
_gcs_media_url
(object_name: str)
tests/unit/llms/vertex_ai/files/test_transformation.py:39
↓ 4 callers
Function
_gemini_answer
()
tests/unit/llms/vertex_ai/gemini/test_thought_signature_in_tool_call_id.py:344
↓ 4 callers
Function
_gemini_batch_output_row
()
tests/unit/enterprise/proxy/hooks/test_managed_files.py:6334
↓ 4 callers
Function
_gemini_speech_config_wrapper
(value: Mapping[str, object])
litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py:458
↓ 4 callers
Method
_gen_ai_operation_name
Map a LiteLLM ``call_type`` to spec ``gen_ai.operation.name``. Substring match (e.g. ``aembedding`` -> ``embeddings``); defaults to `
litellm/integrations/opentelemetry_utils/gen_ai_semconv.py:148
↓ 4 callers
Function
_general_settings_ui_litellm_default
The value a field falls back to when it is cleared or reset.
litellm/proxy/proxy_server.py:21173
↓ 4 callers
Function
_generate_es256_pem
()
tests/unit/proxy/credential_endpoints/test_endpoints.py:737
↓ 4 callers
Function
_generate_stable_operation_id
(route: "APIRoute")
litellm/proxy/proxy_server.py:2053
↓ 4 callers
Function
_generating
(provider: _Provider)
tests/integration/providers/test_anthropic_count_tokens_system_lift_wire.py:598
↓ 4 callers
Function
_generic_sso_callback_request
()
tests/unit/proxy/management_endpoints/test_ui_sso.py:9747
↓ 4 callers
Function
_generic_sso_jwt_handler
()
tests/unit/proxy/management_endpoints/test_ui_sso.py:9763
↓ 4 callers
Function
_get
(url)
tests/unit/proxy/client/cli/test_pkce_login.py:120
↓ 4 callers
Function
_get_a2a_client_agent_card
(a2a_client: "A2AClientType")
litellm/a2a_protocol/main.py:247
↓ 4 callers
Method
_get_access_token
Acquire or return cached OAuth2 token via client_credentials grant.
litellm/proxy/guardrails/guardrail_hooks/microsoft_purview/base.py:107
↓ 4 callers
Function
_get_all_migrations
Return (migration_name, sql_content) pairs for all migrations.
tests/unit/litellm_proxy_extras/test_litellm_proxy_extras_utils.py:280
↓ 4 callers
Method
_get_aws_region_from_model_arn
(self, model: str | None)
litellm/llms/bedrock/base_aws_llm.py:489
↓ 4 callers
Method
_get_batch_job_status_from_vertex_ai_batch_response
Gets the batch job status from the Vertex AI Batch response ref: https://cloud.google.com/vertex-ai/docs/reference/rest/v1/JobState
litellm/llms/vertex_ai/batches/transformation.py:330
↓ 4 callers
Function
_get_budget_metrics_per_request_timeout
()
litellm/integrations/prometheus.py:350
↓ 4 callers
Method
_get_cache_key
( self, custom_llm_provider: str | None, litellm_params: LiteLLM_Params | None, )
litellm/utils.py:9028
↓ 4 callers
Method
_get_call_semaphore
(self, mcp_server: MCPServer)
litellm/proxy/mcp_server/mcp_server_manager.py:6405
↓ 4 callers
Function
_get_caller_byok_team_scope
Return the team IDs whose BYOK rows the caller is allowed to see via `/v2/model/info` search results. `None` means "no scoping" — used f
litellm/proxy/proxy_server.py:16900
↓ 4 callers
Method
_get_client
Get or create the underlying A2A client.
litellm/a2a_protocol/client.py:69
↓ 4 callers
Function
_get_client_requested_model_for_streaming
Prefer the original client-requested model (pre-alias mapping) when available. Pre-call processing can rewrite `request_data["model"]` for a
litellm/proxy/proxy_server.py:10206
↓ 4 callers
Function
_get_config
(provider: str)
litellm/sandbox/main.py:40
↓ 4 callers
Method
_get_config_from_file
Given a config file path, load the config from the file. Args: config_file_path (str): path to the config file Re
litellm/proxy/proxy_server.py:6023
↓ 4 callers
Method
_get_configured_s3_bucket_name
(self, litellm_params: Mapping[str, object])
litellm/llms/bedrock/files/handler.py:70
↓ 4 callers
Method
_get_connector
Get or create a connector for the client session.
litellm/llms/custom_httpx/aiohttp_handler.py:75
↓ 4 callers
Method
_get_credentials_to_use_for_request
Handles key/team based logging If standard_callback_dynamic_params are provided, use those credentials. Otherwise, use the
litellm/integrations/langsmith.py:493
↓ 4 callers
Function
_get_current_session
()
litellm/proxy/mcp_server/server.py:3229
↓ 4 callers
Method
_get_custom_logger_key
Get a unique key for a custom logger that considers only fundamental instance variables Returns: str: A unique key combi
litellm/litellm_core_utils/logging_callback_manager.py:338
↓ 4 callers
Method
_get_default_env_variable_name_passthrough_endpoint
( custom_llm_provider: str, )
litellm/proxy/pass_through_endpoints/passthrough_endpoint_router.py:422
↓ 4 callers
Method
_get_deployment_credentials
( self, custom_llm_provider: str, region_name: str | None, include_team_deploy
litellm/proxy/pass_through_endpoints/passthrough_endpoint_router.py:161
↓ 4 callers
Function
_get_email_settings
Helper function to get email settings from general_settings in db
enterprise/litellm_enterprise/enterprise_callbacks/send_emails/endpoints.py:26
↓ 4 callers
Function
_get_embedding_url
Get URL for embedding models. Handles special patterns: - bge/endpoint_id -> strips to endpoint_id for endpoints/ routing - numeric
litellm/llms/vertex_ai/common_utils.py:517
↓ 4 callers
Method
_get_engine_pid
Get the PID of the writer's engine subprocess, or 0 if unavailable. Must never raise: prisma's ``_engine`` property raises ``ClientNo
litellm/proxy/utils.py:7134
↓ 4 callers
Method
_get_event_and_event_message
Get the event and event message for a budget alert This will append any new information to the event_message Handles Max Bu
litellm/integrations/SlackAlerting/slack_alerting.py:631
↓ 4 callers
Function
_get_exact_count_function
Get the function to count tokens based on the model and custom tokenizer.
litellm/litellm_core_utils/token_counter.py:1220
↓ 4 callers
Method
_get_explicit_output_cap
(data: object, call_type: str | None)
litellm/proxy/hooks/parallel_request_limiter_v3.py:841
← previous
next →
17,901–18,000 of 202,479, ranked by callers