MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions231,079 in github.com/BerriAI/litellm

↓ 136 callersMethodappend
(self, change: Change)
tests/integration/database/test_control_plane_runtime_config.py:250
↓ 136 callersMethodnow
(cls, tz: tzinfo | None = None)
tests/unit/proxy/mcp_server/test_db_credentials.py:1050
↓ 136 callersMethodsend
Sends one command on its own, the way the `RedisCache` method behind it sends it.
litellm/rust/crates/redis-client/src/client.rs:89
↓ 135 callersMethodadd
(e)
litellm/proxy/_experimental/out/_next/static/chunks/0tx19jeq-wskb.js:2
↓ 135 callersFunctionget_optional_params
( # use the openai defaults # https://platform.openai.com/docs/api-reference/chat/create model: st
litellm/utils.py:5900
↓ 135 callersMethodmodel
(self)
tests/integration/authorization/test_team_admin_gate.py:96
↓ 134 callersMethodempty
(cls, bounds: tuple[float, ...])
litellm/telemetry/histogram.py:21
↓ 134 callersFunctionparse
(url: &str, body: &[u8])
litellm/rust/crates/testkit/src/install/release.rs:60
↓ 134 callersFunctionregister_scenario
(scenario_id: str, response: StoredResponse, *, control_url: str = CONTROL_URL)
tests/integration/_support/upstream.py:877
↓ 133 callersMethodadd_span_processor
(self, span_processor)
tests/unit/integrations/otel/test_otel_v2_destinations.py:2298
↓ 133 callersMethodisNaN
()
litellm/proxy/_experimental/out/_next/static/chunks/2aatum0yo4cv8.js:1
↓ 133 callersFunctionmethod
()
litellm/rust/crates/gateway-forward/tests/roundtrip.rs:43
↓ 133 callersMethodreplacing_worker
(self, pid: int)
tests/integration/_support/process.py:336
↓ 132 callersMethodextend
(self, key, token, ttl_seconds)
tests/unit/proxy/mcp_server/outbound_credentials/test_redis_refresh_coordinator.py:35
↓ 132 callersMethodget_tracer
(self)
litellm/integrations/traceloop.py:24
↓ 132 callersMethodsleep
(self, seconds: float)
tests/unit/proxy/management_endpoints/test_access_group_management.py:712
↓ 131 callersMethodpost_call
( self, *, original_response: object, input: Sequence[AllMessageValues],
litellm/llms/microsoft_365_copilot/chat/handler.py:67
↓ 131 callersMethodset
(self, name: str, value: str, nx: bool, ex: int | None)
tests/unit/integrations/test_prometheus_services.py:253
↓ 130 callersMethodasync_post_call_success_hook
(self, data: dict, user_api_key_dict: UserAPIKeyAuth, response: Any)
tests/unit/proxy/guardrails/test_deferred_guardrail_logging.py:116
↓ 130 callersMethodasync_set_cache
Inside a request the Redis SET rides the request's pipeline (memory is written at once); anywhere else it goes to Redis directly.
litellm/proxy/common_utils/user_api_key_cache.py:227
↓ 130 callersMethodfilter
(self, record: logging.LogRecord)
tests/rust-python-harness/shared/reporting/ui.py:20
↓ 130 callersMethodnext
(&mut self)
litellm/rust/crates/yaml/src/compose.rs:84
↓ 130 callersMethodread
(self)
tests/integration/compatibility/test_status_code_followups.py:85
↓ 130 callersMethodstream
()
tests/integration/_support/upstream.py:600
↓ 129 callersMethodasync_pre_routing_hook
Pre-routing hook called before the routing decision. When `session_affinity` is enabled and a session_id is resolvable on the reques
litellm/router_strategy/complexity_router/complexity_router.py:4580
↓ 129 callersMethodlower
(self)
litellm/proxy/proxy_server.py:17465
↓ 129 callersMethodnow
(cls, tz=None)
tests/unit/integrations/azure_storage/test_azure_storage.py:583
↓ 129 callersMethodstream
(self, model: str, marker: str)
tests/integration/providers/test_vertex_passthrough_stream_wire.py:52
↓ 128 callersFunctionbuild
(make_core: MakeCore, **arguments: object)
tests/unit/test_router/core/fallbacks_helpers.py:23
↓ 126 callersMethodexit
(self)
tests/unit/test_router/test_router.py:13093
↓ 126 callersFunctionfrom_str
`yaml.safe_load(text)`: `Null` for an empty document, an error where PyYAML raises.
litellm/rust/crates/yaml/src/lib.rs:19
↓ 126 callersMethodis_empty
(self)
litellm/rust/crates/callbacks/src/field.rs:184
↓ 125 callersMethodconcat
(...e)
litellm/proxy/_experimental/out/_next/static/chunks/2aatum0yo4cv8.js:1
↓ 125 callersFunctionconvert_to_model_response_object
( response_object: dict | None = None, model_response_object: ModelResponse | EmbeddingResponse
litellm/litellm_core_utils/llm_response_utils/convert_dict_to_response.py:784
↓ 125 callersFunctionquote
`urllib.parse.quote` over the UTF-8 bytes of a text, and `urllib.parse.urlsplit`. `urllib.parse.quote(text, safe=safe)`: ASCII letters, digits and `_.
litellm/rust/crates/python-compat/src/urllib.rs:5
↓ 125 callersMethodset
(self, key: AuthObject, value: object, ttl_seconds: float | None, request: object)
tests/unit/redis/stores/auth_cache_double.py:89
↓ 125 callersMethodstart
(self, ctx: SessionContext)
tests/unit/harness/core_fakes.py:165
↓ 123 callersMethodaclassify
Classify a prompt by complexity, using the LLM classifier when configured. Falls back to the local heuristic scorer if classifier_ty
litellm/router_strategy/complexity_router/complexity_router.py:2089
↓ 123 callersMethodadd
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
↓ 123 callersFunctionfield
One recorded call: the field of the record named `name`.
litellm/rust/crates/callbacks-spend-log/src/test_support.rs:12
↓ 123 callersMethodjson
(self)
litellm/llms/sap/credentials.py:393
↓ 123 callersMethodprocess_input_messages
(self, data, guardrail_to_apply, litellm_logging_obj)
tests/unit/proxy/utils/proxy_logging/test_guardrail_pipeline.py:3646
↓ 122 callersMethoddecode
(self, entity: Entity)
litellm/proxy/control_plane/store/crypto.py:59
↓ 122 callersMethodto_str
(self, pretty: bool = False)
litellm/litellm_core_utils/tokenizer.py:256
↓ 122 callersFunctiontool_calls
(peer: McpPeer)
tests/integration/mcp/test_mcp_user_env_vars.py:82
↓ 121 callersMethodcreate
(self, template: Database | None = None, schema: str = "public")
tests/e2e/migrations/database.py:140
↓ 121 callersMethodflush_queue
(self)
litellm/integrations/s3_v2.py:433
↓ 120 callersFunctionmcp_peer
( transport: Literal["http", "sse"] = "http", *, rich: bool = False, on_slow: Callable[[], None] | None =
tests/integration/_support/mcp.py:291
↓ 120 callersFunctionnormalize
Replace volatile field values with "<VOLATILE>" so dict equality works. Recursive over dicts and lists. Pass an explicit ``volatile`` set to
tests/unit/proxy/proxy_server/conftest.py:85
↓ 120 callersMethodtime
(self)
tests/unit/test_main.py:13452
↓ 120 callersMethodunion
(self, other: Self)
litellm/rust/crates/llms-types/src/providers/anthropic/beta.rs:461
↓ 120 callersFunctionupstream
Starts an upstream that answers its n-th request with the n-th response and 404s after.
litellm/rust/crates/inference-messages/tests/support/mod.rs:42
↓ 119 callersFunctiondate
()
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 119 callersMethodprocess_mcp_request
Process and validate MCP request headers from the ASGI scope. This includes: 1. Extracting and validating authentication head
litellm/proxy/mcp_server/auth/user_api_key_auth_mcp.py:689
↓ 118 callersFunctionMakeRequest
MakeRequest is a helper function to make HTTP requests
litellm/deploy/terraform/provider/litellm/utils.go:93
↓ 118 callersMethoditems
(self)
litellm/proxy/guardrails/guardrail_hooks/javelin/javelin.py:41
↓ 118 callersMethodload_servers_from_config
Load the MCP Servers from the config Args: mcp_servers_config: Dictionary of MCP server configurations mcp_a
litellm/proxy/mcp_server/mcp_server_manager.py:2700
↓ 118 callersMethodteam
(self)
tests/unit/proxy/spend_tracking/test_native_budgets.py:77
↓ 117 callersMethodappend
(self, value: object)
litellm/router_rust/surface/indexes.py:101
↓ 117 callersFunctiongeneric_cost_per_token
Calculates the cost per token for a given model, prompt tokens, and completion tokens. Handles context caching as well. Input:
litellm/litellm_core_utils/llm_cost_calc/utils.py:1574
↓ 117 callersMethodimport
(py: Python<'py>)
litellm/rust/crates/python-bridge/src/parallel_request_limiter/logged.rs:55
↓ 117 callersFunctionprisma_with_empty_config
()
tests/unit/proxy/_prisma.py:7
↓ 116 callersMethodlstrip
(self)
litellm/litellm_core_utils/tokenizer.py:405
↓ 116 callersMethodpath
(&self)
litellm/rust/crates/model-catalog/src/error.rs:285
↓ 116 callersFunctionserver_error
(model: str = "gpt-4o")
tests/unit/test_router/core/scripted_host.py:137
↓ 115 callersFunction_codes
(tmp_path, source)
tests/unit/test_check_type_discipline.py:26
↓ 115 callersFunctionconnect
(redis_cache: RedisCache | None)
litellm/redis/stores/connection.py:61
↓ 115 callersFunctionread_request_body
Safely read the request body and parse it as JSON. Parameters: - request: The request object to read the body from Returns: - d
litellm/proxy/common_utils/http_parsing_utils.py:301
↓ 115 callersMethodsend
(&mut self, bytes: impl AsRef<[u8]>)
litellm/rust/crates/gateway-forward/tests/support/mod.rs:223
↓ 115 callersMethoduser
(self)
tests/unit/proxy/spend_tracking/test_native_budgets.py:80
↓ 114 callersMethodexec
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 114 callersFunctionget_secret
( secret_name: str, default_value: str | bool | None = None, )
litellm/secret_managers/main.py:359
↓ 114 callersFunctionn
(n)
litellm/proxy/_experimental/out/_next/static/chunks/0r8bcbns1_gw5.js:1
↓ 113 callersFunction_logger
(legacy_compat=True, team_metadata_keys=None)
tests/unit/integrations/otel/test_otel_v2_logger.py:129
↓ 113 callersFunction_one
(make_core: MakeCore, **arguments: object)
tests/unit/test_router/core/test_construction_precall_characterization.py:55
↓ 113 callersMethodfrom_standard_logging_payload
(cls, payload: StandardLoggingPayload)
litellm/integrations/otel/model/payloads.py:154
↓ 113 callersMethodget_allowed_tools_for_server
Get list of allowed tool names for a specific server based on key/team permissions. Follows same inheritance logic as get_allowed_mcp
litellm/proxy/mcp_server/auth/user_api_key_auth_mcp.py:3231
↓ 113 callersMethodwalk
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 112 callersMethodclose
(self)
litellm/llms/custom_httpx/http_handler.py:873
↓ 112 callersFunctioncomplete
(core: RouterCore, model: str = "a", **request: object)
tests/unit/test_router/core/fallbacks_helpers.py:27
↓ 112 callersMethoddrain
(self)
tests/integration/routing/test_video_poll_routing_wire.py:107
↓ 112 callersFunctionrouter
(config: RouterConfig, dynamic: serde_json::Value, host: Arc<ScriptedHost>)
litellm/rust/crates/router-core/tests/call_loop.rs:407
↓ 111 callersMethoditems
(self)
litellm/router_strategy/budget_limiter.py:120
↓ 110 callersMethod__new__
(cls, value: str, counter: _ComparisonCounter)
tests/unit/proxy/proxy_server/test_proxy_config.py:4784
↓ 110 callersFunction_borrowing_handler
( monkeypatch: pytest.MonkeyPatch, borrows: bool, saturation_threshold: float = 0.5, model_gro
tests/unit/proxy/hooks/test_dynamic_rate_limiter_v3_rust.py:1716
↓ 110 callersMethodcount_tokens
( self, model_to_use: str, messages: object, contents: object, deploym
tests/unit/proxy/test_proxy_token_counter.py:2182
↓ 110 callersFunctioniter_items
(value: object)
litellm/litellm_core_utils/core_helpers.py:373
↓ 110 callersMethodtimestamp
(&self)
litellm/rust/crates/router-core/src/health.rs:412
↓ 109 callersFunction_make_guardrail
(**overrides)
tests/unit/proxy/guardrails/guardrail_hooks/test_straiker.py:52
↓ 109 callersMethodasync_post_call_streaming_iterator_hook
(self, user_api_key_dict, response, request_data)
tests/unit/proxy/guardrails/test_deferred_guardrail_logging.py:946
↓ 109 callersMethodinsert
(&mut self, field: Field, value: Value)
litellm/rust/crates/callbacks/src/input.rs:126
↓ 109 callersMethodutcnow
(cls)
tests/unit/proxy/common_utils/test_reset_budget_job.py:5615
↓ 108 callersMethoddeployments
(&self, filter: &DeploymentFilter<'_>)
litellm/rust/crates/router-core/src/registry.rs:927
↓ 108 callersMethodpoll
(self, capacity: str, waiter_id: str, ready_in_ms: int = 0)
tests/integration/sdk/test_dynamic_queue_redis.py:700
↓ 108 callersFunctionrecord_vcr_outcome
Call from the post-yield section of an autouse fixture per test.
tests/_vcr_conftest_common.py:1746
↓ 107 callersMethodcatch
(e)
litellm/proxy/_experimental/out/_next/static/chunks/2hk8n3azev--d.js:1
↓ 107 callersMethodreset
()
litellm/proxy/_experimental/out/_next/static/chunks/0tx19jeq-wskb.js:2
↓ 107 callersMethodtime
(self)
tests/unit/litellm_core_utils/test_ecb_reference_rates.py:150
↓ 106 callersFunction_mock_logging
()
tests/unit/litellm_core_utils/test_realtime_streaming.py:41
↓ 106 callersMethodas_str
(&self)
litellm/rust/crates/cost/src/call.rs:39
← previousnext →401–500 of 231,079, ranked by callers