Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BerriAI/litellm
/ functions
Functions
68,141 in github.com/BerriAI/litellm
⨍
Functions
68,141
◇
Types & classes
10,035
↳
Endpoints
1,734
↓ 9,302 callers
Method
get
(path: string, options?: RequestOptions)
ui/litellm-dashboard/src/lib/http/client.ts:76
↓ 2,415 callers
Method
append
(s,o)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 1,881 callers
Method
map
(s,o)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 1,798 callers
Method
debug
(s,...o)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 1,201 callers
Method
post
(path: string, options?: RequestOptions)
ui/litellm-dashboard/src/lib/http/client.ts:77
↓ 1,096 callers
Method
pop
()
litellm/proxy/_experimental/out/_next/static/chunks/101az3fsw7lje.js:1
↓ 1,086 callers
Method
now
(self)
tests/test_litellm/proxy/hooks/test_dynamic_rate_limiter_v3.py:30
↓ 1,083 callers
Method
items
()
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 1,021 callers
Method
json
(self, **kwargs)
litellm/types/utils.py:1252
↓ 963 callers
Method
split
(self, _sep)
tests/test_litellm/llms/bedrock/batches/test_handler.py:76
↓ 841 callers
Method
replace
(self, *args, **kwargs)
tests/test_litellm/litellm_core_utils/test_safe_json_dumps.py:188
↓ 785 callers
Method
fail
(e,t,n)
litellm/proxy/_experimental/out/_next/static/chunks/101az3fsw7lje.js:1
↓ 750 callers
Method
includes
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 736 callers
Method
sleep
(self, seconds: float)
tests/test_litellm/proxy/utils/prisma_and_spend/conftest.py:265
↓ 682 callers
Function
set
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 676 callers
Method
isArray
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 674 callers
Method
filter
(s,o)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 672 callers
Method
push
(e)
litellm/proxy/_experimental/out/_next/static/chunks/101az3fsw7lje.js:1
↓ 668 callers
Method
slice
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/101az3fsw7lje.js:1
↓ 633 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:228
↓ 616 callers
Method
stringify
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/101az3fsw7lje.js:1
↓ 601 callers
Method
time
(self)
tests/test_litellm/proxy/utils/prisma_and_spend/conftest.py:262
↓ 534 callers
Method
encode
(self, token: OAuthToken)
litellm/proxy/_experimental/mcp_server/outbound_credentials/token_cache_codec.py:27
↓ 517 callers
Method
decode
(e)
litellm/proxy/_experimental/out/_next/static/chunks/16.oisvgwzo8s.js:4
↓ 494 callers
Method
json
(self)
tests/test_litellm/proxy/guardrails/guardrail_hooks/test_presidio.py:50
↓ 467 callers
Method
entries
()
litellm/proxy/_experimental/out/_next/static/chunks/0pidya1qvuvx8.js:1
↓ 462 callers
Method
forEach
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/0pidya1qvuvx8.js:1
↓ 449 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:656
↓ 424 callers
Method
keys
()
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 424 callers
Method
set
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 412 callers
Method
delete
(path: string, options?: RequestOptions)
ui/litellm-dashboard/src/lib/http/client.ts:79
↓ 403 callers
Method
concat
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 403 callers
Method
push
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 402 callers
Function
it
(t)
litellm/proxy/_experimental/out/_next/static/chunks/03~yq9q893hmn.js:1
↓ 399 callers
Method
keys
()
litellm/proxy/_experimental/out/_next/static/chunks/0pidya1qvuvx8.js:1
↓ 365 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:109
↓ 357 callers
Method
dict
(self)
tests/test_litellm/repositories/test_repositories.py:39
↓ 349 callers
Method
model_dump
(self, **kwargs)
litellm/types/llms/base.py:73
↓ 346 callers
Function
open
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 344 callers
Method
copy
(self)
litellm/types/proxy/litellm_pre_call_utils.py:13
↓ 337 callers
Method
from
(e)
litellm/proxy/_experimental/out/_next/static/chunks/0pidya1qvuvx8.js:1
↓ 335 callers
Method
completion
( self, model: str, messages: list, api_base: str, custom_prompt_dict:
tests/local_testing/test_custom_llm.py:115
↓ 329 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:4705
↓ 328 callers
Method
add
(s,o)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 318 callers
Method
apply_guardrail
(self, inputs, request_data, input_type, **kwargs)
tests/test_litellm/proxy/guardrails/guardrail_hooks/unified_guardrails/test_unified_guardrail.py:46
↓ 312 callers
Method
apply
Apply metadata to the response object
litellm/litellm_core_utils/llm_response_utils/response_metadata.py:160
↓ 306 callers
Method
filter
(self, record: logging.LogRecord)
litellm/_logging.py:51
↓ 296 callers
Method
items
(self)
tests/test_litellm/passthrough/test_passthrough_main.py:219
↓ 288 callers
Method
add
(e)
litellm/proxy/_experimental/out/_next/static/chunks/0n.a~e5dwfnkn.js:1
↓ 284 callers
Method
forEach
(s,o)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 281 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:1367
↓ 278 callers
Method
toString
()
litellm/proxy/_experimental/out/_next/static/chunks/0pidya1qvuvx8.js:1
↓ 277 callers
Method
format
(self, record)
litellm/proxy/_logging.py:19
↓ 276 callers
Method
map_openai_params
( self, image_edit_optional_params: ImageEditOptionalRequestParams, model: str,
tests/test_litellm/images/test_image_edit_utils.py:17
↓ 270 callers
Method
acompletion
( self, model: str, messages: list, api_base: str, custom_prompt_dict:
tests/local_testing/test_custom_llm.py:140
↓ 270 callers
Method
find_unique
(self, where: Dict[str, Any])
tests/test_litellm/repositories/test_repositories.py:58
↓ 264 callers
Method
reduce
(s,o)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 263 callers
Method
json
(self)
tests/image_gen_tests/test_image_edits.py:258
↓ 262 callers
Method
sort
()
litellm/proxy/_experimental/out/_next/static/chunks/07.fwfv-sinb5.js:1
↓ 258 callers
Function
setTimeout
(...e)
litellm/proxy/_experimental/out/_next/static/chunks/15.9ylrtxojbj.js:1
↓ 247 callers
Method
raise_for_status
Raise exception for error status codes.
litellm/integrations/mock_client_factory.py:78
↓ 241 callers
Method
find
(s,o)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 241 callers
Method
find
(e)
litellm/proxy/_experimental/out/_next/static/chunks/0n.a~e5dwfnkn.js:1
↓ 239 callers
Function
next
(u)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 235 callers
Method
has
(e)
litellm/proxy/_experimental/out/_next/static/chunks/0pidya1qvuvx8.js:1
↓ 233 callers
Method
dirname
()
litellm/proxy/_experimental/out/_next/static/chunks/101az3fsw7lje.js:1
↓ 233 callers
Method
parse
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 228 callers
Method
bind
(e)
litellm/proxy/_experimental/out/_next/static/chunks/0ivj_wax-joap.js:1
↓ 226 callers
Function
s
(e,r)
litellm/proxy/_experimental/out/_next/static/chunks/0_rk9sxkapt-r.js:1
↓ 225 callers
Method
patch
(path: string, options?: RequestOptions)
ui/litellm-dashboard/src/lib/http/client.ts:80
↓ 223 callers
Method
dict
(self)
tests/test_litellm/proxy/proxy_server/test_streaming_helpers.py:115
↓ 222 callers
Method
format
(self, record)
litellm/_logging.py:159
↓ 219 callers
Method
keys
(self)
tests/pass_through_unit_tests/test_pass_through_unit_tests.py:55
↓ 219 callers
Method
pre_call
(self, input, api_key, model=None, additional_args={})
litellm/litellm_core_utils/litellm_logging.py:925
↓ 216 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:288
↓ 216 callers
Method
resolve
( self, hashed_token: str, *, auth_method: AuthMethod = AuthMethod.API_KEY,
litellm/proxy/auth/resolvers/store.py:73
↓ 210 callers
Method
then
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/16.oisvgwzo8s.js:4
↓ 205 callers
Method
extend
(self, key: str, token: str, ttl_seconds: float)
litellm/proxy/_experimental/mcp_server/outbound_credentials/redis_refresh_coordinator.py:55
↓ 200 callers
Function
list
List all API keys
litellm/proxy/client/cli/commands/keys.py:42
↓ 192 callers
Function
render
(config: dict, survivors: list[str], stats: dict | None)
scripts/mutation_report.py:225
↓ 191 callers
Method
clear
(self)
tests/logging_callback_tests/test_amazing_s3_logs.py:37
↓ 184 callers
Method
format
()
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 183 callers
Function
t
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/0~-ovi6c4wjt1.js:1
↓ 181 callers
Method
text
Return response text.
litellm/integrations/mock_client_factory.py:61
↓ 180 callers
Method
search
Sync Search handler.
litellm/llms/custom_httpx/llm_http_handler.py:1681
↓ 179 callers
Method
find_many
Find multiple records matching the criteria.
litellm/repositories/base_repository.py:68
↓ 178 callers
Method
async_pre_call_hook
(self, **kwargs)
tests/test_litellm/proxy/utils/proxy_logging/test_pre_call_hook.py:110
↓ 177 callers
Method
info
(self)
litellm/caching/redis_cache.py:1262
↓ 176 callers
Method
compile
()
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 173 callers
Method
i
()
litellm/proxy/_experimental/out/_next/static/chunks/0bqafy~83g2md.js:8
↓ 172 callers
Function
hash_token
(token: str)
litellm/proxy/utils.py:5032
↓ 172 callers
Method
s
()
litellm/proxy/_experimental/out/_next/static/chunks/02813b2b-kz98.js:8
↓ 169 callers
Method
catch
(e)
litellm/proxy/_experimental/out/_next/static/chunks/16.oisvgwzo8s.js:4
↓ 167 callers
Method
get_complete_url
( self, *, api_base: str | None, model: str, optional_params: dict[str
tests/test_litellm/ocr/test_rust_bridge.py:174
↓ 162 callers
Method
parse
(e,t,r)
litellm/proxy/_experimental/out/_next/static/chunks/00p.gft-l.6p..js:1
↓ 159 callers
Function
e
(e)
litellm/proxy/_experimental/out/_next/static/chunks/01_xjyxcb1uco.js:1
↓ 150 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:1420
↓ 142 callers
Function
a
(e,t,a,l)
litellm/proxy/_experimental/out/_next/static/chunks/0rdv7_7_95b-1.js:1
↓ 142 callers
Method
set
(e)
litellm/proxy/_experimental/out/_next/static/chunks/15.9ylrtxojbj.js:1
↓ 140 callers
Method
has
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
next →
1–100 of 68,141, ranked by callers