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
overwrite_private_json
Rewrite a file that is already there, in place, keeping the mode it was created with. `write_private_json` needs room for a second file and a dir
litellm/litellm_core_utils/private_json.py:63
↓ 4 callers
Function
owned
(keys: &[&str])
litellm-rust/crates/redis-client/src/commands.rs:154
↓ 4 callers
Function
owned_settings_client
( client: GatewayClient, directory: Path, litellm_settings: Mapping[str, JsonValue] )
tests/integration/_support/actors.py:120
↓ 4 callers
Function
owned_wire_names
(root: type)
litellm/types/litellm_params.py:450
↓ 4 callers
Function
owning_picks
(store: _ReservationStore, call_id: str | None)
litellm/router_strategy/least_busy.py:313
↓ 4 callers
Method
owns_wrapped_http_client
Whether litellm may close an SDK client built around ``http_client``. ``_get_async_http_client`` / ``_get_sync_http_client`` hand back
litellm/llms/openai/common_utils.py:355
↓ 4 callers
Function
p
(e)
litellm/proxy/_experimental/out/_next/static/chunks/2s7apn3nfa3q3.js:1
↓ 4 callers
Function
pE
({args:e})
litellm/proxy/_experimental/out/_next/static/chunks/085r5ieqhajig.js:10
↓ 4 callers
Function
paletteScopeForRoute
(routeSegment: string)
ui/litellm-dashboard/src/components/CommandPalette/utils.ts:16
↓ 4 callers
Method
parallel_acquire
( &self, send: Send<'_>, gauges: &[Gauge], slot_ttl: Duration, slot_id
litellm-rust/crates/redis-store/src/rate_limits/mod.rs:157
↓ 4 callers
Function
params
(value: Value)
litellm-rust/crates/llms/src/bedrock/chat/converse_transformation.rs:373
↓ 4 callers
Function
params
(value: Value)
litellm-rust/crates/router-types/tests/litellm_params.rs:8
↓ 4 callers
Function
parity_inputs
()
litellm-rust/crates/auth-aws/src/aws.rs:1033
↓ 4 callers
Function
parked_success
(parked: tuple[object, ...])
litellm/responses/mcp/parked_stream_dispatch.py:65
↓ 4 callers
Function
parse
(obj: dict, state: OpenCodeStreamState)
tests/unit/llms/opencode/harness/test_transformation.py:55
↓ 4 callers
Function
parse
The workflow plus its raw `on:` value, or why the file does not read as one.
tests/code_coverage_tests/check_workflow_job_name_collisions.py:114
↓ 4 callers
Function
parse
(text: &str)
litellm-rust/crates/python-compat/src/number.rs:35
↓ 4 callers
Function
parseAdditionalDropParams
(raw string)
terraform/provider/litellm/resource_model_crud.go:76
↓ 4 callers
Function
parseAllowlist
(path string)
terraform/provider/tools/endpointaudit/coverage.go:42
↓ 4 callers
Function
parseExistingPrompt
(apiResponse: any)
ui/litellm-dashboard/src/app/(dashboard)/prompts/_components/prompt_editor_view/utils.ts:215
↓ 4 callers
Function
parseJson
(raw: string | null)
ui/litellm-dashboard/src/app/(dashboard)/playground/components/chat/playgroundSettings.ts:45
↓ 4 callers
Function
parseTeamAdminEditableFields
(uiSettingsValues: unknown)
ui/litellm-dashboard/src/components/team/teamAdminEditAccess.ts:49
↓ 4 callers
Function
parseUsageClient
(value: string | null)
ui/litellm-dashboard/src/app/(dashboard)/usage/_components/components/overview/agentCatalog.ts:29
↓ 4 callers
Function
parseUsageCost
(rawCost: unknown)
ui/litellm-dashboard/src/components/llm_calls/usage_cost.ts:7
↓ 4 callers
Function
parse_admin_env_vars
Split admin-configured env var entries into globals and per-user specs. Accepts the raw value of ``MCPServer.env_vars`` (list of dicts or Pydanti
litellm/proxy/mcp_server/utils.py:710
↓ 4 callers
Function
parse_all
(name: str, state: OpenCodeStreamState | None = None)
tests/unit/llms/opencode/harness/test_transformation.py:59
↓ 4 callers
Function
parse_all
(name: str, state: Optional[CodexStreamState] = None)
tests/unit/llms/codex/harness/test_transformation.py:55
↓ 4 callers
Function
parse_background_health_check_model_groups
Read ``general_settings.background_health_check_model_groups``. ``None`` means the allowlist is unset and every deployment participates
litellm/proxy/health_check.py:245
↓ 4 callers
Function
parse_cache_plan
(body: Mapping[str, JsonValue])
litellm/llms/anthropic/prompt_cache_prediction.py:345
↓ 4 callers
Function
parse_chat_allowed_tools_tool_choice
(tool_choice: object)
litellm/litellm_core_utils/allowed_tools_tool_choice.py:122
↓ 4 callers
Function
parse_chirp_session_update
(payload: str, expected_model: str, *, drop_params: bool = False)
litellm/llms/vertex_ai/audio_transcription/realtime_transformation.py:128
↓ 4 callers
Function
parse_collector_address
``unix:///path/to.sock`` or ``tcp://127.0.0.1:port``; the socket carries unauthenticated spend events.
litellm/proxy/spend_tracking/spend_event_producer.py:92
↓ 4 callers
Function
parse_consent
Comma-split names from ``LITELLM_TELEMETRY_GROUPS`` or the settings API, blanks ignored
litellm/telemetry/consent.py:86
↓ 4 callers
Function
parse_discovered_models
Validate a raw `/v1/models` response into typed models.
litellm/proxy/client/cli/commands/autoroute/config.py:36
↓ 4 callers
Function
parse_expire_time
Parse a Vertex RFC 3339 ``expireTime`` (nanosecond precision, ``Z`` suffix) to epoch seconds.
litellm/llms/vertex_ai/context_caching/known_cached_contents.py:28
↓ 4 callers
Function
parse_key
The store family a router-core key belongs to. Each store rebuilds the same key from what is parsed here, so an id or model holding a ``:`` still
litellm/router_rust/routing_stores.py:80
↓ 4 callers
Function
parse_last
( events: tuple[ReceivedEvent, ...], event_type: str, model: type[_M] )
tests/e2e/llm_translation/realtime/realtime_client.py:332
↓ 4 callers
Function
parse_mime_type
(base64_data: str)
litellm/litellm_core_utils/prompt_templates/factory.py:4042
↓ 4 callers
Function
parse_partition_upper_bound
Upper bound of a Postgres partition from its `pg_get_expr(relpartbound)` string, e.g. "FOR VALUES FROM ('2026-06-01 00:00:00') TO ('2026-06-0
litellm/proxy/db/db_transaction_queue/spend_logs_partition_manager.py:101
↓ 4 callers
Function
parse_replica_urls
(raw: str, fallback: str)
tests/e2e/e2e_config.py:44
↓ 4 callers
Function
parse_stagger_settings
(general_settings: Mapping[str, object])
litellm/proxy/common_utils/scheduled_job_stagger.py:140
↓ 4 callers
Function
parsed_ptu_shares
``ptu_shares`` as team id -> whole PTUs, else None when empty or any entry is unusable.
litellm/litellm_core_utils/ptu_pricing.py:185
↓ 4 callers
Function
partial_responses_incomplete_event_on_disconnect
Ask the stream behind a proxy or router wrapper for the partial response to bill, if it can build one.
litellm/responses/streaming_iterator.py:1742
↓ 4 callers
Function
partition_spend_logs
(database_url: str)
tests/integration/database/test_request_log_indexes_at_boot.py:149
↓ 4 callers
Method
patch_outgoing_session
Patch a client ``session.update`` payload before forwarding to xAI. Unlike OpenAI, xAI does not default ``turn_detection.create_response``
litellm/llms/xai/realtime/transformation.py:93
↓ 4 callers
Function
patch_prompt
Partially update an existing prompt 👉 [Prompt docs](https://docs.litellm.ai/docs/proxy/prompt_management) This endpoint allows updating
litellm/proxy/prompts/prompt_endpoints.py:892
↓ 4 callers
Function
patch_team_membership
Add or remove user from teams Handles duplicate membership gracefully (idempotent operation). A user already being in a team (on add) or
litellm/proxy/management_endpoints/scim/scim_v2.py:2718
↓ 4 callers
Method
path
(self)
tests/integration/providers/test_embedding_token_array_wire.py:92
↓ 4 callers
Method
patterns
(self, *, team: Literal[False] = False)
litellm/router_api.py:907
↓ 4 callers
Function
pct
(value: number)
ui/litellm-dashboard/src/components/shared/timeline/Timeline.tsx:42
↓ 4 callers
Function
pctLabel
(value: number, digits: number = 1)
ui/litellm-dashboard/src/app/(dashboard)/cost-optimization/_components/autoRouterBenchmarks.ts:93
↓ 4 callers
Function
per_hop
(metadata: _Metadata | tuple[_Metadata, ...])
litellm/llms/vertex_ai/gemini/long_decode.py:198
↓ 4 callers
Method
per_user_deployment
The failed deployment authenticates per caller (``_should_run_cooldown_logic``), which is all ``set_cooldown_deployments`` reads when it is ca
litellm/router_rust/surface/health.py:252
↓ 4 callers
Method
periodic_flush
Override periodic_flush to work with asyncio.Queue.
litellm/integrations/gcs_bucket/gcs_bucket.py:387
↓ 4 callers
Function
pgbouncer_version
``(major, minor)`` from ``<binary> --version``. Readiness relies on PgBouncer exiting when it cannot bind its TCP port, which it does from 1.
litellm/proxy/db/pgbouncer.py:471
↓ 4 callers
Function
phase_span
Run a request phase inside a live active span so its DB/service calls nest. Yields ``None`` (a plain no-op) when the OTel SDK is unavailable or V
litellm/integrations/otel/runtime.py:48
↓ 4 callers
Function
pick
( model: str, request_kwargs: dict[str, object], # mutable-ok: the old pick's signature
tests/unit/test_router/core/test_deprecated_members.py:334
↓ 4 callers
Function
pickDirty
( values: TValues, dirtyFields: FormState<TValues>["dirtyFields"], )
ui/litellm-dashboard/src/lib/forms/pickDirty.ts:16
↓ 4 callers
Function
pickOption
( page: PlaywrightPage, trigger: Locator, label: string, )
tests/e2e/ui/tests/integrationCritical/anthropicFederationCredential.spec.ts:86
↓ 4 callers
Function
picked_id
(picked: object)
tests/unit/test_router/core/test_gaps_router_core_crate_picks.py:48
↓ 4 callers
Function
pin_complexity_router_model_id
Stamps `model_info.id` from the raw litellm_params before plugin resolution swaps dotted-path strings for live instances. `_delete_deployment
litellm/proxy/proxy_server.py:5587
↓ 4 callers
Function
pin_mcp_server_tools
( server_id: str, request: Request, user_api_key_dict: UserAPIKeyAuth = Depends(user_a
litellm/proxy/management_endpoints/mcp_management_endpoints.py:1762
↓ 4 callers
Function
pin_session_authorization
The stored per-user session token owns Authorization outright: drop every caller-supplied bearer header (any casing) so it can never displace the
litellm/llms/github_copilot/common_utils.py:71
↓ 4 callers
Function
pkce_default
Whether `lite login` signs in with browser PKCE unless told otherwise.
litellm/proxy/client/cli/commands/config.py:129
↓ 4 callers
Function
plain_response
()
tests/e2e_harness/test_fixture_bundle.py:60
↓ 4 callers
Function
plugin_archive_source_matches
( request: Request, name: str, source: Mapping[str, str], digest: str, *, has_agent_skill_metadata: bool )
litellm/proxy/anthropic_endpoints/claude_code_endpoints/claude_code_marketplace.py:145
↓ 4 callers
Method
plus
(self, *, succeeded: bool)
litellm/types/proxy/gateway_requests.py:25
↓ 4 callers
Function
policy_checked_fetcher
( address: SocketAddr, blocked_hosts: HashSet<&'static str>, )
litellm-rust/crates/http/src/media.rs:429
↓ 4 callers
Function
poll
(status: str, polled_id: str)
tests/unit/litellm_core_utils/test_batch_utils.py:497
↓ 4 callers
Function
poll_cost_row
Poll /spend/logs for the call's row until it lands with a cost breakdown (rows flush ~60s behind the call via proxy_batch_write_at); None on timeo
tests/e2e/quota_management/spend_tracking/cost_rows.py:145
↓ 4 callers
Function
poll_liveliness
Poll /health/liveliness until it responds, the process dies, or timeout elapses.
litellm/proxy/client/cli/commands/autoroute/process.py:95
↓ 4 callers
Method
poll_proxy_spend_for_key
Poll /spend/logs by virtual key. When ``response_id`` is set, only that SpendLogs.request_id may match. When unset, any positive-spen
tests/e2e/logging/logging_client.py:567
↓ 4 callers
Function
poll_rows
(key: str, count: int)
tests/integration/cost_calculation/conftest.py:133
↓ 4 callers
Function
poll_rows_where
( key: str, count: int, predicate: Callable[[CostRow], bool], )
tests/integration/cost_calculation/conftest.py:137
↓ 4 callers
Function
pool_database_url
Start the in-container PgBouncer and return its loopback URL, or None when ``pgbouncer.enabled`` is off. The upstream URL is whatever ``apply_to_
gateway/launch.py:47
↓ 4 callers
Method
pop_vector_stores_to_run_with_db_fallback
Pops the vector stores to run with their tool parameters merged. Falls back to database if vector stores are not found in memory.
litellm/vector_stores/vector_store_registry.py:338
↓ 4 callers
Function
populateGuardrailProviderMap
(providerParamsResponse: Record<string, any>)
ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/guardrail_info_helpers.tsx:105
↓ 4 callers
Method
positions
Every position `held` (what an index holds) names, read before any is filtered, as the Python router reads them into a tuple first: `Err` with the row
litellm-rust/crates/router-core/src/lookup.rs:134
↓ 4 callers
Method
positive
(e)
litellm/proxy/_experimental/out/_next/static/chunks/2j7hjtph8n74b.js:1
↓ 4 callers
Function
post_call_request
The current request's native batches for a post-call write nobody awaits, None outside a request.
litellm/redis/stores/_route.py:81
↓ 4 callers
Method
post_call_rules
(self, input: str | None, model: str)
litellm/litellm_core_utils/rules.py:41
↓ 4 callers
Function
post_json_external
POST an absolute URL outside the proxy under its own bearer, for an API that answers a create with a status and a Location header rather than a JS
tests/e2e/e2e_http.py:571
↓ 4 callers
Method
pre_call_check
Pre-call check + update model rpm Returns - deployment Raises - RateLimitError if deployment over defined RPM limit
litellm/router_strategy/lowest_tpm_rpm_v2.py:106
↓ 4 callers
Function
predicates_isBooleanJSONSchema
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 4 callers
Method
predict
( self, deployment: Deployment, caller: str, cache: DualCache, counter
litellm/llms/anthropic/cache_aware_routing.py:132
↓ 4 callers
Method
predict
(self, prompt: str, request_type: RequestType)
litellm/router_strategy/complexity_router/tier_predictor.py:129
↓ 4 callers
Function
prefetch_config_params
Batch-load LiteLLM_Config rows into the cache with one find_many.
litellm/proxy/utils.py:5547
↓ 4 callers
Function
prefill_turn
(text: str)
tests/integration/streaming/test_mid_stream_fallback_continuation.py:471
↓ 4 callers
Function
prepare
(server: MCPServer)
litellm/proxy/mcp_server/subscriptions.py:205
↓ 4 callers
Method
prepare_arguments
( &mut self, py: Python<'_>, arguments: Py<PyDict>, _: f64, )
litellm-rust/crates/host-python/tests/hook_chain.rs:80
↓ 4 callers
Function
prepare_codex
A `-c hooks.Stop=` session flag replaces the user's whole Stop list, so their own hooks win over ours.
litellm/proxy/client/cli/commands/agents.py:412
↓ 4 callers
Function
prepare_native_baseline_body
(request: Mapping[str, object], model: str)
litellm/llms/anthropic/prompt_cache_prediction.py:640
↓ 4 callers
Function
prepare_response_for_header_attachment
(response: object)
litellm/litellm_core_utils/add_retry_fallback_headers.py:132
↓ 4 callers
Method
prepare_success_logging
( self, result: object, start_time: datetime.datetime | None, end_time: dateti
litellm/litellm_core_utils/litellm_logging.py:3329
↓ 4 callers
Function
prepared
( api_base: &str, )
litellm-rust/crates/inference-chat/src/handler.rs:187
↓ 4 callers
Function
presetPayload
(preset: DecisionPreset, endpoint: PresetEndpoint, model?: string)
ui/litellm-dashboard/src/app/(dashboard)/playground/components/systemOneUI/lib/example.ts:165
↓ 4 callers
Function
price_baseline_comparison
( snapshot: BaselineCostSnapshot, baseline_usage: Usage | None, provenance: Literal["observed_iden
litellm/proxy/spend_tracking/savings.py:168
↓ 4 callers
Function
prices
(entry: Value)
litellm-rust/crates/model-catalog/src/lower.rs:494
↓ 4 callers
Method
print_verbose
(self, print_statement, level: Literal["INFO", "DEBUG"] = "DEBUG")
litellm/proxy/hooks/prompt_injection_detection.py:79
↓ 4 callers
Method
priority_header_update
( self, model: str, kwargs: Mapping[str, object], header: str | None )
litellm/router_rust/invoke/endpoints.py:1894
← previous
next →
21,001–21,100 of 202,479, ranked by callers