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
prisma_cli_available
Whether some way of running the Prisma CLI exists: the console script on PATH or the importable package.
litellm-proxy-extras/litellm_proxy_extras/prisma_toolchain.py:195
↓ 4 callers
Function
prisma_migrate_deploy_timeout
Seconds one ``prisma migrate deploy`` may run for, however many migrations are pending.
litellm-proxy-extras/litellm_proxy_extras/prisma_toolchain.py:121
↓ 4 callers
Function
prisma_migrations
(directory: &Path)
litellm-rust/crates/db-testing/src/migrations.rs:17
↓ 4 callers
Method
probe
(self, path: str, *, params: BaseModel, headers: BaseModel | None = None)
tests/e2e/transport.py:95
↓ 4 callers
Function
processActivityData
( dailyActivity: { results: DailyData[] }, key: "models" | "model_groups" | "api_keys" | "mcp_servers" | "
ui/litellm-dashboard/src/components/activity_metrics.tsx:715
↓ 4 callers
Method
process_candidates
( cls, _candidates: list[Candidates], # mutable-ok: mirrors override contract model_r
litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py:3192
↓ 4 callers
Method
process_chunk_with_cost_injection
( chunk: bytes, model_name: str, litellm_logging_obj: LiteLLMLoggingObj | None = None,
litellm/proxy/common_request_processing.py:5098
↓ 4 callers
Method
process_diagnostic
( &self, input: &DiagnosticInput, policy: Policy, )
litellm-rust/crates/tracing/src/processing.rs:53
↓ 4 callers
Method
process_file_message
(message: ChatCompletionFileObject)
litellm/litellm_core_utils/prompt_templates/factory.py:5389
↓ 4 callers
Method
process_image_generation_response
( self, json_response: Mapping[str, object], model_response: ImageResponse, mo
litellm/llms/vertex_ai/image_generation/image_generation_handler.py:26
↓ 4 callers
Method
process_image_sync
Synchronous image processing.
litellm/litellm_core_utils/prompt_templates/factory.py:4247
↓ 4 callers
Method
process_input_messages
( self, data: dict, # mutable-ok: base handler contract passes the proxy's request dict throu
litellm/llms/gemini/google_genai/guardrail_translation/handler.py:161
↓ 4 callers
Method
process_output_response
( self, response: object, guardrail_to_apply: "CustomGuardrail", litellm_loggi
litellm/llms/gemini/google_genai/guardrail_translation/handler.py:186
↓ 4 callers
Method
process_output_streaming_response
( self, responses_so_far: Sequence[object], guardrail_to_apply: "CustomGuardrail",
litellm/llms/gemini/google_genai/guardrail_translation/handler.py:219
↓ 4 callers
Function
produce
()
tests/unit/proxy/test_common_request_processing.py:11273
↓ 4 callers
Method
profile_email
(self, login: str, *, fallback: str = "")
litellm/proxy/roi_calculator/github.py:566
↓ 4 callers
Function
project
(snapshot: &Snapshot<'_>)
litellm-rust/crates/python-bridge/src/secrets/config.rs:141
↓ 4 callers
Function
project_deliveries
(deliveries: Iterable[DeliveryProjection])
litellm/accounting/delivery_projection.py:39
↓ 4 callers
Function
project_document
(document: &Bound<'_, PyAny>)
litellm-rust/crates/python-bridge/src/routes/ocr/project.rs:386
↓ 4 callers
Method
project_id
(&self)
litellm-rust/crates/auth-gcp/src/config.rs:59
↓ 4 callers
Function
project_optional_fields
Builds a route's optional body fields from the caller's Python arguments, in `names` order. `lookup` decides what counts as unset: a name it returns `
litellm-rust/crates/python-bridge/src/marshal.rs:119
↓ 4 callers
Function
promptInfoJSON
(promptID string)
terraform/provider/litellm/resource_prompt_test.go:17
↓ 4 callers
Method
prompt_file_to_json
Convert a .prompt file to JSON format. Args: file_path: Path to the .prompt file Returns: Dictionary with 'c
litellm/integrations/dotprompt/prompt_manager.py:328
↓ 4 callers
Method
provider
The provider: the one the host resolved when it built the deployment, else `custom_llm_provider`, else the `model` prefix before `/`.
litellm-rust/crates/router-core/src/registry.rs:173
↓ 4 callers
Function
provider_builds_anthropic_request
(model: str, custom_llm_provider: str | None)
litellm/responses/litellm_completion_transformation/tool_search.py:216
↓ 4 callers
Function
provider_call_for
(call: MessagesCall)
litellm-rust/crates/inference-messages/src/handler.rs:507
↓ 4 callers
Function
provider_call_with_secrets
( call: MessagesCall, secrets: &(dyn Lookup + Send + Sync), )
litellm-rust/crates/inference-messages/src/handler.rs:511
↓ 4 callers
Method
provider_calls
(self, identity: str)
tests/integration/compatibility/test_missing_body_param_status.py:655
↓ 4 callers
Function
provider_client
( py: Python<'_>, kwargs: &Bound<'_, PyDict>, asynchronous: bool, )
litellm-rust/crates/python-bridge/src/http.rs:120
↓ 4 callers
Function
provider_compaction_summary
(provider_specific_fields: object)
litellm/responses/litellm_completion_transformation/compaction_items.py:59
↓ 4 callers
Function
provider_environment
(provider_url: str)
tests/integration/management/_batch_file_caps.py:202
↓ 4 callers
Function
provider_file_id_spellings
Every spelling an ownership row may hold for ``file_id``: as sent, unwrapped from a model-encoded id and canonicalized, reduced the way Gemini red
litellm/proxy/openai_files_endpoints/common_utils.py:386
↓ 4 callers
Function
provider_for_generic_call
The provider the router hands a deployment's generic SDK call, or None when it cannot be resolved. A model that carries its own provider pre
litellm/litellm_core_utils/routing_common_utils.py:505
↓ 4 callers
Function
provider_requests
(received: tuple[Request, ...])
tests/integration/providers/_assistants_route_errors_support.py:260
↓ 4 callers
Function
provision
(replica: Replica)
tests/e2e/migrations/upgrade.py:29
↓ 4 callers
Function
proxyIsPremium
()
tests/e2e/ui/helpers/premium.ts:10
↓ 4 callers
Function
public_response
Converts a Rust route response to Python and returns `module.response(...)` called on it, so each route's Python factory builds the public LiteLLM res
litellm-rust/crates/python-bridge/src/marshal.rs:135
↓ 4 callers
Method
pulls
(self, repo: str, start: date, end: date)
litellm/proxy/roi_calculator/github_observed.py:172
↓ 4 callers
Function
py
(e)
litellm/proxy/_experimental/out/_next/static/chunks/085r5ieqhajig.js:10
↓ 4 callers
Function
python_error
The exception a Python secret manager raised anywhere in the chain, so a route surfaces it unchanged instead of wrapping it.
litellm-rust/crates/python-bridge/src/secrets/error.rs:89
↓ 4 callers
Function
python_redact_structured_value
Scrub *value* as it appeared under *key* inside a structured record. redact_string() replaces a whole ``key: value`` span with REDACTED, which is
litellm/litellm_core_utils/secret_redaction.py:130
↓ 4 callers
Function
python_secret_value
(payload: PythonSecretRead, name: &str)
litellm-rust/crates/python-bridge/src/secrets/runtime.rs:439
↓ 4 callers
Function
python_str
Python's `str()` for an id or team id.
litellm-rust/crates/router-core/src/host_index.rs:565
↓ 4 callers
Function
q
(t,a)
litellm/proxy/_experimental/out/_next/static/chunks/11et800l-khs-.js:49
↓ 4 callers
Function
q
()
litellm/proxy/_experimental/out/_next/static/chunks/3i7pipwtkkn0_.js:1
↓ 4 callers
Function
q
(e,s)
litellm/proxy/_experimental/out/_next/static/chunks/2fy3rfrh_1i4o.js:1
↓ 4 callers
Function
qh
(s,o,i,a)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 4 callers
Method
query_embedding_configuration
(litellm_params: Mapping[str, object])
litellm/llms/base_llm/vector_store/transformation.py:326
↓ 4 callers
Method
query_raw
(self, query: str, *args: object)
litellm/proxy/roi_calculator/sync_store.py:30
↓ 4 callers
Method
query_raw
(self, query: str, *args: object)
litellm/repositories/accounting_delivery_repository.py:20
↓ 4 callers
Method
queue_spend_decrement
(self, where: Mapping[str, object], amount: float)
litellm/repositories/unit_of_work.py:69
↓ 4 callers
Method
queue_window_advance
``update_many`` so a tier deleted between the read and the commit is a no-op row count instead of a P2025 that aborts the whole chunk.
litellm/repositories/unit_of_work.py:156
↓ 4 callers
Function
r
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/13d402rvlr6kh.js:1
↓ 4 callers
Function
r
(e,t,l,n)
litellm/proxy/_experimental/out/_next/static/chunks/2bjw0usamfm54.js:4
↓ 4 callers
Function
r
(...e)
litellm/proxy/_experimental/out/_next/static/chunks/44oxggpk8fep6.js:1
↓ 4 callers
Function
r
(e,s)
litellm/proxy/_experimental/out/_next/static/chunks/2jxpy6eth1zvy.js:1
↓ 4 callers
Function
r6
()
litellm/proxy/_experimental/out/_next/static/chunks/0_6jqgnorqxl2.js:1
↓ 4 callers
Function
r8
(e)
litellm/proxy/_experimental/out/_next/static/chunks/0_6jqgnorqxl2.js:1
↓ 4 callers
Function
rC
(e,t,n,r,l,a)
litellm/proxy/_experimental/out/_next/static/chunks/0_6jqgnorqxl2.js:1
↓ 4 callers
Function
rW
(e)
litellm/proxy/_experimental/out/_next/static/chunks/0_6jqgnorqxl2.js:1
↓ 4 callers
Function
ra
(e,t,r)
litellm/proxy/_experimental/out/_next/static/chunks/2_9r2jeem0dh8.js:57
↓ 4 callers
Function
raise_failed_update_spend_exception
Raise an exception for failed update spend logs - Calls proxy_logging_obj.failure_handler to log the error - Ensures error messages says
litellm/proxy/utils.py:9467
↓ 4 callers
Function
raise_if_hosted_tool_choice_unsupported
Anthropic drops a tool_choice dict it does not recognise and Bedrock sends a tool named "", so a forced hosted tool stops here with a 400 on provi
litellm/litellm_core_utils/allowed_tools_tool_choice.py:100
↓ 4 callers
Function
raise_mcp_identifier_conflict
(conflict: McpIdentifierConflict)
litellm/proxy/management_endpoints/mcp_management_endpoints.py:341
↓ 4 callers
Function
raise_on_invalid_key_logging_config
Key-level logging writes go through key metadata, not /team/callback. Without this the same New Relic config the team endpoint rejects would be
litellm/proxy/management_endpoints/key_management_endpoints.py:924
↓ 4 callers
Method
raise_on_model_repetition
Fixes - https://github.com/BerriAI/litellm/issues/5158 if the model enters a loop and starts repeating the same chunk again, break o
litellm/litellm_core_utils/streaming_handler.py:696
↓ 4 callers
Function
raise_public
(denial: GrantDenial)
litellm/proxy/auth/resolvers/grants.py:156
↓ 4 callers
Function
raise_public
(error: ScopeDenied | InvalidDateRange)
litellm/proxy/management_endpoints/common_daily_activity.py:74
↓ 4 callers
Function
raise_vertex_credentials_failure
(failure: VertexCredentialsFailure)
litellm/llms/vertex_ai/credentials_source.py:180
↓ 4 callers
Function
ramped
`base`'s request mix sent along `ramp` instead of at one rate. `concurrency` caps the requests in flight, so size it past the deepest step the ram
tests/e2e/perf/setup/performance_test_case.py:164
↓ 4 callers
Method
randomness
(self, rng: Arc<dyn Randomness>)
litellm-rust/crates/router-core/src/lib.rs:266
↓ 4 callers
Function
rankValue
(row: RankedRow, metric: UsageMetric)
ui/litellm-dashboard/src/app/(dashboard)/usage/_components/components/overview/overviewData.ts:111
↓ 4 callers
Function
rate_limit_verdict
( user_api_key_auth: "UserAPIKeyAuth", model: str, limiter: object, unverifiable: type[Excepti
litellm/llms/anthropic/messages/caller_model_checks.py:423
↓ 4 callers
Function
rate_limited
(retry_after: str | None = None)
tests/unit/test_router/core/test_retries_cooldowns.py:63
↓ 4 callers
Method
read
A setting as the Python core reads it back: as given when it keeps it so.
litellm/router_rust/core.py:687
↓ 4 callers
Method
read
(self)
tests/integration/compatibility/test_missing_body_param_status.py:642
↓ 4 callers
Method
read
(self, path)
tests/unit/llms/codex/harness/test_transformation.py:120
↓ 4 callers
Method
read
(self)
enterprise/litellm_enterprise/proxy/common_utils/check_batch_cost.py:71
↓ 4 callers
Method
read
(&self, py: Python<'_>, name: &str)
litellm-rust/crates/python-bridge/src/secrets/callback.rs:53
↓ 4 callers
Function
readRecord
(source: unknown, key: string)
ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/GuardrailFormField.tsx:71
↓ 4 callers
Method
read_acs_post_data
Read the ACS POST form under a hard size cap before any base64/XML decoding. Bounds both Content-Length-declared and chunked requests so an u
litellm/proxy/management_endpoints/sso/saml_sso.py:294
↓ 4 callers
Method
read_as_missing
True when an MGET on this batch already found no value under ``key`` and nothing has set it since, so a per-key GET later in the same request
litellm/caching/redis_batch.py:322
↓ 4 callers
Method
read_back_everywhere
GET `path` under the master key on every replica that serves it (see replicas_for), polling each to poll_timeout until its read satisfies
tests/e2e/proxy_client.py:552
↓ 4 callers
Function
read_backup
(backup_path: Path | None = None)
litellm/proxy/client/cli/commands/up.py:79
↓ 4 callers
Function
read_json
(database: &ClickHouseDatabase, sql: &str)
litellm-rust/crates/storage-clickhouse/tests/migrations.rs:120
↓ 4 callers
Method
read_missing
One read of ``keys`` (already missing in memory) on the batch ``batch`` picks, noting the keys Redis lacks when it rode a request. Absent keys
litellm/redis/stores/auth_cache/__init__.py:111
↓ 4 callers
Function
read_plugin_review
(manifest: Mapping[str, object])
litellm/repositories/plugin_publication.py:33
↓ 4 callers
Function
read_response_bytes
( mut response: reqwest::Response, limit: usize, )
litellm-rust/crates/llms/src/base_llm/ocr/handler.rs:165
↓ 4 callers
Function
read_timeout
(value: Option<&Bound<'_, PyAny>>)
litellm-rust/crates/python-bridge/src/secrets/provider.rs:92
↓ 4 callers
Function
reader
(ref: str)
tests/unit/llms/base_llm/auth/test_internal_issuer.py:54
↓ 4 callers
Function
readiness_details_body
/health/readiness/details, tolerating the 503 it serves while the ephemeral stack's DB leg blips: the recorded state the logging suites check
tests/e2e/logging/logging_client.py:711
↓ 4 callers
Function
reads_as_policy
Whether ``resolve_retry_policy`` reads ``entry`` without raising: no entry, a ``RetryPolicy``, or a mapping ``RetryPolicy(**entry)`` accepts.
litellm/router_rust/surface/retries.py:39
↓ 4 callers
Method
reads_remote
(&self)
litellm-rust/crates/cache/src/dual.rs:90
↓ 4 callers
Function
ready_future
( py: Python<'py>, value: &Bound<'py, PyAny>, )
litellm-rust/crates/host-python/src/runtime.rs:86
↓ 4 callers
Function
reasoning_item
(identity: str, summaries: Sequence[str] = SUMMARIES)
tests/integration/streaming/faked_responses_case.py:55
↓ 4 callers
Function
reasoning_item
(encrypted_content: JsonValue, *, summary: bool = True)
tests/integration/routing/test_fallback_hop_foreign_encrypted_reasoning.py:384
↓ 4 callers
Function
rebase_spend
( rows: tuple[SpendLogRecord, ...], offset_ms: int, namespace: str, response_pattern: re.Pattern[str] )
scripts/seed_tracing_fixtures.py:246
↓ 4 callers
Function
receive
(notification, queue=received)
tests/integration/mcp/test_interactions.py:817
↓ 4 callers
Method
receive
(self)
litellm/proxy/mcp_server/server.py:1713
↓ 4 callers
Method
receive
(self)
tests/unit/llms/bedrock/realtime/test_bedrock_realtime_handler.py:263
← previous
next →
21,101–21,200 of 202,479, ranked by callers