Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BerriAI/litellm
/ functions
Functions
86,368 in github.com/BerriAI/litellm
⨍
Functions
86,368
◇
Types & classes
12,471
↳
Endpoints
1,986
↓ 10,771 callers
Method
get
(path: string, options?: RequestOptions)
ui/litellm-dashboard/src/lib/http/client.ts:111
↓ 4,584 callers
Function
patch
( url: URL, *, headers: BaseModel, json: BaseModel, response_type: type[R], timeout: f
tests/e2e/e2e_http.py:380
↓ 2,740 callers
Method
append
(s,o)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 2,339 callers
Method
map
(s,o)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 1,872 callers
Method
debug
(s,...o)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 1,377 callers
Method
post
(path: string, options?: RequestOptions)
ui/litellm-dashboard/src/lib/http/client.ts:112
↓ 1,286 callers
Method
now
(self)
tests/test_litellm/proxy/hooks/test_dynamic_rate_limiter_v3.py:30
↓ 1,194 callers
Method
pop
(self, session_id: str, default: None, /)
litellm/proxy/_experimental/mcp_server/server.py:558
↓ 1,186 callers
Method
items
()
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 1,084 callers
Method
split
(self, _sep)
tests/test_litellm/llms/bedrock/batches/test_handler.py:76
↓ 1,008 callers
Method
json
(self, **kwargs)
litellm/types/utils.py:1339
↓ 952 callers
Method
replace
(self, *args, **kwargs)
tests/test_litellm/litellm_core_utils/test_safe_json_dumps.py:188
↓ 908 callers
Method
sleep
(self, seconds: float)
tests/test_litellm/proxy/utils/prisma_and_spend/conftest.py:267
↓ 905 callers
Method
fail
(e,t,n)
litellm/proxy/_experimental/out/_next/static/chunks/3ytz29phknzsy.js:1
↓ 890 callers
Method
isArray
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 880 callers
Method
push
({key:e,query:r,options:s},i=n.timeMs)
litellm/proxy/_experimental/out/_next/static/chunks/20mvgyvrlrdla.js:2
↓ 879 callers
Method
includes
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 876 callers
Method
filter
(s,o)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 863 callers
Function
set
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 757 callers
Method
slice
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/3ytz29phknzsy.js:1
↓ 733 callers
Method
assign
(carried: tuple[int, int], length: int)
litellm/proxy/guardrails/guardrail_hooks/bedrock_guardrails.py:1274
↓ 692 callers
Method
encode
(self, token: OAuthToken)
litellm/proxy/_experimental/mcp_server/outbound_credentials/token_cache_codec.py:28
↓ 658 callers
Method
stringify
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/3ytz29phknzsy.js:1
↓ 650 callers
Method
time
(self)
tests/test_litellm/proxy/utils/prisma_and_spend/conftest.py:264
↓ 645 callers
Method
decode
(e)
litellm/proxy/_experimental/out/_next/static/chunks/42gio3rky08u5.js:4
↓ 599 callers
Method
json
(self)
tests/test_litellm/proxy/fine_tuning_endpoints/test_endpoints.py:78
↓ 588 callers
Function
it
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/3t4iumhktznmc.js:24
↓ 588 callers
Function
list
List vector stores. Args: after: A cursor for use in pagination. before: A cursor for use in pagination. limit: A li
litellm/vector_stores/main.py:657
↓ 538 callers
Method
forEach
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/1jfookxfajkeo.js:1
↓ 536 callers
Method
entries
()
litellm/proxy/_experimental/out/_next/static/chunks/2fckmmo55b3as.js:1
↓ 511 callers
Method
delete
(path: string, options?: RequestOptions)
ui/litellm-dashboard/src/lib/http/client.ts:114
↓ 498 callers
Method
keys
()
litellm/proxy/_experimental/out/_next/static/chunks/1jfookxfajkeo.js:1
↓ 481 callers
Method
apply_guardrail
(self, inputs, request_data, input_type, **kwargs)
tests/test_litellm/proxy/guardrails/guardrail_hooks/unified_guardrails/test_unified_guardrail.py:57
↓ 481 callers
Method
update
Update an existing API key's parameters. Args: models: Optional[List[str]] = None, aliases: Optional[Dict[st
litellm/proxy/client/keys.py:229
↓ 476 callers
Method
from
(e)
litellm/proxy/_experimental/out/_next/static/chunks/1jfookxfajkeo.js:1
↓ 438 callers
Function
fetch
(team_id: str)
tests/test_litellm/proxy/auth/test_route_checks.py:2719
↓ 418 callers
Method
filter
(self, record: logging.LogRecord)
litellm/_logging.py:51
↓ 417 callers
Method
set
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 411 callers
Method
push
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 403 callers
Function
next
(u)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 392 callers
Method
keys
()
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 389 callers
Method
concat
(...e)
litellm/proxy/_experimental/out/_next/static/chunks/28hnu_qv5e_c_.js:1
↓ 387 callers
Method
items
(self)
tests/test_litellm/passthrough/test_passthrough_main.py:219
↓ 380 callers
Method
dict
(self)
tests/test_litellm/repositories/test_repositories.py:39
↓ 376 callers
Function
get_secret_str
Guarantees response from 'get_secret' is either string or none. Used for fixing linting errors.
litellm/secret_managers/main.py:139
↓ 373 callers
Function
open
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 372 callers
Method
copy
(self)
litellm/types/proxy/litellm_pre_call_utils.py:13
↓ 355 callers
Method
set
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/2fckmmo55b3as.js:1
↓ 354 callers
Function
e
(e)
litellm/proxy/_experimental/out/_next/static/chunks/0kzod24rqslaj.js:1
↓ 353 callers
Method
has
(e)
litellm/proxy/_experimental/out/_next/static/chunks/1jfookxfajkeo.js:1
↓ 347 callers
Method
completion
( self, model: str, messages: list, api_base: str, custom_prompt_dict:
tests/local_testing/test_custom_llm.py:115
↓ 340 callers
Method
run
(self, context)
tests/test_litellm/proxy/proxy_server/test_proxy_config.py:217
↓ 340 callers
Method
toString
()
litellm/proxy/_experimental/out/_next/static/chunks/1jfookxfajkeo.js:1
↓ 336 callers
Method
apply
Apply metadata to the response object
litellm/litellm_core_utils/llm_response_utils/response_metadata.py:160
↓ 328 callers
Function
completion
Perform a completion() using any of litellm supported llms (example gpt-4, gpt-3.5-turbo, claude-2, command-nightly) Parameters: mode
litellm/main.py:4839
↓ 324 callers
Method
patch
(path: string, options?: RequestOptions)
ui/litellm-dashboard/src/lib/http/client.ts:115
↓ 320 callers
Method
sort
()
litellm/proxy/_experimental/out/_next/static/chunks/3nc6x0_y5iwnk.js:1
↓ 319 callers
Function
render
(ready = true)
ui/litellm-dashboard/src/app/(dashboard)/hooks/useTabRouting.test.tsx:21
↓ 317 callers
Method
find
(e)
litellm/proxy/_experimental/out/_next/static/chunks/19frz_r2jewoi.js:1
↓ 293 callers
Function
get_async_httpx_client
Retrieves the async 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:1428
↓ 292 callers
Method
useState
(e,n,i,o)
litellm/proxy/_experimental/out/_next/static/chunks/2fckmmo55b3as.js:1
↓ 287 callers
Method
add
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/2fckmmo55b3as.js:1
↓ 283 callers
Method
forEach
(s,o)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 282 callers
Method
json
(self)
tests/image_gen_tests/test_image_edits.py:258
↓ 278 callers
Function
list
List all API keys
litellm/proxy/client/cli/commands/keys.py:42
↓ 277 callers
Method
find
(s,o)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 272 callers
Method
acompletion
( self, model: str, messages: list, api_base: str, custom_prompt_dict:
tests/local_testing/test_custom_llm.py:140
↓ 268 callers
Method
reduce
(s,o)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 260 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
↓ 260 callers
Method
parse
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 259 callers
Function
t
()
litellm/proxy/_experimental/out/_next/static/chunks/0kzod24rqslaj.js:23
↓ 258 callers
Function
setTimeout
(...e)
litellm/proxy/_experimental/out/_next/static/chunks/2649p504vhh-y.js:1
↓ 257 callers
Method
resolve
( self, hashed_token: str, *, auth_method: AuthMethod = AuthMethod.API_KEY,
litellm/proxy/auth/resolvers/store.py:74
↓ 250 callers
Method
keys
(self)
tests/pass_through_unit_tests/test_pass_through_unit_tests.py:56
↓ 249 callers
Method
i
litellm/proxy/_experimental/out/_next/static/chunks/2m0_88ia6ych8.js:1
↓ 248 callers
Method
raise_for_status
Raise exception for error status codes.
litellm/integrations/mock_client_factory.py:79
↓ 246 callers
Method
clear
(self)
tests/logging_callback_tests/test_amazing_s3_logs.py:37
↓ 246 callers
Method
dict
(self)
tests/test_litellm/proxy/proxy_server/test_streaming_helpers.py:116
↓ 246 callers
Method
then
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/42gio3rky08u5.js:4
↓ 245 callers
Method
map_openai_params
(self, non_default_params, optional_params, model, drop_params)
tests/test_litellm/llms/custom_httpx/test_llm_http_handler.py:1742
↓ 244 callers
Function
s
litellm/proxy/_experimental/out/_next/static/chunks/3t4iumhktznmc.js:1
↓ 243 callers
Method
dirname
()
litellm/proxy/_experimental/out/_next/static/chunks/3ytz29phknzsy.js:1
↓ 243 callers
Method
s
litellm/proxy/_experimental/out/_next/static/chunks/2q3uods7pdkez.js:2
↓ 242 callers
Method
bind
(e)
litellm/proxy/_experimental/out/_next/static/chunks/3z-oetkpttgun.js:1
↓ 239 callers
Method
parse
(e,t,r)
litellm/proxy/_experimental/out/_next/static/chunks/2ghof0nt7xbjx.js:1
↓ 234 callers
Method
info
Get information about API keys. Args: key (str): The key hash to get information about return_request (bool)
litellm/proxy/client/keys.py:289
↓ 227 callers
Function
unique_marker
A short unique token per call/run, so concurrent runs and the shared response cache never collide on prompts, tags, or customer ids.
tests/e2e/e2e_config.py:149
↓ 223 callers
Method
model_validate
(self, obj: Mapping[str, object])
litellm/llms/volcengine/responses/transformation.py:45
↓ 221 callers
Method
setup
(self, mock_provider_mapping, mock_http_handler, mock_http_async_handler)
tests/llm_translation/test_huggingface_chat_completion.py:233
↓ 219 callers
Method
extend
(self, key: str, token: str, ttl_seconds: float)
litellm/proxy/_experimental/mcp_server/outbound_credentials/redis_refresh_coordinator.py:55
↓ 217 callers
Method
pre_call
(self, input, api_key, model=None, additional_args={})
litellm/litellm_core_utils/litellm_logging.py:918
↓ 216 callers
Method
async_pre_call_hook
(self, **kwargs)
tests/test_litellm/proxy/utils/proxy_logging/test_pre_call_hook.py:110
↓ 210 callers
Method
select
(e,t,n,r)
litellm/proxy/_experimental/out/_next/static/chunks/2fckmmo55b3as.js:1
↓ 209 callers
Function
hash_token
(token: str)
litellm/proxy/utils.py:5374
↓ 200 callers
Method
text
(self)
tests/e2e/a2a/a2a_client.py:254
↓ 197 callers
Method
catch
(e)
litellm/proxy/_experimental/out/_next/static/chunks/42gio3rky08u5.js:4
↓ 192 callers
Method
compile
()
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 186 callers
Method
format
(self, record)
litellm/_logging.py:159
↓ 185 callers
Method
info
(self)
litellm/caching/redis_cache.py:1345
↓ 182 callers
Method
defer
Register a teardown action for any resource the test just created.
tests/e2e/lifecycle.py:63
next →
1–100 of 86,368, ranked by callers