MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 270 callersMethodmap
Attaches a codec over the decoded reply, such as a store's value format.
litellm-rust/crates/redis-client/src/commands.rs:123
↓ 269 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:186
↓ 266 callersMethodmodel_copy
(self, *, deep: bool)
litellm/proxy/guardrails/guardrail_hooks/llm_shield_proxy/llm_shield_proxy.py:120
↓ 265 callersMethodrun
( self, cmd: list[str], *, env: Any = None, cwd: Any = None, timeout: Any = None )
tests/unit/harness/core_fakes.py:78
↓ 263 callersMethodacompletion
(self, **kwargs: object)
tests/unit/llms/anthropic/messages/test_safeguards.py:357
↓ 261 callersMethodcancel
(self)
tests/unit/proxy/utils/prisma_and_spend/test_prisma_client_reconnect.py:429
↓ 260 callersMethodsleep
(self, seconds: float)
tests/e2e_harness/test_proxy_client.py:209
↓ 259 callersMethodvalidate_environment
( self, headers, model, messages, optional_params, litellm_par
tests/unit/llms/base_llm/batches/test_transformation.py:47
↓ 257 callersMethodkeys
(self, key: str)
tests/e2e/provider_cache_redis.py:77
↓ 255 callersMethodnow
(self)
tests/e2e_harness/test_proxy_client.py:206
↓ 255 callersMethodset
(self, name: str, value: str, ex: timedelta | None = None)
tests/unit/caching/test_redis_batch.py:71
↓ 252 callersMethodmodel_dump_json
(self, exclude_unset: bool = False)
tests/unit/proxy/proxy_server/test_routes_audio.py:182
↓ 251 callersMethodapply
(e)
litellm/proxy/_experimental/out/_next/static/chunks/085r5ieqhajig.js:1
↓ 250 callersMethodjson
(self, **kwargs)
litellm/types/utils.py:1650
↓ 249 callersMethodcache_clear
(self)
litellm/litellm_core_utils/single_flight.py:86
↓ 248 callersMethodset
(self, now: float)
tests/unit/proxy/enterprise_billing/test_billing_metrics.py:199
↓ 244 callersMethodresult
(self)
tests/unit/test_batch_completion_models_all_responses.py:26
↓ 243 callersFunctionattach
()
litellm-proxy-extras/litellm_proxy_extras/request_log_indexes.py:466
↓ 243 callersMethodexecute
( # pyright: ignore[reportIncompatibleMethodOverride] # the builder never runs a Template query
tests/integration/database/migrations/test_request_log_indexes.py:470
↓ 241 callersFunctionsha256
(bytes: &[u8])
litellm-rust/crates/testkit/tests/support/mod.rs:42
↓ 239 callersMethodpop
(self, session_id: str, default: None, /)
litellm/proxy/mcp_server/server.py:742
↓ 238 callersFunctionrate_limit
(model: str = "gpt-4o", message: str = "slow down")
tests/unit/test_router/core/scripted_host.py:121
↓ 237 callersMethodset
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/2_9r2jeem0dh8.js:1
↓ 235 callersMethodasync_pre_call_hook
(self, user_api_key_dict, cache, data, call_type)
tests/unit/proxy/guardrails/guardrail_hooks/test_agent_365.py:1084
↓ 232 callersFunctionNewClient
(apiBase, apiKey string, insecureSkipVerify bool)
terraform/provider/litellm/client.go:39
↓ 231 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:187
↓ 231 callersMethodrun
(self)
tests/unit/proxy/shutdown/test_scheduled_jobs.py:26
↓ 230 callersFunctionrender
(ui: ReactElement)
ui/litellm-dashboard/src/app/(dashboard)/playground/components/systemOneUI/SystemOneUI.integration.test.tsx:42
↓ 230 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:169
↓ 228 callersMethodbind
( &mut self, cache: Bound<'_, PyAny>, arguments: &Bound<'_, PyDict>, )
litellm-rust/crates/python-bridge/src/cache/python/host.rs:36
↓ 224 callersMethodextend
(self, key, token, ttl_seconds)
tests/unit/proxy/mcp_server/outbound_credentials/test_redis_refresh_coordinator.py:34
↓ 222 callersMethodvalues
(self)
litellm/proxy/proxy_server.py:2090
↓ 220 callersMethodencode
(self, token: OAuthToken)
litellm/proxy/mcp_server/outbound_credentials/token_cache_codec.py:30
↓ 220 callersMethodpartition
(&self, key: &str)
litellm-rust/crates/redis-store/src/auth_cache/mod.rs:251
↓ 219 callersMethodmodel
(self, source: str)
tests/integration/security/test_api_key_secret_reference.py:399
↓ 218 callersMethodkey
(self, tenant: Tenant | None = None, *, user_id: str | None = None)
tests/e2e/management/jwt_actors.py:80
↓ 215 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:3025
↓ 215 callersMethodmodel_dump
(self, **_kwargs)
tests/unit/proxy/utils/helpers/test_model_access.py:284
↓ 215 callersMethodpre_call
( self, *, input: Sequence[AllMessageValues], api_key: str, model: str
litellm/llms/microsoft_365_copilot/chat/handler.py:58
↓ 212 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
↓ 209 callersMethodembedding
( self, model: str, input: list, model_response: EmbeddingResponse, pr
tests/unit/llms/test_custom_llm.py:247
↓ 209 callersFunctionfetch
(server_id: str, cursor: str | None)
litellm/proxy/mcp_server/catalog.py:1017
↓ 209 callersMethodsearch
(self, query, query_params=None)
tests/unit/llms/valkey/vector_stores/test_valkey_transformation.py:24
↓ 207 callersMethodresponses
( self, key: str, model: str, text: str, *, guardrails: list[s
tests/e2e/guardrails/guardrails_client.py:529
↓ 206 callersMethodasync_pre_call_hook
(self, user_api_key_dict, cache, data, call_type)
tests/unit/proxy/hooks/test_sensitive_data_routing.py:758
↓ 206 callersFunctions
litellm/proxy/_experimental/out/_next/static/chunks/2rtlqswx6sz6u.js:1
↓ 205 callersMethodrespond
(self, request: httpx.Request)
tests/unit/llms/openai_like/test_zerogpu_provider.py:47
↓ 201 callersMethodclear
(self)
litellm/router_rust/surface/indexes.py:228
↓ 201 callersFunctionuseAuthorized
()
ui/litellm-dashboard/src/app/(dashboard)/hooks/useAuthorized.ts:11
↓ 198 callersMethodmin
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/2j7hjtph8n74b.js:1
↓ 198 callersMethodmodel_dump
(self, exclude_none=True)
tests/unit/integrations/test_mlflow.py:179
↓ 197 callersMethodcatch
(e)
litellm/proxy/_experimental/out/_next/static/chunks/2hk8n3azev--d.js:1
↓ 197 callersMethodhealth
(self, model: str)
tests/e2e/quota_management/spend_tracking/spend_e2e_client.py:626
↓ 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 callersMethodexists
(self, *names)
tests/unit/proxy/mcp_server/outbound_credentials/test_redis_distributed_lock.py:51
↓ 196 callersMethodisFinite
()
litellm/proxy/_experimental/out/_next/static/chunks/2j7hjtph8n74b.js:1
↓ 195 callersMethoditems
(self)
litellm/integrations/clickhouse/clickhouse_spend_logger.py:49
↓ 194 callersFunctionlist_value
(value: JsonValue)
tests/integration/_support/client.py:33
↓ 193 callersFunctione
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/2rtlqswx6sz6u.js:1
↓ 192 callersFunctionmake_user_api_key_auth
()
tests/unit/proxy/utils/proxy_logging/conftest.py:82
↓ 192 callersMethodset
(self, name, value, *, nx=False, px=None)
tests/unit/proxy/mcp_server/outbound_credentials/test_redis_distributed_lock.py:26
↓ 191 callersMethodcompletion
( # pyright: ignore[reportIncompatibleMethodOverride] # see acompletion self, model: str, messag
litellm/router.py:269
↓ 191 callersMethoddatetime
(e)
litellm/proxy/_experimental/out/_next/static/chunks/2j7hjtph8n74b.js:1
↓ 191 callersMethodend
(self, end_time: datetime | float | None = None)
litellm/integrations/langfuse/langfuse_sdk.py:305
↓ 191 callersMethodindex
(self, name: Literal["model_name"])
litellm/router_api.py:621
↓ 190 callersMethodextend
(self, values: Iterable[object])
litellm/router_rust/surface/indexes.py:104
↓ 190 callersMethoduseState
(e,r,i,o)
litellm/proxy/_experimental/out/_next/static/chunks/2_9r2jeem0dh8.js:1
↓ 188 callersMethoduser
(self, **fields: JsonValue)
tests/integration/_support/client.py:239
↓ 187 callersFunctionassert_never
(received: Sequence[str], markers: Sequence[str])
tests/integration/routing/test_priority_scheduler_queue_cleanup.py:172
↓ 186 callersMethodraise_for_status
(self)
tests/unit/test_check_licenses.py:33
↓ 186 callersMethodsubmit
( self, fn: Callable[..., object], *args: object, **kwargs: ob
tests/unit/rag/test_main.py:140
↓ 185 callersMethodinfo
(self)
litellm/caching/redis_cache.py:1877
↓ 185 callersMethodparse
(e)
litellm/proxy/_experimental/out/_next/static/chunks/14v3irtjifjt2.js:1
↓ 184 callersMethodbearer
(self, key: str)
tests/e2e/transport.py:114
↓ 184 callersFunctionfetch
(log: SeededLog)
scripts/seed_request_logs.py:380
↓ 184 callersFunctioninitialize
( model=None, alias=None, api_base=None, api_version=None, debug=False, detailed_debug
litellm/proxy/proxy_server.py:10010
↓ 182 callersMethodrstrip
(self, chars: str, /)
litellm/llms/bedrock/files/transformation.py:158
↓ 179 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:2631
↓ 179 callersFunctiongraceful_stop_seconds
()
tests/integration/_support/process.py:148
↓ 179 callersMethodraise_for_status
Raise exception for error status codes.
litellm/integrations/mock_client_factory.py:80
↓ 178 callersMethodapply_guardrail
(self, inputs, request_data, input_type, **kwargs)
tests/unit/proxy/guardrails/guardrail_hooks/unified_guardrails/test_unified_guardrail.py:81
↓ 177 callersMethodregistry
(self)
litellm/proxy/mcp_server/catalog.py:142
↓ 177 callersMethodrun
()
tests/unit/integrations/otel/test_otel_v2_destinations.py:527
↓ 177 callersMethodstart_span
Start a span for ``role`` without dedup or attribute mapping. For callers that own and manage their own span lifecycle. ``tracer`` ov
litellm/integrations/otel/emitter.py:181
↓ 176 callersFunctionbytes
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 176 callersMethodok
(self)
litellm-proxy-extras/litellm_proxy_extras/migration_dry_run.py:63
↓ 176 callersMethods
litellm/proxy/_experimental/out/_next/static/chunks/2_9r2jeem0dh8.js:1
↓ 175 callersMethodi
()
litellm/proxy/_experimental/out/_next/static/chunks/0tx19jeq-wskb.js:2
↓ 173 callersMethodcount
(self, marker: str)
tests/integration/_support/anthropic_sse.py:195
↓ 173 callersFunctiont
()
litellm/proxy/_experimental/out/_next/static/chunks/2s7apn3nfa3q3.js:1
↓ 171 callersMethodassign
(carried: tuple[int, int], length: int)
litellm/proxy/guardrails/guardrail_hooks/bedrock_guardrails.py:1512
↓ 171 callersMethodmap
(s,o)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 170 callersMethodmount
()
litellm/proxy/_experimental/out/_next/static/chunks/0tx19jeq-wskb.js:2
↓ 170 callersMethodsearch
(query: str)
tests/e2e/mcp/test_mcp_guardrail_e2e.py:112
↓ 169 callersFunctionwithin
A TTL Redis reports for a key written `whole_seconds` ago at most a few seconds back.
litellm-rust/crates/redis-store/tests/support/mod.rs:235
↓ 168 callersMethodinvalidateQueries
(e,t={})
litellm/proxy/_experimental/out/_next/static/chunks/0tx19jeq-wskb.js:2
↓ 167 callersMethodmodel_dump
(self_inner)
tests/unit/llms/openai/test_openai.py:2381
↓ 167 callersFunctionsafe_dumps
Serialize data to JSON text through safe_json_structure.
litellm/litellm_core_utils/safe_json_dumps.py:105
↓ 166 callersFunctionregister_mcp
(scenario: Scenario, peer: McpPeer, alias: str, **fields: object)
tests/integration/_support/mcp.py:537
← previousnext →201–300 of 202,479, ranked by callers