Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BerriAI/litellm
/ functions
Functions
231,079 in github.com/BerriAI/litellm
⨍
Functions
231,079
◇
Types & classes
30,100
↳
Endpoints
6,452
↓ 136 callers
Method
append
(self, change: Change)
tests/integration/database/test_control_plane_runtime_config.py:250
↓ 136 callers
Method
now
(cls, tz: tzinfo | None = None)
tests/unit/proxy/mcp_server/test_db_credentials.py:1050
↓ 136 callers
Method
send
Sends one command on its own, the way the `RedisCache` method behind it sends it.
litellm/rust/crates/redis-client/src/client.rs:89
↓ 135 callers
Method
add
(e)
litellm/proxy/_experimental/out/_next/static/chunks/0tx19jeq-wskb.js:2
↓ 135 callers
Function
get_optional_params
( # use the openai defaults # https://platform.openai.com/docs/api-reference/chat/create model: st
litellm/utils.py:5900
↓ 135 callers
Method
model
(self)
tests/integration/authorization/test_team_admin_gate.py:96
↓ 134 callers
Method
empty
(cls, bounds: tuple[float, ...])
litellm/telemetry/histogram.py:21
↓ 134 callers
Function
parse
(url: &str, body: &[u8])
litellm/rust/crates/testkit/src/install/release.rs:60
↓ 134 callers
Function
register_scenario
(scenario_id: str, response: StoredResponse, *, control_url: str = CONTROL_URL)
tests/integration/_support/upstream.py:877
↓ 133 callers
Method
add_span_processor
(self, span_processor)
tests/unit/integrations/otel/test_otel_v2_destinations.py:2298
↓ 133 callers
Method
isNaN
()
litellm/proxy/_experimental/out/_next/static/chunks/2aatum0yo4cv8.js:1
↓ 133 callers
Function
method
()
litellm/rust/crates/gateway-forward/tests/roundtrip.rs:43
↓ 133 callers
Method
replacing_worker
(self, pid: int)
tests/integration/_support/process.py:336
↓ 132 callers
Method
extend
(self, key, token, ttl_seconds)
tests/unit/proxy/mcp_server/outbound_credentials/test_redis_refresh_coordinator.py:35
↓ 132 callers
Method
get_tracer
(self)
litellm/integrations/traceloop.py:24
↓ 132 callers
Method
sleep
(self, seconds: float)
tests/unit/proxy/management_endpoints/test_access_group_management.py:712
↓ 131 callers
Method
post_call
( self, *, original_response: object, input: Sequence[AllMessageValues],
litellm/llms/microsoft_365_copilot/chat/handler.py:67
↓ 131 callers
Method
set
(self, name: str, value: str, nx: bool, ex: int | None)
tests/unit/integrations/test_prometheus_services.py:253
↓ 130 callers
Method
async_post_call_success_hook
(self, data: dict, user_api_key_dict: UserAPIKeyAuth, response: Any)
tests/unit/proxy/guardrails/test_deferred_guardrail_logging.py:116
↓ 130 callers
Method
async_set_cache
Inside a request the Redis SET rides the request's pipeline (memory is written at once); anywhere else it goes to Redis directly.
litellm/proxy/common_utils/user_api_key_cache.py:227
↓ 130 callers
Method
filter
(self, record: logging.LogRecord)
tests/rust-python-harness/shared/reporting/ui.py:20
↓ 130 callers
Method
next
(&mut self)
litellm/rust/crates/yaml/src/compose.rs:84
↓ 130 callers
Method
read
(self)
tests/integration/compatibility/test_status_code_followups.py:85
↓ 130 callers
Method
stream
()
tests/integration/_support/upstream.py:600
↓ 129 callers
Method
async_pre_routing_hook
Pre-routing hook called before the routing decision. When `session_affinity` is enabled and a session_id is resolvable on the reques
litellm/router_strategy/complexity_router/complexity_router.py:4580
↓ 129 callers
Method
lower
(self)
litellm/proxy/proxy_server.py:17465
↓ 129 callers
Method
now
(cls, tz=None)
tests/unit/integrations/azure_storage/test_azure_storage.py:583
↓ 129 callers
Method
stream
(self, model: str, marker: str)
tests/integration/providers/test_vertex_passthrough_stream_wire.py:52
↓ 128 callers
Function
build
(make_core: MakeCore, **arguments: object)
tests/unit/test_router/core/fallbacks_helpers.py:23
↓ 126 callers
Method
exit
(self)
tests/unit/test_router/test_router.py:13093
↓ 126 callers
Function
from_str
`yaml.safe_load(text)`: `Null` for an empty document, an error where PyYAML raises.
litellm/rust/crates/yaml/src/lib.rs:19
↓ 126 callers
Method
is_empty
(self)
litellm/rust/crates/callbacks/src/field.rs:184
↓ 125 callers
Method
concat
(...e)
litellm/proxy/_experimental/out/_next/static/chunks/2aatum0yo4cv8.js:1
↓ 125 callers
Function
convert_to_model_response_object
( response_object: dict | None = None, model_response_object: ModelResponse | EmbeddingResponse
litellm/litellm_core_utils/llm_response_utils/convert_dict_to_response.py:784
↓ 125 callers
Function
quote
`urllib.parse.quote` over the UTF-8 bytes of a text, and `urllib.parse.urlsplit`. `urllib.parse.quote(text, safe=safe)`: ASCII letters, digits and `_.
litellm/rust/crates/python-compat/src/urllib.rs:5
↓ 125 callers
Method
set
(self, key: AuthObject, value: object, ttl_seconds: float | None, request: object)
tests/unit/redis/stores/auth_cache_double.py:89
↓ 125 callers
Method
start
(self, ctx: SessionContext)
tests/unit/harness/core_fakes.py:165
↓ 123 callers
Method
aclassify
Classify a prompt by complexity, using the LLM classifier when configured. Falls back to the local heuristic scorer if classifier_ty
litellm/router_strategy/complexity_router/complexity_router.py:2089
↓ 123 callers
Method
add
Append one model's outcome to the per-test results list. Use this when a single test exercises multiple Claude tiers concurrently and
tests/e2e/claude_code/conftest.py:96
↓ 123 callers
Function
field
One recorded call: the field of the record named `name`.
litellm/rust/crates/callbacks-spend-log/src/test_support.rs:12
↓ 123 callers
Method
json
(self)
litellm/llms/sap/credentials.py:393
↓ 123 callers
Method
process_input_messages
(self, data, guardrail_to_apply, litellm_logging_obj)
tests/unit/proxy/utils/proxy_logging/test_guardrail_pipeline.py:3646
↓ 122 callers
Method
decode
(self, entity: Entity)
litellm/proxy/control_plane/store/crypto.py:59
↓ 122 callers
Method
to_str
(self, pretty: bool = False)
litellm/litellm_core_utils/tokenizer.py:256
↓ 122 callers
Function
tool_calls
(peer: McpPeer)
tests/integration/mcp/test_mcp_user_env_vars.py:82
↓ 121 callers
Method
create
(self, template: Database | None = None, schema: str = "public")
tests/e2e/migrations/database.py:140
↓ 121 callers
Method
flush_queue
(self)
litellm/integrations/s3_v2.py:433
↓ 120 callers
Function
mcp_peer
( transport: Literal["http", "sse"] = "http", *, rich: bool = False, on_slow: Callable[[], None] | None =
tests/integration/_support/mcp.py:291
↓ 120 callers
Function
normalize
Replace volatile field values with "<VOLATILE>" so dict equality works. Recursive over dicts and lists. Pass an explicit ``volatile`` set to
tests/unit/proxy/proxy_server/conftest.py:85
↓ 120 callers
Method
time
(self)
tests/unit/test_main.py:13452
↓ 120 callers
Method
union
(self, other: Self)
litellm/rust/crates/llms-types/src/providers/anthropic/beta.rs:461
↓ 120 callers
Function
upstream
Starts an upstream that answers its n-th request with the n-th response and 404s after.
litellm/rust/crates/inference-messages/tests/support/mod.rs:42
↓ 119 callers
Function
date
()
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 119 callers
Method
process_mcp_request
Process and validate MCP request headers from the ASGI scope. This includes: 1. Extracting and validating authentication head
litellm/proxy/mcp_server/auth/user_api_key_auth_mcp.py:689
↓ 118 callers
Function
MakeRequest
MakeRequest is a helper function to make HTTP requests
litellm/deploy/terraform/provider/litellm/utils.go:93
↓ 118 callers
Method
items
(self)
litellm/proxy/guardrails/guardrail_hooks/javelin/javelin.py:41
↓ 118 callers
Method
load_servers_from_config
Load the MCP Servers from the config Args: mcp_servers_config: Dictionary of MCP server configurations mcp_a
litellm/proxy/mcp_server/mcp_server_manager.py:2700
↓ 118 callers
Method
team
(self)
tests/unit/proxy/spend_tracking/test_native_budgets.py:77
↓ 117 callers
Method
append
(self, value: object)
litellm/router_rust/surface/indexes.py:101
↓ 117 callers
Function
generic_cost_per_token
Calculates the cost per token for a given model, prompt tokens, and completion tokens. Handles context caching as well. Input:
litellm/litellm_core_utils/llm_cost_calc/utils.py:1574
↓ 117 callers
Method
import
(py: Python<'py>)
litellm/rust/crates/python-bridge/src/parallel_request_limiter/logged.rs:55
↓ 117 callers
Function
prisma_with_empty_config
()
tests/unit/proxy/_prisma.py:7
↓ 116 callers
Method
lstrip
(self)
litellm/litellm_core_utils/tokenizer.py:405
↓ 116 callers
Method
path
(&self)
litellm/rust/crates/model-catalog/src/error.rs:285
↓ 116 callers
Function
server_error
(model: str = "gpt-4o")
tests/unit/test_router/core/scripted_host.py:137
↓ 115 callers
Function
_codes
(tmp_path, source)
tests/unit/test_check_type_discipline.py:26
↓ 115 callers
Function
connect
(redis_cache: RedisCache | None)
litellm/redis/stores/connection.py:61
↓ 115 callers
Function
read_request_body
Safely read the request body and parse it as JSON. Parameters: - request: The request object to read the body from Returns: - d
litellm/proxy/common_utils/http_parsing_utils.py:301
↓ 115 callers
Method
send
(&mut self, bytes: impl AsRef<[u8]>)
litellm/rust/crates/gateway-forward/tests/support/mod.rs:223
↓ 115 callers
Method
user
(self)
tests/unit/proxy/spend_tracking/test_native_budgets.py:80
↓ 114 callers
Method
exec
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 114 callers
Function
get_secret
( secret_name: str, default_value: str | bool | None = None, )
litellm/secret_managers/main.py:359
↓ 114 callers
Function
n
(n)
litellm/proxy/_experimental/out/_next/static/chunks/0r8bcbns1_gw5.js:1
↓ 113 callers
Function
_logger
(legacy_compat=True, team_metadata_keys=None)
tests/unit/integrations/otel/test_otel_v2_logger.py:129
↓ 113 callers
Function
_one
(make_core: MakeCore, **arguments: object)
tests/unit/test_router/core/test_construction_precall_characterization.py:55
↓ 113 callers
Method
from_standard_logging_payload
(cls, payload: StandardLoggingPayload)
litellm/integrations/otel/model/payloads.py:154
↓ 113 callers
Method
get_allowed_tools_for_server
Get list of allowed tool names for a specific server based on key/team permissions. Follows same inheritance logic as get_allowed_mcp
litellm/proxy/mcp_server/auth/user_api_key_auth_mcp.py:3231
↓ 113 callers
Method
walk
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 112 callers
Method
close
(self)
litellm/llms/custom_httpx/http_handler.py:873
↓ 112 callers
Function
complete
(core: RouterCore, model: str = "a", **request: object)
tests/unit/test_router/core/fallbacks_helpers.py:27
↓ 112 callers
Method
drain
(self)
tests/integration/routing/test_video_poll_routing_wire.py:107
↓ 112 callers
Function
router
(config: RouterConfig, dynamic: serde_json::Value, host: Arc<ScriptedHost>)
litellm/rust/crates/router-core/tests/call_loop.rs:407
↓ 111 callers
Method
items
(self)
litellm/router_strategy/budget_limiter.py:120
↓ 110 callers
Method
__new__
(cls, value: str, counter: _ComparisonCounter)
tests/unit/proxy/proxy_server/test_proxy_config.py:4784
↓ 110 callers
Function
_borrowing_handler
( monkeypatch: pytest.MonkeyPatch, borrows: bool, saturation_threshold: float = 0.5, model_gro
tests/unit/proxy/hooks/test_dynamic_rate_limiter_v3_rust.py:1716
↓ 110 callers
Method
count_tokens
( self, model_to_use: str, messages: object, contents: object, deploym
tests/unit/proxy/test_proxy_token_counter.py:2182
↓ 110 callers
Function
iter_items
(value: object)
litellm/litellm_core_utils/core_helpers.py:373
↓ 110 callers
Method
timestamp
(&self)
litellm/rust/crates/router-core/src/health.rs:412
↓ 109 callers
Function
_make_guardrail
(**overrides)
tests/unit/proxy/guardrails/guardrail_hooks/test_straiker.py:52
↓ 109 callers
Method
async_post_call_streaming_iterator_hook
(self, user_api_key_dict, response, request_data)
tests/unit/proxy/guardrails/test_deferred_guardrail_logging.py:946
↓ 109 callers
Method
insert
(&mut self, field: Field, value: Value)
litellm/rust/crates/callbacks/src/input.rs:126
↓ 109 callers
Method
utcnow
(cls)
tests/unit/proxy/common_utils/test_reset_budget_job.py:5615
↓ 108 callers
Method
deployments
(&self, filter: &DeploymentFilter<'_>)
litellm/rust/crates/router-core/src/registry.rs:927
↓ 108 callers
Method
poll
(self, capacity: str, waiter_id: str, ready_in_ms: int = 0)
tests/integration/sdk/test_dynamic_queue_redis.py:700
↓ 108 callers
Function
record_vcr_outcome
Call from the post-yield section of an autouse fixture per test.
tests/_vcr_conftest_common.py:1746
↓ 107 callers
Method
catch
(e)
litellm/proxy/_experimental/out/_next/static/chunks/2hk8n3azev--d.js:1
↓ 107 callers
Method
reset
()
litellm/proxy/_experimental/out/_next/static/chunks/0tx19jeq-wskb.js:2
↓ 107 callers
Method
time
(self)
tests/unit/litellm_core_utils/test_ecb_reference_rates.py:150
↓ 106 callers
Function
_mock_logging
()
tests/unit/litellm_core_utils/test_realtime_streaming.py:41
↓ 106 callers
Method
as_str
(&self)
litellm/rust/crates/cost/src/call.rs:39
← previous
next →
401–500 of 231,079, ranked by callers