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
↓ 193 callers
Method
append
(self, _item)
tests/unit/integrations/pointfive/test_logger.py:409
↓ 193 callers
Function
e
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/2rtlqswx6sz6u.js:1
↓ 193 callers
Method
flatten
(e=e=>e.message)
litellm/proxy/_experimental/out/_next/static/chunks/2j7hjtph8n74b.js:1
↓ 193 callers
Function
make_user_api_key_auth
()
tests/unit/proxy/utils/proxy_logging/conftest.py:82
↓ 192 callers
Method
end
(self, end_time: int)
litellm/integrations/traceloop.py:16
↓ 192 callers
Function
graceful_stop_seconds
()
tests/integration/_support/process.py:154
↓ 192 callers
Method
invalidateQueries
(e,t={})
litellm/proxy/_experimental/out/_next/static/chunks/0tx19jeq-wskb.js:2
↓ 192 callers
Method
now
(self)
tests/e2e_harness/test_proxy_client.py:206
↓ 191 callers
Method
sleep
(self, seconds: float)
tests/unit/test_main.py:13449
↓ 190 callers
Method
rstrip
(self, chars: str, /)
litellm/llms/bedrock/files/transformation.py:161
↓ 187 callers
Method
encode
(self, spec: DataplaneSpec)
litellm/proxy/control_plane/store/crypto.py:40
↓ 186 callers
Method
apply
(e)
litellm/proxy/_experimental/out/_next/static/chunks/085r5ieqhajig.js:1
↓ 186 callers
Method
bearer
(self, key: str)
tests/e2e/transport.py:114
↓ 186 callers
Function
exception_type
Maps an LLM Provider Exception to OpenAI Exception Format
litellm/litellm_core_utils/exception_mapping_utils.py:2869
↓ 186 callers
Method
submit
(self, fn: Callable[..., object], /, *args: object, **kwargs: object)
tests/unit/test_utils.py:4420
↓ 185 callers
Method
parse
(e)
litellm/proxy/_experimental/out/_next/static/chunks/14v3irtjifjt2.js:1
↓ 184 callers
Method
sort
(self, *args: object, **kwargs: object)
litellm/router_rust/surface/indexes.py:120
↓ 183 callers
Method
sub
(self, repl: str, string: str, count: int = 0)
tests/unit/test_logging.py:1136
↓ 182 callers
Method
count
(self, marker: str)
tests/integration/_support/anthropic_sse.py:195
↓ 182 callers
Method
values
(&self)
litellm/rust/crates/config/src/auth.rs:14
↓ 181 callers
Function
fetch
(input, init)
litellm/ui/litellm-dashboard/src/components/VirtualKeysPage/VirtualKeysTable.integration.test.tsx:52
↓ 181 callers
Method
items
(self)
litellm/integrations/dotprompt/prompt_manager.py:35
↓ 180 callers
Function
field
(description: str, **extra: JsonValue)
tests/integration/_support/claude_code.py:55
↓ 178 callers
Method
pop
(self, session_id: str, default: None, /)
litellm/proxy/mcp_server/server.py:768
↓ 178 callers
Method
start_span
( self, *, name: str, trace_id: object, parent_id: object, spa
litellm/integrations/mlflow.py:64
↓ 177 callers
Method
model_dump
(self, *, exclude_none: bool = ...)
tests/integration/providers/_mantle_gpt_prompt_cache_support.py:778
↓ 177 callers
Function
register_mcp
(scenario: Scenario, peer: McpPeer, alias: str, **fields: object)
tests/integration/_support/mcp.py:563
↓ 177 callers
Method
run
()
tests/unit/integrations/otel/test_otel_v2_destinations.py:531
↓ 177 callers
Method
search
(query: str)
tests/e2e/mcp/test_mcp_guardrail_e2e.py:112
↓ 176 callers
Method
raise_for_status
(self)
tests/unit/test_check_licenses.py:33
↓ 176 callers
Method
s
litellm/proxy/_experimental/out/_next/static/chunks/2_9r2jeem0dh8.js:1
↓ 175 callers
Method
escape
(&mut self)
litellm/rust/crates/python-compat/src/json.rs:293
↓ 175 callers
Method
i
()
litellm/proxy/_experimental/out/_next/static/chunks/0tx19jeq-wskb.js:2
↓ 174 callers
Method
timestamp
(self)
tests/unit/integrations/newrelic/test_newrelic.py:519
↓ 173 callers
Function
t
()
litellm/proxy/_experimental/out/_next/static/chunks/2s7apn3nfa3q3.js:1
↓ 172 callers
Function
completion_cost
Return the USD cost of a LiteLLM call. Pass `completion_response` to price a response LiteLLM returned. Without one, pass `model` plus `
litellm/cost_calculator.py:1903
↓ 171 callers
Method
assign
(carried: tuple[int, int], length: int)
litellm/proxy/guardrails/guardrail_hooks/bedrock_guardrails.py:1623
↓ 171 callers
Method
map
(s,o)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 171 callers
Function
replace
(gateway: Gateway, name: str, body: Mapping[str, JsonValue], *, key: str | None = None)
tests/integration/management/test_claude_code_plugin_installation_preference.py:68
↓ 171 callers
Function
safe_dumps
Serialize data to JSON text through safe_json_structure.
litellm/litellm_core_utils/safe_json_dumps.py:106
↓ 170 callers
Method
clone
(&self)
litellm/rust/crates/gateway-auth/src/http.rs:102
↓ 170 callers
Function
get_logging_payload
( kwargs: dict | None, response_obj: object, start_time: datetime, end_time: datetime, llm
litellm/proxy/spend_tracking/spend_tracking_utils.py:641
↓ 168 callers
Method
min
Python's `min` over numbers: the first of the smallest, keeping its type.
litellm/rust/crates/redis-store/src/number.rs:59
↓ 166 callers
Method
apply_guardrail
( self, inputs: GenericGuardrailAPIInputs, request_data: dict[str, object], in
tests/unit/proxy/guardrails/guardrail_hooks/unified_guardrails/test_tool_descriptions.py:195
↓ 166 callers
Function
is_request_body_safe
Check if the request body is safe. A malicious user can set the api_base to their own domain and invoke POST /chat/completions to intercept
litellm/proxy/auth/auth_utils.py:1012
↓ 166 callers
Method
string
`scanstring` with `strict=True`: control characters must be escaped.
litellm/rust/crates/python-compat/src/json.rs:267
↓ 165 callers
Function
act
(page: Page)
tests/e2e/perf/setup/ui_journeys.py:342
↓ 165 callers
Method
is_empty
(&self)
litellm/rust/crates/config/src/value.rs:22
↓ 165 callers
Method
select
(self, timeout: float | None = None)
tests/unit/router_utils/test_dynamic_queue.py:840
↓ 165 callers
Method
toUpperCase
()
litellm/proxy/_experimental/out/_next/static/chunks/2j7hjtph8n74b.js:1
↓ 164 callers
Method
endsWith
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/2j7hjtph8n74b.js:1
↓ 164 callers
Method
virtual_key
(hashed_token: String)
litellm/rust/crates/python-bridge/src/redis/store/auth_cache.rs:27
↓ 163 callers
Method
apply
(self, message: Message)
tests/unit/redis/stores/cache_invalidation_double.py:23
↓ 163 callers
Method
get_supported_openai_params
(self, model)
tests/unit/llms/custom_httpx/test_llm_http_handler.py:4739
↓ 161 callers
Method
sleep
(self, seconds: float)
litellm/router_utils/dynamic_queue.py:148
↓ 159 callers
Method
dirname
()
litellm/proxy/_experimental/out/_next/static/chunks/14v3irtjifjt2.js:1
↓ 159 callers
Method
done
()
tests/unit/test_router/core/scripted_host.py:329
↓ 159 callers
Function
eY
(...e)
litellm/proxy/_experimental/out/_next/static/chunks/085r5ieqhajig.js:1
↓ 158 callers
Method
add
(team_id: str, user_info: NewUserResponse | LiteLLM_UserTable)
tests/unit/proxy/management_endpoints/test_ui_sso.py:6783
↓ 158 callers
Function
get_httpx_client
Retrieves the HTTP client from the cache If not present, creates a new client Caches the new client and returns it.
litellm/llms/custom_httpx/http_handler.py:2107
↓ 158 callers
Method
resolve
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/085r5ieqhajig.js:1
↓ 156 callers
Function
completion
()
tests/unit/litellm_core_utils/prompt_templates/test_litellm_core_utils_prompt_templates_factory.py:7399
↓ 156 callers
Method
info
(self)
litellm/caching/redis_cache.py:1932
↓ 156 callers
Method
route
(request: httpx.Request)
tests/unit/proxy/control_plane/test_container.py:252
↓ 155 callers
Method
format
()
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 154 callers
Method
get_local
(self, entry: RateLimitEntry)
tests/unit/redis/stores/fake_rate_limits.py:137
↓ 154 callers
Method
toString
()
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 153 callers
Method
contains
(self, field: Field)
litellm/rust/crates/callbacks/src/field.rs:180
↓ 153 callers
Method
len
(&self)
litellm/rust/crates/config/src/value.rs:26
↓ 153 callers
Method
token_counter
(self, key: str, body: TokenCounterBody)
tests/e2e/proxy_client.py:1095
↓ 151 callers
Method
count
(self, where: Mapping[str, object] | None = None)
tests/unit/proxy/auth/_user_table.py:81
↓ 151 callers
Method
group
(self, name: str)
tests/integration/spend/test_router_cooldown_failure_row.py:62
↓ 151 callers
Function
list
(values: impl IntoIterator<Item = Value>)
litellm/rust/crates/python-compat/src/reprlib.rs:134
↓ 151 callers
Function
publish
Makes ``table`` the live ``litellm.model_cost``.
litellm/litellm_core_utils/model_cost_table.py:56
↓ 151 callers
Method
reload
(self)
litellm/proxy/db/pgbouncer.py:637
↓ 151 callers
Method
warn
(self, session: ClientSession)
litellm/llms/custom_httpx/aiohttp_pool_diagnostics.py:59
↓ 150 callers
Method
focus
()
litellm/proxy/_experimental/out/_next/static/chunks/085r5ieqhajig.js:1
↓ 150 callers
Method
into_iter
(self)
litellm/rust/crates/llms-types/src/providers/anthropic/beta.rs:476
↓ 150 callers
Method
settings
(self)
tests/unit/router_utils/test_dynamic_queue.py:577
↓ 147 callers
Method
is_empty
(&self)
litellm/rust/crates/llms-types/src/providers/anthropic/beta.rs:449
↓ 145 callers
Method
reset
Called first thing in every test's setup phase, so each test starts empty.
tests/e2e/e2e_metadata.py:250
↓ 145 callers
Method
type
()
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 144 callers
Function
unquote
(raw: string)
litellm/ui/litellm-dashboard/src/components/shared/search/language.ts:59
↓ 143 callers
Method
sleep
(self, seconds: float)
tests/e2e_harness/test_proxy_client.py:209
↓ 142 callers
Method
_handle_error
( self, e: Exception, provider_config: Union[ BaseConfig, Base
litellm/llms/custom_httpx/llm_http_handler.py:6846
↓ 142 callers
Method
as_bytes
(self)
tests/rust-python-harness/shared/parity/fixtures/cassette.py:30
↓ 142 callers
Function
attempt
The response, or the error the core raised. A request the Rust core does not serve yet propagates, so the test is skipped rather than failed.
tests/unit/test_router/core/retries_health_helpers.py:81
↓ 142 callers
Method
reset
Empty the host's success and failure callback lists (every entry, not only this core's), drop the retry policy and flush the caches.
litellm/router_rust/core.py:2463
↓ 142 callers
Method
wait
(self)
tests/unit/llms/pi/harness/test_transformation.py:121
↓ 140 callers
Method
bind
(self, call_id: str)
litellm/proxy/telemetry/request_context.py:29
↓ 140 callers
Function
id
({draft:e})
litellm/proxy/_experimental/out/_next/static/chunks/1f2vcab0yti03.js:53
↓ 140 callers
Method
model_dump
(self)
litellm/proxy/mcp_server/utils.py:719
↓ 139 callers
Method
append
(self, tag: str, /)
litellm/proxy/management_endpoints/tag_management_endpoints.py:387
↓ 139 callers
Function
encrypt_value_helper
(value: str, new_encryption_key: str | None = None)
litellm/proxy/common_utils/encrypt_decrypt_utils.py:306
↓ 139 callers
Function
generate_mock_user_api_key_auth
Generate a mock UserAPIKeyAuth object
tests/unit/proxy/management_endpoints/test_mcp_management_endpoints.py:110
↓ 138 callers
Method
key
(self)
tests/integration/routing/test_vllm_passthrough_stream_usage_settings.py:51
↓ 137 callers
Method
at
(self, now: datetime)
litellm/types/proxy/skill_scanning.py:75
↓ 137 callers
Method
dict
(self, *, exclude_none: bool)
tests/unit/proxy/mcp_server/test_semantic_tool_filter.py:2264
↓ 137 callers
Function
write_rows
(query: LiteralString, parameters: tuple[str, ...], *, database_url: str | None = None)
tests/integration/_support/database.py:24
↓ 136 callers
Method
all
`_core_get_all_deployments`: the team's deployments under public name `model_name`, else the group's, else (for a team) every deployment the name incl
litellm/rust/crates/router-core/src/lookup.rs:196
← previous
next →
301–400 of 231,079, ranked by callers