Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BerriAI/litellm
/ functions
Functions
71,069 in github.com/BerriAI/litellm
⨍
Functions
71,069
◇
Types & classes
10,227
↳
Endpoints
1,754
↓ 9,525 callers
Method
get
(path: string, options?: RequestOptions)
ui/litellm-dashboard/src/lib/http/client.ts:76
↓ 2,461 callers
Method
append
(s,o)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 1,813 callers
Method
debug
(s,...o)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 1,225 callers
Method
post
(path: string, options?: RequestOptions)
ui/litellm-dashboard/src/lib/http/client.ts:77
↓ 1,128 callers
Method
pop
()
litellm/proxy/_experimental/out/_next/static/chunks/11ibt3khr2hk3.js:1
↓ 1,127 callers
Method
now
(self)
tests/test_litellm/proxy/hooks/test_dynamic_rate_limiter_v3.py:30
↓ 1,102 callers
Method
items
()
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 1,097 callers
Method
insert
(e,t,r)
litellm/proxy/_experimental/out/_next/static/chunks/02ax9y70kcggv.js:1
↓ 1,084 callers
Method
map
(t,r)
litellm/proxy/_experimental/out/_next/static/chunks/02ax9y70kcggv.js:1
↓ 1,028 callers
Method
json
(self, **kwargs)
litellm/types/utils.py:1252
↓ 1,009 callers
Method
split
(self, _sep)
tests/test_litellm/llms/bedrock/batches/test_handler.py:76
↓ 903 callers
Method
replace
(self, *args, **kwargs)
tests/test_litellm/litellm_core_utils/test_safe_json_dumps.py:188
↓ 858 callers
Method
map
(s,o)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 790 callers
Method
fail
(e,t,n)
litellm/proxy/_experimental/out/_next/static/chunks/11ibt3khr2hk3.js:1
↓ 774 callers
Method
includes
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 753 callers
Method
sleep
(self, seconds: float)
tests/test_litellm/proxy/utils/prisma_and_spend/conftest.py:265
↓ 726 callers
Method
push
(e)
litellm/proxy/_experimental/out/_next/static/chunks/11ibt3khr2hk3.js:1
↓ 713 callers
Method
isArray
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 699 callers
Function
set
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 693 callers
Method
slice
(t,r)
litellm/proxy/_experimental/out/_next/static/chunks/02ax9y70kcggv.js:1
↓ 637 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
↓ 607 callers
Method
filter
(t,r)
litellm/proxy/_experimental/out/_next/static/chunks/02ax9y70kcggv.js:1
↓ 605 callers
Method
time
(self)
tests/test_litellm/proxy/utils/prisma_and_spend/conftest.py:262
↓ 594 callers
Method
indexOf
(e)
litellm/proxy/_experimental/out/_next/static/chunks/02ax9y70kcggv.js:1
↓ 594 callers
Method
stringify
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/11ibt3khr2hk3.js:1
↓ 565 callers
Method
decode
(e)
litellm/proxy/_experimental/out/_next/static/chunks/0piozaeodiue..js:4
↓ 551 callers
Method
encode
(self, token: OAuthToken)
litellm/proxy/_experimental/mcp_server/outbound_credentials/token_cache_codec.py:27
↓ 507 callers
Method
json
(self)
tests/test_litellm/proxy/guardrails/guardrail_hooks/test_presidio.py:50
↓ 479 callers
Method
entries
()
litellm/proxy/_experimental/out/_next/static/chunks/0pidya1qvuvx8.js:1
↓ 475 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
↓ 461 callers
Method
forEach
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/0pidya1qvuvx8.js:1
↓ 431 callers
Method
delete
(path: string, options?: RequestOptions)
ui/litellm-dashboard/src/lib/http/client.ts:79
↓ 430 callers
Method
keys
()
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 427 callers
Method
concat
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 426 callers
Method
set
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 418 callers
Method
keys
()
litellm/proxy/_experimental/out/_next/static/chunks/0pidya1qvuvx8.js:1
↓ 409 callers
Function
it
(t)
litellm/proxy/_experimental/out/_next/static/chunks/03~yq9q893hmn.js:1
↓ 406 callers
Method
push
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 371 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
↓ 368 callers
Method
dict
(self)
tests/test_litellm/repositories/test_repositories.py:39
↓ 351 callers
Method
model_dump
(self, **kwargs)
litellm/types/llms/base.py:73
↓ 350 callers
Function
open
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 345 callers
Method
from
(e)
litellm/proxy/_experimental/out/_next/static/chunks/0pidya1qvuvx8.js:1
↓ 344 callers
Method
copy
(self)
litellm/types/proxy/litellm_pre_call_utils.py:13
↓ 341 callers
Method
completion
( self, model: str, messages: list, api_base: str, custom_prompt_dict:
tests/local_testing/test_custom_llm.py:115
↓ 338 callers
Method
apply
Apply metadata to the response object
litellm/litellm_core_utils/llm_response_utils/response_metadata.py:160
↓ 331 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
↓ 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:4746
↓ 324 callers
Method
add
(s,o)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 318 callers
Method
filter
(self, record: logging.LogRecord)
litellm/_logging.py:51
↓ 310 callers
Method
some
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/02ax9y70kcggv.js:1
↓ 305 callers
Method
toString
()
litellm/proxy/_experimental/out/_next/static/chunks/0pidya1qvuvx8.js:1
↓ 304 callers
Method
items
(self)
tests/test_litellm/passthrough/test_passthrough_main.py:219
↓ 301 callers
Method
add
(e)
litellm/proxy/_experimental/out/_next/static/chunks/08yy42xvwaak6.js:1
↓ 284 callers
Method
forEach
(s,o)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 282 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
↓ 281 callers
Method
map_openai_params
( self, image_edit_optional_params: ImageEditOptionalRequestParams, model: str,
tests/test_litellm/images/test_image_edit_utils.py:17
↓ 278 callers
Method
format
(self, record)
litellm/proxy/_logging.py:19
↓ 278 callers
Function
next
(u)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 274 callers
Method
find_unique
(self, where: Dict[str, Any])
tests/test_litellm/repositories/test_repositories.py:58
↓ 273 callers
Function
setTimeout
(...e)
litellm/proxy/_experimental/out/_next/static/chunks/15.9ylrtxojbj.js:1
↓ 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
sort
()
litellm/proxy/_experimental/out/_next/static/chunks/07.fwfv-sinb5.js:1
↓ 266 callers
Method
has
(e)
litellm/proxy/_experimental/out/_next/static/chunks/0pidya1qvuvx8.js:1
↓ 266 callers
Method
json
(self)
tests/image_gen_tests/test_image_edits.py:258
↓ 245 callers
Method
find
(e)
litellm/proxy/_experimental/out/_next/static/chunks/08yy42xvwaak6.js:1
↓ 245 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
↓ 240 callers
Method
patch
(path: string, options?: RequestOptions)
ui/litellm-dashboard/src/lib/http/client.ts:80
↓ 235 callers
Method
bind
(e)
litellm/proxy/_experimental/out/_next/static/chunks/0ivj_wax-joap.js:1
↓ 235 callers
Method
dirname
()
litellm/proxy/_experimental/out/_next/static/chunks/11ibt3khr2hk3.js:1
↓ 235 callers
Method
parse
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 227 callers
Method
keys
(self)
tests/pass_through_unit_tests/test_pass_through_unit_tests.py:55
↓ 226 callers
Method
dict
(self)
tests/test_litellm/proxy/proxy_server/test_streaming_helpers.py:115
↓ 226 callers
Method
then
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/0piozaeodiue..js:4
↓ 224 callers
Method
resolve
( self, hashed_token: str, *, auth_method: AuthMethod = AuthMethod.API_KEY,
litellm/proxy/auth/resolvers/store.py:73
↓ 221 callers
Method
format
(self, record)
litellm/_logging.py:159
↓ 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
↓ 215 callers
Function
s
(t,e,r)
litellm/proxy/_experimental/out/_next/static/chunks/03~yq9q893hmn.js:1
↓ 213 callers
Method
extend
(self, key: str, token: str, ttl_seconds: float)
litellm/proxy/_experimental/mcp_server/outbound_credentials/redis_refresh_coordinator.py:55
↓ 205 callers
Function
list
List all API keys
litellm/proxy/client/cli/commands/keys.py:42
↓ 204 callers
Method
async_pre_call_hook
(self, **kwargs)
tests/test_litellm/proxy/utils/proxy_logging/test_pre_call_hook.py:110
↓ 201 callers
Method
clear
(self)
tests/logging_callback_tests/test_amazing_s3_logs.py:37
↓ 197 callers
Function
render
(config: dict, survivors: list[str], stats: dict | None)
scripts/mutation_report.py:225
↓ 186 callers
Function
e
()
litellm/proxy/_experimental/out/_next/static/chunks/0zam.8alu6_vj.js:1
↓ 185 callers
Method
format
()
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 184 callers
Method
s
litellm/proxy/_experimental/out/_next/static/chunks/0-0c4mv4-mc9n.js:1
↓ 184 callers
Method
search
Sync Search handler.
litellm/llms/custom_httpx/llm_http_handler.py:1684
↓ 183 callers
Method
parse
(e,t,r)
litellm/proxy/_experimental/out/_next/static/chunks/1339tsypbt0.4.js:1
↓ 183 callers
Method
text
Return response text.
litellm/integrations/mock_client_factory.py:61
↓ 182 callers
Method
find_many
Find multiple records matching the criteria.
litellm/repositories/base_repository.py:68
↓ 182 callers
Method
i
litellm/proxy/_experimental/out/_next/static/chunks/175kj4ldzcv5l.js:1
↓ 180 callers
Method
compile
()
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 179 callers
Method
info
(self)
litellm/caching/redis_cache.py:1262
↓ 178 callers
Method
catch
(e)
litellm/proxy/_experimental/out/_next/static/chunks/0piozaeodiue..js:4
↓ 177 callers
Method
reduce
(...e)
litellm/proxy/_experimental/out/_next/static/chunks/02ax9y70kcggv.js:1
↓ 173 callers
Function
t
(e)
litellm/proxy/_experimental/out/_next/static/chunks/00fcsizkvc4hx.js:1
↓ 172 callers
Function
hash_token
(token: str)
litellm/proxy/utils.py:5041
↓ 169 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
next →
1–100 of 71,069, ranked by callers