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
↓ 7 callers
Function
safe_join
Join path components and verify the result stays within base_dir. Resolves symlinks and '..' sequences, then checks the final path is a
litellm/litellm_core_utils/path_utils.py:13
↓ 7 callers
Function
sanitize_prometheus_label_value
Same semantics as :func:`_sanitize_prometheus_label_value`, implemented with ``str.translate`` plus a single escape pass instead of chained `
litellm/types/integrations/prometheus.py:48
↓ 7 callers
Method
save_reservation
( self, batch_id: str, reservation: BatchEnqueuedTokenReservation, litellm_par
litellm/proxy/hooks/batch_enqueued_tokens.py:373
↓ 7 callers
Method
scans
(self, guardrail: str, marker: str)
tests/integration/observability/test_bedrock_invoke_stream_post_call_guardrail.py:224
↓ 7 callers
Function
scope
(**overrides)
tests/unit/proxy/hooks/test_prompt_cache_observer.py:84
↓ 7 callers
Method
scope_matches
Check if a policy scope matches the given context. A scope matches if ALL of its fields match: - teams matches context.team_
litellm/proxy/policy_engine/policy_matcher.py:56
↓ 7 callers
Function
scoped_edge_base
(base: str, test_key: str)
tests/e2e/provider_cache.py:64
↓ 7 callers
Function
screen_login_password_for_breach
Screens a successfully verified login password against HIBP, stamps ``password_reset_required`` when breached, and returns whether a breach was
litellm/proxy/auth/login_utils.py:78
↓ 7 callers
Function
scripted
( ops: &'static [&'static str], outcome: Result<(), TestError>, )
litellm-rust/crates/host-native/tests/driver.rs:509
↓ 7 callers
Function
scripted_actions
(server: &MockServer, actions: Vec<Action>)
litellm-rust/crates/secrets-aws/tests/secret_manager/support.rs:34
↓ 7 callers
Function
scripted_message
(identity: str, **extra: JsonValue)
tests/integration/messages_endpoint/safeguards/test_safeguard_results_native.py:46
↓ 7 callers
Function
seal_passthrough_authorization_code
Seal the upstream authorization code together with the ephemeral DCR client that authorized it. Encrypted with the same authenticated symmetric he
litellm/proxy/mcp_server/discoverable_endpoints.py:409
↓ 7 callers
Function
search_agents
( query: str, agents: Sequence[AgentResponse], top_k: int, router: Router | None, embeddin
litellm/proxy/agent_endpoints/agent_search.py:133
↓ 7 callers
Method
search_call
(arguments: str, status: Literal["in_progress", "completed"])
tests/unit/llms/openai/responses/test_openai_responses_guardrail_handler.py:2769
↓ 7 callers
Function
seeded_batch
( store: FakeManagedBatchStore, status: Literal["in_progress", "completed"], age: timedelta = timedelta(0)
tests/unit/proxy/batches_endpoints/test_litellm_executed_batches.py:418
↓ 7 callers
Function
select
(requested: tuple[str, ...], group_files: tuple[str, ...])
tests/integration/run.py:54
↓ 7 callers
Function
selectOption
(labelText: string, optionText: string)
ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/testUtils.ts:5
↓ 7 callers
Function
send
(message: Message)
tests/unit/proxy/test_dev_reload.py:186
↓ 7 callers
Method
send
(self, surface: Surface, model: str, role: str | None, marker: str)
tests/integration/routing/test_ptu_shares.py:281
↓ 7 callers
Method
send_alerts_for_hanging_requests
Send alerts for hanging requests
litellm/integrations/SlackAlerting/hanging_request_check.py:89
↓ 7 callers
Function
sent_body
(requests: Sequence[Request], target: str)
tests/integration/messages_endpoint/test_anthropic_messages_caller_tools_wire.py:298
↓ 7 callers
Function
serialize_http_exception_detail
Convert an HTTPException.detail value into (message, structured_fields) for ProxyException / SSE error frames. Dict-detail HTTPException
litellm/proxy/common_request_processing.py:754
↓ 7 callers
Function
serialize_tool_call_arguments
Render tool call arguments as the JSON string tool-call schemas require. Arguments normally arrive already JSON-encoded, but clients and provider
litellm/responses/litellm_completion_transformation/custom_tools.py:87
↓ 7 callers
Function
serve
Serves each public connection with hyper directly, because `axum::serve` cannot configure the connection timeouts uvicorn applied to the same clients.
litellm-rust/crates/gateway-forward/src/server.rs:19
↓ 7 callers
Function
serve_named
( host: &str, responses: Vec<&'static [u8]>, )
litellm-rust/crates/http/src/media.rs:375
↓ 7 callers
Function
server_owned_wif_fields_written
(values: Mapping[str, object])
litellm/types/router.py:533
↓ 7 callers
Method
server_owning_tool_name_prefix
(self, tool_name: str)
litellm/proxy/mcp_server/mcp_server_manager.py:3114
↓ 7 callers
Method
serves_only_on_every_worker
(self, model_name: str, model_id: str)
tests/integration/_support/process.py:300
↓ 7 callers
Function
services
()
litellm-rust/crates/redis-connect/tests/connect.rs:24
↓ 7 callers
Function
session
(script: &str)
litellm-rust/crates/testkit/tests/session.rs:63
↓ 7 callers
Function
session_cookie
(response: &Response)
litellm-rust/crates/gateway-ui/tests/routes.rs:55
↓ 7 callers
Method
set
(self, name: str, value: str, ex: timedelta | None)
tests/unit/caching/test_redis_cache.py:1516
↓ 7 callers
Method
setCursor
(e)
litellm/proxy/_experimental/out/_next/static/chunks/14v3irtjifjt2.js:1
↓ 7 callers
Method
setState
(e)
litellm/proxy/_experimental/out/_next/static/chunks/2_9r2jeem0dh8.js:1
↓ 7 callers
Method
setTime
(e)
litellm/proxy/_experimental/out/_next/static/chunks/085r5ieqhajig.js:1
↓ 7 callers
Function
setToken
(serverId: string, data: TokenInput, userId?: string | null)
ui/litellm-dashboard/src/utils/mcpTokenStore.ts:30
↓ 7 callers
Method
set_cache
(&self, key: &str, value: V, context: &C)
litellm-rust/crates/cache/src/dual.rs:170
↓ 7 callers
Function
set_env_vars
Set mapped env vars from config data. Unsets vars for missing/None/empty fields.
litellm/proxy/management_endpoints/config_override_endpoints.py:248
↓ 7 callers
Function
set_mcp_message_trace_carrier
Stash the current MCP message's propagated trace-context carrier. Returns the reset token; the caller must reset it once the message is handled
litellm/integrations/otel/plumbing/context.py:113
↓ 7 callers
Function
set_names
(response: httpx.Response)
tests/integration/mcp/test_mcp_user_env_vars.py:73
↓ 7 callers
Method
set_response_status_code_attribute
Set OTel-standard ``http.response.status_code`` (int) on the proxy SERVER span. The failure path sets this from the error code in
litellm/integrations/opentelemetry.py:3630
↓ 7 callers
Function
settle
(rig: Rig, request_id: str, marker: Canary)
tests/integration/security/_sinks.py:296
↓ 7 callers
Function
settled
(gateway: Gateway, name: str, wire: Wire, *, accepted: frozenset[int] = frozenset({200}))
tests/integration/providers/_mantle_gpt_prompt_cache_support.py:686
↓ 7 callers
Function
shouldRenderContentFilterConfigSettings
(provider: string | null)
ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/guardrail_info_helpers.tsx:277
↓ 7 callers
Method
should_commit_spend_updates_to_redis
Checks if the Pod should commit spend updates to Redis This setting enables buffering database transactions in Redis to impr
litellm/proxy/db/db_transaction_queue/redis_update_buffer.py:172
↓ 7 callers
Function
should_report_bug
(exc: object)
litellm/litellm_core_utils/bug_report.py:48
↓ 7 callers
Method
should_run_guardrail
(self, data: dict[str, object], event_type: GuardrailEventHooks)
tests/unit/realtime_api/test_main.py:321
↓ 7 callers
Method
should_use_aiohttp_transport
AiohttpTransport is the default transport for litellm. Httpx can be used by the following - litellm.disable_aiohttp_tran
litellm/llms/custom_httpx/http_handler.py:1366
↓ 7 callers
Method
should_use_openai_handler
(model: str)
litellm/llms/vertex_ai/vertex_ai_partner_models/main.py:77
↓ 7 callers
Function
show_router_debug
(host: ScriptedHost)
tests/unit/test_router/core/test_fallbacks.py:48
↓ 7 callers
Function
sign_with_manual_credentials
Sign a request using manually provided OCI credentials (user/fingerprint/tenancy/key).
litellm/llms/oci/common_utils.py:383
↓ 7 callers
Function
signing_key
()
tests/unit/llms/base_llm/auth/test_internal_issuer.py:25
↓ 7 callers
Function
skip
(reason: string)
scripts/comment-fixed-issue.ts:182
↓ 7 callers
Function
sl
()
litellm/proxy/_experimental/out/_next/static/chunks/0_6jqgnorqxl2.js:1
↓ 7 callers
Function
slow_failure
()
tests/unit/proxy/test_common_request_processing.py:11015
↓ 7 callers
Function
source
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 7 callers
Method
span_trace_id
(span)
tests/unit/integrations/test_langfuse.py:155
↓ 7 callers
Function
spend_fixtures
(directory: Path = SPEND_FIXTURES)
scripts/seed_tracing_fixtures.py:89
↓ 7 callers
Function
spend_log_row_with_retained_metadata
( row: Mapping[str, object], fields: SpendLogsMetadataFields | None )
litellm/proxy/spend_tracking/spend_tracking_utils.py:2276
↓ 7 callers
Method
spend_logs_is_partitioned
True when the connected database's LiteLLM_SpendLogs is a partitioned table in Prisma's target schema (the `schema` URL param, falling
litellm-proxy-extras/litellm_proxy_extras/utils.py:678
↓ 7 callers
Function
spend_statuses
(sents: tuple[Sent, ...])
tests/integration/providers/_idle_upstream_support.py:631
↓ 7 callers
Method
split_mcp_tools
( tools: Iterable[Mapping[str, object]] | None, served_names: Callable[[Collection[str]], Awai
litellm/responses/mcp/litellm_proxy_mcp_handler.py:157
↓ 7 callers
Function
sse
(event: str, payload: Mapping[str, JsonValue])
tests/integration/_support/anthropic_sse.py:40
↓ 7 callers
Function
sse_poller_spawned
(logging_obj: LiteLLMLoggingObj)
litellm/proxy/pass_through_endpoints/llm_provider_handlers/tinyfish_passthrough_logging_handler.py:80
↓ 7 callers
Function
stackedUsageColor
(index: number)
ui/litellm-dashboard/src/components/shared/charts/StackedUsageChart.tsx:26
↓ 7 callers
Function
stamp_error
Stamp the full v2 error attribute set on ``span`` and return the resolved ``(error_type, message)`` pair, or ``None`` when the error carries neith
litellm/integrations/otel/emitter.py:120
↓ 7 callers
Function
started_at
(index: int)
tests/integration/_support/daily_activity.py:174
↓ 7 callers
Method
startup_event
Initialize logging and alerting on proxy startup
litellm/proxy/utils.py:2011
↓ 7 callers
Function
statement_timeout_error
The error prisma raises when Postgres cancels a statement under ``statement_timeout`` (SQLSTATE 57014).
tests/unit/proxy/db/fake_prisma_engine.py:48
↓ 7 callers
Method
status
(self)
litellm/proxy/roi_calculator/sync.py:428
↓ 7 callers
Method
status
(&self)
litellm-rust/crates/gateway-forward/src/error.rs:58
↓ 7 callers
Method
store_in_memory_spend_updates_in_redis
Stores the in-memory spend updates to Redis Stores the following in memory data structures in Redis: - SpendUpdateQueue
litellm/proxy/db/db_transaction_queue/redis_update_buffer.py:239
↓ 7 callers
Function
stream
(index: int)
tests/integration/compatibility/test_codex_model_catalog.py:840
↓ 7 callers
Method
stream
(self, key: str, model: str, prompt: str)
tests/e2e/llm_translation/conversational_matrix.py:310
↓ 7 callers
Function
stream_chunk_builder_text_completion
( chunks: Sequence[TextCompletionResponse | ModelResponseStream | Mapping[str, object]], messages: Seq
litellm/litellm_core_utils/streaming_chunk_builder_utils.py:1388
↓ 7 callers
Function
stream_origin
()
litellm-rust/crates/router-core/tests/call_loop.rs:883
↓ 7 callers
Function
stream_tool_use_ids
(raw: bytes)
tests/integration/_support/safeguards_rig.py:370
↓ 7 callers
Function
subject_properties
The declared fields as <property> pairs, plural fields repeated under their singular name
tests/e2e/e2e_metadata.py:464
↓ 7 callers
Method
submit
(self, fn, *args, **kwargs)
tests/unit/litellm_core_utils/test_litellm_logging.py:2440
↓ 7 callers
Function
subscript
(value: object, key: str | int)
litellm/litellm_core_utils/core_helpers.py:207
↓ 7 callers
Function
summarize_observed
(data: ObservedData, manual: Mapping[str, str], ignored: tuple[str, ...] = ())
litellm/proxy/roi_calculator/observed_analytics.py:166
↓ 7 callers
Function
sync_access_groups_for_renamed_model
( prisma_client: object, *, model_id: str, old_name: str, new_name: str, llm_router: R
litellm/proxy/management_helpers/access_group_model_sync.py:101
↓ 7 callers
Method
sync_read_secret
(self, secret_name, optional_params=None, timeout=None, **kwargs)
tests/unit/secret_managers/test_secret_managers_main.py:483
↓ 7 callers
Method
sync_set_cache
Sync internal method to add the result to the cache
litellm/caching/caching_handler.py:1278
↓ 7 callers
Method
sync_tool_policy_from_db
Load all tool policies and object-permission blocked_tools from DB.
litellm/proxy/db/tool_registry_writer.py:423
↓ 7 callers
Function
tagListCall
( accessToken: string, startTime?: Date | null, endTime?: Date | null, )
ui/litellm-dashboard/src/components/networking.tsx:5030
↓ 7 callers
Function
tag_counter
(tag: str)
litellm/redis/stores/spend_counters/types.py:48
↓ 7 callers
Method
target
(&self)
litellm-rust/crates/router-core/src/call/stream.rs:60
↓ 7 callers
Function
team
(id: &str)
litellm-rust/crates/redis-store/tests/auth_cache.rs:131
↓ 7 callers
Function
team_admin_key_edit_verdict
( data: UpdateKeyRequest, existing: LiteLLM_VerificationToken, enabled: bool, )
litellm/proxy/management_endpoints/team_admin_field_permissions.py:591
↓ 7 callers
Function
team_admin_may_create_member_keys
(general_settings: Mapping[str, object])
litellm/proxy/management_endpoints/team_admin_field_permissions.py:203
↓ 7 callers
Function
team_counter
(team_id: str)
litellm/redis/stores/spend_counters/types.py:24
↓ 7 callers
Function
tier_rate
Read a per-token rate from a tier, coercing YAML string costs to float. A rate that is explicitly present wins over the fallback, an explicit zer
litellm/litellm_core_utils/llm_cost_calc/tiered_pricing.py:72
↓ 7 callers
Function
tiers
`primary` at order 1, its second deployment at order 2 when `tiered`, and two other groups.
litellm-rust/crates/router-core/tests/call_loop.rs:173
↓ 7 callers
Function
timeout
()
litellm-rust/crates/secrets-types/tests/context.rs:12
↓ 7 callers
Function
toModeArray
(raw: unknown)
ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/guardrail_info_helpers.tsx:123
↓ 7 callers
Function
to_path
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 7 callers
Method
token_requests
(self)
tests/integration/_support/oauth_server.py:39
↓ 7 callers
Function
tool_call
(name: str, args: dict, call_id: str)
tests/unit/harness/handlers/test_deepagents_handler.py:45
↓ 7 callers
Function
totalUnits
(units: UsageUnits)
ui/litellm-dashboard/src/components/GuardrailsMonitor/usageUnits.ts:12
← previous
next →
11,301–11,400 of 202,479, ranked by callers