MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions231,079 in github.com/BerriAI/litellm

↓ 309 callersFunctionroute_entry_points_to_stubs
Make a MagicMock router answer its entry points (``registry()``, ``settings()``, ``health()``) from per-query stubs set on the mock itself. T
tests/unit/proxy/router_entry_point_stubs.py:15
↓ 309 callersMethodtime
(self)
tests/unit/proxy/utils/prisma_and_spend/conftest.py:275
↓ 306 callersMethodacompletion
(self, **kwargs: object)
tests/unit/llms/anthropic/messages/test_safeguards.py:357
↓ 306 callersMethodget_complete_url
(self, api_base, api_key, model, optional_params, litellm_params, stream=None)
tests/unit/llms/custom_httpx/test_llm_http_handler.py:4997
↓ 303 callersMethodt
litellm/proxy/_experimental/out/_next/static/chunks/3lb5gjzjxjxem.js:1
↓ 302 callersMethodforEach
(s,o)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 302 callersMethodset
(self, name: str, value: str | bytes, *args: object, get: bool = False, **kwargs: object)
tests/unit/caching/test_redis_cache.py:108
↓ 301 callersMethodhas
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 298 callersMethodsplit
Prisma keeps at least one connection, and the Rust pool takes what is left of its reserve.
litellm/proxy/db/connection_budget.py:65
↓ 295 callersMethodappend
(s,o)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 294 callersFunctionjoin_api_base
(api_base: str, route: str)
litellm/litellm_core_utils/url_utils.py:162
↓ 292 callersMethodbind
( &mut self, cache: Bound<'_, PyAny>, function: &Bound<'_, PyAny>, arguments:
litellm/rust/crates/python-bridge/src/cache/python/host.rs:46
↓ 291 callersMethodpush
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 290 callersMethodmodel_dump_json
(self, exclude_unset: bool = False)
tests/unit/proxy/proxy_server/test_routes_audio.py:194
↓ 290 callersMethodregistry
(self)
tests/unit/llms/anthropic/messages/test_safeguards.py:349
↓ 284 callersMethodcompletion
( self, model: str, messages: Sequence[object], api_base: str, custom_
tests/unit/test_main.py:13350
↓ 283 callersFunctionuuid4
Return a UUID4 using the selected backend.
litellm/_uuid.py:17
↓ 281 callersMethodtoString
()
litellm/proxy/_experimental/out/_next/static/chunks/2j7hjtph8n74b.js:1
↓ 279 callersFunctionauth_as
Context manager that overrides ``user_api_key_auth`` for a role. Usage:: def test_admin_only(client, auth_as): from litellm.
tests/unit/proxy/proxy_server/conftest.py:217
↓ 278 callersMethoditer
(self)
litellm/rust/crates/callbacks/src/field.rs:200
↓ 278 callersMethodsplit
(e,t=1,n)
litellm/proxy/_experimental/out/_next/static/chunks/085r5ieqhajig.js:1
↓ 277 callersFunctionopen
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 277 callersMethodpartition
(&self, object: &AuthObject)
litellm/rust/crates/redis-store/src/auth_cache/mod.rs:448
↓ 276 callersMethodjson
(self)
litellm/proxy/agent_endpoints/a2a_endpoints.py:380
↓ 276 callersMethodreplace
(self, old: str, new: str, /)
litellm/integrations/weave/weave_otel.py:47
↓ 274 callersMethodresponses
( self, key: str, model: str, text: str, *, guardrails: list[s
tests/e2e/guardrails/guardrails_client.py:529
↓ 274 callersMethodresult
(self)
tests/unit/test_batch_completion_models_all_responses.py:26
↓ 273 callersMethodvalidate_environment
( self, headers, model, messages, optional_params, litellm_par
tests/unit/llms/base_llm/batches/test_transformation.py:47
↓ 272 callersFunctionrate_limit
(model: str = "gpt-4o", message: str = "slow down")
tests/unit/test_router/core/scripted_host.py:121
↓ 270 callersFunction_keywords
(tmp_path: Path, sql: str)
tests/unit/test_check_migrations_no_data_rewrites.py:30
↓ 269 callersMethodasync_pre_call_hook
(self, user_api_key_dict, cache, data, call_type)
tests/unit/proxy/hooks/test_sensitive_data_routing.py:758
↓ 267 callersMethodsplit
Reasoning reaches `/api/generate` either in the top-level `thinking` field or inline in `<think>` tags, never both. The field wins, matching `
litellm/llms/ollama/completion/transformation.py:75
↓ 266 callersMethodregister_model
`create_model` for deployments that carry more than a mode: access groups, team scoping, a pinned id. `listed_for` is the virtual key whose /v
tests/e2e/proxy_client.py:689
↓ 264 callersFunctionsha256
(bytes: &[u8])
litellm/rust/crates/testkit/tests/support/mod.rs:42
↓ 263 callersMethodcache_clear
(self)
litellm/litellm_core_utils/single_flight.py:86
↓ 261 callersFunctionrequire_attributes
(value: object, shape: type[_Shape], *names: str)
litellm/litellm_core_utils/core_helpers.py:291
↓ 261 callersMethodupdate
(self, where: Mapping[str, object], data: Mapping[str, object])
tests/unit/proxy/auth/_user_table.py:67
↓ 259 callersMethodreplace
(self, old: str, new: str, /)
litellm/proxy/client/cli/commands/models.py:82
↓ 258 callersMethodpop
(self, key: str, default: None, /)
litellm/llms/gigachat/chat/transformation.py:58
↓ 257 callersMethodtimeout
`Some(connect)` when the call timed out, where `connect` says the connection was never established; `None` for every other error.
litellm/rust/crates/inference/src/error.rs:207
↓ 255 callersMethodjson
(self, **kwargs)
litellm/types/utils.py:1659
↓ 254 callersMethodrun
(self, _prisma_client: object)
tests/unit/proxy/db/test_scheduled_job_runs.py:245
↓ 253 callersMethodclone
(&self)
litellm/rust/crates/python-bridge/src/model_cost/live.rs:15
↓ 253 callersMethodwarning
(self, msg: str, /, *args: object)
litellm/llms/openai/chat/gpt_reasoning_transformation.py:64
↓ 250 callersMethodembedding
( self, model: str, input: list, model_response: EmbeddingResponse, pr
tests/unit/llms/test_custom_llm.py:248
↓ 250 callersMethodextend
`d.update(entries)`.
litellm/rust/crates/python-compat/src/dict.rs:71
↓ 247 callersMethodsetdefault
(self, key: object, default: object = None)
litellm/router_rust/surface/indexes.py:182
↓ 245 callersFunctionrender
(ui: ReactElement)
litellm/ui/litellm-dashboard/src/app/(dashboard)/playground/components/systemOneUI/SystemOneUI.integration.test.tsx:42
↓ 244 callersFunctionrender
(ui: ReactElement)
litellm/ui/litellm-dashboard/src/components/chat/ChatShell.integration.test.tsx:10
↓ 244 callersMethodupper
(self)
litellm/llms/runwayml/text_to_speech/transformation.py:42
↓ 243 callersFunctionget_llm_provider
( model: str, custom_llm_provider: str | None = None, api_base: str | None = None, api_key: st
litellm/litellm_core_utils/get_llm_provider_logic.py:192
↓ 241 callersMethodclear
(&mut self)
litellm/rust/crates/cache-memory/src/state.rs:88
↓ 240 callersMethodasync_pre_call_hook
(self, user_api_key_dict, cache, data, call_type)
tests/unit/proxy/guardrails/guardrail_hooks/test_agent_365.py:1084
↓ 240 callersFunctionint
(e)
litellm/proxy/_experimental/out/_next/static/chunks/2_9r2jeem0dh8.js:55
↓ 240 callersMethodrun
( self, cmd: list[str], *, env: Any = None, cwd: Any = None, timeout: Any = None )
tests/unit/harness/core_fakes.py:78
↓ 239 callersMethodmodel
(self, source: str)
tests/integration/security/test_api_key_secret_reference.py:399
↓ 238 callersMethoditems
(self)
litellm/proxy/management_endpoints/key_management_endpoints.py:1984
↓ 237 callersMethodset
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/2_9r2jeem0dh8.js:1
↓ 236 callersMethodfind
The view of the key whose hash is `token`, or `None` when neither a key nor a rotated-away hash in its grace period has it. `Side::Writer` reads the l
litellm/rust/crates/repositories/src/key/repository.rs:42
↓ 234 callersFunctionassert_never
(received: Sequence[str], markers: Sequence[str])
tests/integration/routing/test_priority_scheduler_queue_cleanup.py:172
↓ 234 callersFunctioninitialize
( model=None, alias=None, api_base=None, api_version=None, debug=False, detailed_debug
litellm/proxy/proxy_server.py:9875
↓ 233 callersMethodany
(self)
litellm/rust/crates/llms/src/base_llm/messages/context.rs:22
↓ 232 callersFunctionNewClient
(apiBase, apiKey string, insecureSkipVerify bool)
litellm/deploy/terraform/provider/litellm/client.go:39
↓ 228 callersMethodmodel_dump
(self)
tests/unit/proxy/management_endpoints/test_access_group_management.py:588
↓ 226 callersFunctionuseAuthorized
()
litellm/ui/litellm-dashboard/src/app/(dashboard)/hooks/useAuthorized.ts:11
↓ 226 callersMethoduser
(self, **fields: JsonValue)
tests/integration/_support/client.py:239
↓ 225 callersMethoddatetime
(e)
litellm/proxy/_experimental/out/_next/static/chunks/2j7hjtph8n74b.js:1
↓ 225 callersMethodset
(self, user_id: str, server_id: str, token: OAuthToken, ttl_seconds: float)
tests/unit/proxy/mcp_server/outbound_credentials/test_oauth_token_store.py:675
↓ 224 callersMethoditer
(&self)
litellm/rust/crates/llms-types/src/providers/anthropic/beta.rs:457
↓ 220 callersMethodasync_pre_routing_hook
( self, model, request_kwargs, messages=None, input=None, specific_deployment=False, call_type=None
tests/unit/router_strategy/test_router_tag_routing.py:3128
↓ 219 callersMethodhealth
(self, model: str)
tests/e2e/quota_management/spend_tracking/spend_e2e_client.py:626
↓ 218 callersMethodmount
()
litellm/proxy/_experimental/out/_next/static/chunks/0tx19jeq-wskb.js:2
↓ 218 callersMethodsearch
(self, query, query_params=None)
tests/unit/llms/valkey/vector_stores/test_valkey_transformation.py:24
↓ 217 callersMethodmodel_dump
(self, exclude_none=True)
tests/unit/integrations/test_mlflow.py:179
↓ 217 callersFunctionpin
(tenant: &str, session_id: &str)
litellm/rust/crates/redis-store/src/sensitive_route_pins/keys.rs:1
↓ 216 callersMethodkey
(self, tenant: Tenant | None = None, *, user_id: str | None = None)
tests/e2e/management/jwt_actors.py:80
↓ 215 callersMethodupdate_environment_variables
( self, litellm_params: dict, optional_params: dict, model: str | None = None,
litellm/litellm_core_utils/litellm_logging.py:1584
↓ 214 callersFunctionfetch
(server_id: str, cursor: str | None)
litellm/proxy/mcp_server/catalog.py:1033
↓ 214 callersMethodpre_call
( self, *, input: Sequence[AllMessageValues], api_key: str, model: str
litellm/llms/microsoft_365_copilot/chat/handler.py:58
↓ 212 callersMethodexecute
(self, statement: str, parameters: tuple[object, ...] = ())
tests/integration/database/test_scheduled_job_runs.py:54
↓ 212 callersMethodexists
(self, *names)
tests/unit/proxy/mcp_server/outbound_credentials/test_redis_distributed_lock.py:53
↓ 209 callersFunctionlist_value
(value: JsonValue)
tests/integration/_support/client.py:33
↓ 209 callersFunctionwithin
( socket_timeout: Option<Duration>, operation: impl Future<Output = Result<T, Error>>, )
litellm/rust/crates/db/src/deadline.rs:5
↓ 208 callersMethodrespond_with
(self, response: object)
tests/unit/proxy/video_endpoints/test_endpoints.py:135
↓ 206 callersFunctions
litellm/proxy/_experimental/out/_next/static/chunks/2rtlqswx6sz6u.js:1
↓ 205 callersFunctionclone
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 204 callersMethodisFinite
()
litellm/proxy/_experimental/out/_next/static/chunks/2j7hjtph8n74b.js:1
↓ 201 callersMethodregistry
(self)
litellm/proxy/mcp_server/catalog.py:143
↓ 199 callersMethodrespond
(self, request: httpx.Request)
tests/unit/proxy/guardrails/guardrail_hooks/test_wingback.py:197
↓ 198 callersMethodindex
(self, name: Literal["team_model"])
tests/unit/proxy/batches_endpoints/test_litellm_executed_batches.py:266
↓ 198 callersMethodmin
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/2j7hjtph8n74b.js:1
↓ 197 callersMethodmodel_dump
(self_inner)
tests/unit/llms/openai/test_openai.py:2382
↓ 197 callersMethodsort
()
litellm/proxy/_experimental/out/_next/static/chunks/242x7dx0zu3hf.js:1
↓ 196 callersFunctione8
({data:e,resolveVectorStoreId:t,onViewVectorStore:o,isLoading:a=!1})
litellm/proxy/_experimental/out/_next/static/chunks/1u96d84_l-6qz.js:1
↓ 196 callersMethodparam
(self)
tests/integration/observability/test_otel_excluded_services_matrix.py:43
↓ 196 callersMethodraise_for_status
Raise exception for error status codes.
litellm/integrations/mock_client_factory.py:80
↓ 195 callersFunctionbytes
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 194 callersFunctionadd_litellm_data_to_request
Adds LiteLLM-specific data to the request. Args: data (dict): The data dictionary to be modified. request (Request): The inc
litellm/proxy/litellm_pre_call_utils.py:2938
↓ 194 callersMethodcompletion
( # pyright: ignore[reportIncompatibleMethodOverride] # see acompletion self, model: str, messag
litellm/router.py:294
↓ 194 callersMethoduseState
(e,r,i,o)
litellm/proxy/_experimental/out/_next/static/chunks/2_9r2jeem0dh8.js:1
← previousnext →201–300 of 231,079, ranked by callers