MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 18 callersMethodasync_rotate_secret
( &self, current_name: &str, new_name: &str, value: &SecretValue, )
litellm-rust/crates/secrets-aws/src/secret_manager/write.rs:229
↓ 18 callersFunctionbody_of
(response: httpx.Response)
tests/integration/providers/_api_base_trailing_slash_support.py:295
↓ 18 callersFunctionbuild_marengo_3_request
( input: str, inference_params: Mapping[str, object], drop_params: bool = False )
litellm/llms/bedrock/embed/twelvelabs_marengo_3_transformation.py:172
↓ 18 callersFunctionbuild_payload
( messages: Any = NOT_GIVEN, response_message: dict[str, Any] | None = None, usage_object: dict[st
tests/unit/integrations/datadog/test_datadog_llm_obs.py:56
↓ 18 callersFunctioncall
(index: int)
tests/unit/llms/custom_httpx/test_asgi_handler.py:18
↓ 18 callersFunctioncall_list
( harness: ListHarness, *, provider: Optional[str] = None, limit: Optional[int] = None, af
tests/unit/proxy/batches_endpoints/test_endpoints.py:2129
↓ 18 callersFunctioncanonicalize
(request: RecordedRequest)
tests/e2e/fixture_canonical.py:127
↓ 18 callersMethodcarrying
Requests whose body contains ``text``.
tests/integration/security/_sinks.py:101
↓ 18 callersFunctioncheck_mcp_client_allowed
( allowlist: MCPClientAllowlist | None, jwt_claims: Mapping[str, object] | None, headers: Mapping[
litellm/proxy/mcp_server/client_allowlist.py:155
↓ 18 callersMethodcheck_route_access
Check if a route has access by checking both exact matches and patterns Args: route (str): The route to check
litellm/proxy/auth/route_checks.py:710
↓ 18 callersFunctioncleanup
()
tests/integration/spend/test_agent_spend.py:121
↓ 18 callersFunctioncli_context_values
(ctx: click.Context)
litellm/proxy/client/cli/commands/_cli_context.py:17
↓ 18 callersFunctionclient
()
litellm-rust/crates/gateway-forward/tests/support/mod.rs:84
↓ 18 callersFunctionclock
()
litellm-rust/crates/cache-memory/tests/cache.rs:21
↓ 18 callersMethodclose
()
litellm/proxy/_experimental/out/_next/static/chunks/2421p_tyy9-sd.js:1
↓ 18 callersFunctioncompare
(base: Observation, head: Observation, either_role: frozenset[str] = frozenset())
tests/integration/_support/routing.py:92
↓ 18 callersMethodcreate_s3_batch_logging_element
Helper function to create an s3BatchLoggingElement. Args: start_time (datetime): The start time of the logging event.
litellm/integrations/s3_v2.py:865
↓ 18 callersMethodcreate_team
( self, *, alias: str, max_budget: float | None = None, budget_duratio
tests/e2e/quota_management/budgets/budget_client.py:427
↓ 18 callersMethodcurrent
(self)
tests/integration/security/test_api_key_secret_reference.py:107
↓ 18 callersMethoddatabricks_validate_environment
Validate and configure the Databricks environment. Authentication priority: 1. OAuth M2M (DATABRICKS_CLIENT_ID + DATABRICKS_
litellm/llms/databricks/common_utils.py:427
↓ 18 callersFunctiondecode
(raw: bytes)
tests/integration/observability/test_bedrock_converse_stream_post_call_guardrail.py:104
↓ 18 callersMethoddelete_team
(self, team_id: str)
tests/e2e/quota_management/budgets/budget_client.py:454
↓ 18 callersFunctiondeltas_of
(chunks: Sequence[Mapping[str, JsonValue]])
tests/integration/_support/anthropic_thinking.py:180
↓ 18 callersMethoddeployment
( self, scenario: Scenario, api_base: str, model_info: Mapping[str, JsonValue] | None, **extra: JsonVa
tests/integration/providers/test_decisions_box_deployment_flag_wire.py:96
↓ 18 callersMethoddeployment
(threshold: float, name: str = "editable")
tests/unit/router_strategy/test_complexity_router.py:3937
↓ 18 callersMethodderive
( self, *, kwargs: Mapping[str, object] | None = None, provider_responses: tup
tests/rust-python-harness/strategies/trace_parity/models.py:21
↓ 18 callersFunctiondrain_audit_tasks
(timeout: float = 5.0)
litellm/proxy/management_helpers/audit_logs.py:180
↓ 18 callersFunctioneI
(e)
litellm/proxy/_experimental/out/_next/static/chunks/14v3irtjifjt2.js:1
↓ 18 callersFunctionedge
The URL a deployment registered by ``test_key`` would carry, or the bare mount URL for None, which is what a registration made outside any test ge
tests/code_coverage_tests/test_provider_cache.py:216
↓ 18 callersFunctionek
({field:e})
litellm/proxy/_experimental/out/_next/static/chunks/1a2lzi3ursud4.js:1
↓ 18 callersFunctionenrich_http_exception_with_guardrail_context
(exc: BaseException, callback: object)
litellm/proxy/guardrails/exception_utils.py:15
↓ 18 callersMethodensure_initialized_and_enqueue
Ensure the logging worker is initialized and enqueue the coroutine.
litellm/litellm_core_utils/logging_worker.py:466
↓ 18 callersFunctionet
litellm/proxy/_experimental/out/_next/static/chunks/11et800l-khs-.js:1
↓ 18 callersMethodexport
(self, spans)
tests/unit/integrations/langfuse/test_langfuse_sdk.py:910
↓ 18 callersMethodextend
(self, key: str, token: str, ttl_seconds: float)
litellm/proxy/mcp_server/outbound_credentials/redis_refresh_coordinator.py:55
↓ 18 callersMethodextract
(value: Borrowed<'a, 'py, PyAny>)
litellm-rust/crates/python-bridge/src/redis/store/mod.rs:175
↓ 18 callersFunctionextract_file_data
Extracts and processes file data from various input formats. Args: file_data: Can be a tuple of (filename, content, [content_type],
litellm/litellm_core_utils/prompt_templates/file_id_utils.py:361
↓ 18 callersMethodfailures
(self)
tests/integration/_support/routing.py:67
↓ 18 callersFunctionflush_accounting_deliveries
( writer: "DBSpendUpdateWriter", prisma_client: "PrismaClient", proxy_logging_obj: "ProxyLogging" )
litellm/accounting/worker.py:46
↓ 18 callersMethodflush_all
Batch whatever is still declared (write-backs nobody awaits) before the request scope closes. The pre-call flush hooks are skipped: they decla
litellm/caching/redis_batch.py:629
↓ 18 callersFunctionfrom_stem
(marker: str, ids: frozenset[str])
tests/integration/_support/bedrock_discovery.py:208
↓ 18 callersMethodget_active_cooldowns
( self, model_ids: Sequence[str], parent_otel_span: Span | None )
litellm/router_utils/cooldown_cache.py:48
↓ 18 callersMethodget_anthropic_headers
( self, api_key: str | None = None, auth_token: str | None = None, anthropic_v
litellm/llms/anthropic/common_utils.py:1476
↓ 18 callersMethodget_cache
(&self, key: &str)
litellm-rust/crates/cache-memory/src/cache.rs:110
↓ 18 callersMethodget_cache_key
(self, **kwargs)
tests/unit/caching/test_caching_handler.py:2665
↓ 18 callersMethodget_complete_url
( self, api_base: str | None, litellm_params: dict, )
litellm/llms/bedrock_mantle/responses/transformation.py:100
↓ 18 callersFunctionget_key_model_rpm_limit
Get the model rpm limit for a given api key. Priority order (returns first found): 1. Key metadata (model_rpm_limit) 2. Key model_ma
litellm/proxy/auth/auth_utils.py:1396
↓ 18 callersFunctionget_key_model_tpm_limit
Get the model tpm limit for a given api key. Priority order (returns first found): 1. Key metadata (model_tpm_limit) 2. Key model_ma
litellm/proxy/auth/auth_utils.py:1428
↓ 18 callersFunctionget_masked_values
Internal debugging helper function Masks the headers of the request sent from LiteLLM Args: masked_length: Optional length for
litellm/litellm_core_utils/litellm_logging.py:5552
↓ 18 callersFunctionget_user_oauth_credential
Return the decoded OAuth2 payload dict for a user+server pair, or None.
litellm/proxy/mcp_server/db.py:1887
↓ 18 callersFunctionh
(e,t,n)
litellm/proxy/_experimental/out/_next/static/chunks/085r5ieqhajig.js:1
↓ 18 callersMethodhandle
( self, *, model: str, messages: list[dict], tools: list[dict] | None,
litellm/llms/anthropic/messages/native/interceptors/advisor.py:60
↓ 18 callersMethodhandle_non_streaming
Handle non-streaming A2A request. Args: request_id: A2A JSON-RPC request ID params: A2A MessageSendParams co
litellm/a2a_protocol/providers/base.py:18
↓ 18 callersMethodhas
(e)
litellm/proxy/_experimental/out/_next/static/chunks/2aatum0yo4cv8.js:1
↓ 18 callersMethodhas_deployment
Whether a deployment has this id (was ``has_model_id``).
litellm/router_api.py:374
↓ 18 callersFunctionhop_record
(gateway: Gateway, group: OrderedGroup)
tests/integration/routing/test_fallback_hop_foreign_encrypted_reasoning.py:375
↓ 18 callersFunctionids
The ``model_info.id`` of each deployment dict, in order.
tests/unit/test_router/core/registry_helpers.py:15
↓ 18 callersFunctioninferred_provider
(model: str | None)
litellm/litellm_core_utils/get_llm_provider_logic.py:175
↓ 18 callersMethodinit_async_client
( self, )
litellm/caching/redis_cache.py:710
↓ 18 callersFunctionis_team_admin
(user_api_key_dict: UserAPIKeyAuth, team_obj: LiteLLM_TeamTable)
litellm/proxy/management/teams/authz.py:53
↓ 18 callersMethoditer_bytes
(self)
tests/unit/llms/vertex_ai/files/test_vertex_ai_files_streaming.py:462
↓ 18 callersFunctioniter_sse_lines
(text_chunks: Iterable[str])
litellm/llms/custom_httpx/sse_lines.py:53
↓ 18 callersMethodjoin_base_and_endpoint_path
Combine the path component of ``base_url`` with ``endpoint_path``. Preserves any path prefix configured on the base URL and resolves
litellm/proxy/pass_through_endpoints/pass_through_endpoints.py:839
↓ 18 callersFunctionjsonl
(*lines: bytes)
tests/integration/providers/_vertex_batch_rows.py:104
↓ 18 callersFunctionkey_no_key_table_holds
()
tests/integration/_support/daily_activity.py:77
↓ 18 callersFunctionlist_team_v2
Get a paginated list of teams with filtering and sorting options. Parameters: user_id: Optional[str] Only return teams w
litellm/proxy/management_endpoints/team_endpoints.py:6324
↓ 18 callersMethodlog_success_event
( self, kwargs: Mapping[str, object], response_obj: object, start_time: dateti
tests/unit/rag/test_main.py:65
↓ 18 callersFunctionmake_engine
(poster: ScriptedPoster, clock: FakeClock | None = None)
tests/unit/llms/anthropic/test_anthropic_wif.py:114
↓ 18 callersFunctionmanager
(server: &MockServer, ttl: Duration)
litellm-rust/crates/secrets-cyberark/tests/secret_manager/support.rs:63
↓ 18 callersFunctionmanager
(server: &MockServer, values: &[(&str, &str)])
litellm-rust/crates/secrets-hashicorp/tests/secret_manager/support.rs:14
↓ 18 callersFunctionmarked_calls
(mark: JsonValue = EPHEMERAL, cities: Sequence[str] = CITIES)
tests/integration/providers/_cache_control_marks_support.py:82
↓ 18 callersMethodmatches
(stored: object)
tests/unit/proxy/management_endpoints/test_ui_sso.py:1517
↓ 18 callersFunctionmerge_claude_settings
Return a new settings mapping wired to route Claude Code through the proxy. The token lands in env.ANTHROPIC_AUTH_TOKEN; the other credential slo
litellm/proxy/client/cli/commands/claude_settings.py:378
↓ 18 callersFunctionmessages_route
(secrets: Arc<dyn SecretSource>)
litellm-rust/crates/inference-messages/tests/support/mod.rs:19
↓ 18 callersFunctionminted_id
(created_marker: str)
tests/integration/authorization/_responses_compact.py:80
↓ 18 callersMethodmodel_dump
(self)
litellm/proxy/prompts/prompt_endpoints.py:77
↓ 18 callersMethodmodel_dump
(self)
litellm/llms/a2a/chat/guardrail_translation/handler.py:39
↓ 18 callersMethodmodel_dump
(self)
litellm/integrations/weave/weave_otel.py:51
↓ 18 callersFunctionnew_marker
()
tests/integration/providers/_assistants_route_errors_support.py:82
↓ 18 callersMethodnormalize_llm_passthrough_logging_payload
( self, httpx_response: httpx.Response, response_body: dict | list[dict[str, object]]
litellm/proxy/pass_through_endpoints/success_handler.py:201
↓ 18 callersMethodnullable
()
litellm/proxy/_experimental/out/_next/static/chunks/2j7hjtph8n74b.js:1
↓ 18 callersFunctionobservation_channel
( capacity: NonZeroUsize, )
litellm-rust/crates/host/src/observation.rs:31
↓ 18 callersFunctiononce
()
tests/unit/test_secret_redaction.py:112
↓ 18 callersMethodone
(self, marker: str)
tests/integration/observability/test_langfuse_otel_trace_fields.py:111
↓ 18 callersFunctiononly_call
(wire: Wire, target: str, model: str = MODEL, key: str = API_KEY)
tests/integration/providers/_coralbricks.py:386
↓ 18 callersFunctiononly_request
(server: &MockServer)
litellm-rust/crates/inference-ocr/tests/support/mod.rs:67
↓ 18 callersFunctionparse_databricks_oauth_config
Build a Databricks App OAuth config from an agent's ``litellm_params``. Returns ``None`` when the agent has no ``databricks_oauth`` block. A bloc
litellm/proxy/agent_endpoints/databricks_oauth.py:141
↓ 18 callersFunctionparse_prompt
(body: Mapping[str, JsonValue])
litellm/llms/anthropic/prompt_cache_prediction.py:451
↓ 18 callersMethodpartial
(e)
litellm/proxy/_experimental/out/_next/static/chunks/2j7hjtph8n74b.js:1
↓ 18 callersFunctionpathless
(op: str, value: JsonValue)
tests/integration/management/test_scim_group_pathless_patch.py:38
↓ 18 callersFunctionperform_with
(host: LocalOcrHost)
litellm-rust/crates/inference-ocr/tests/ocr/main.rs:64
↓ 18 callersFunctionpresidio_rig
( gateway: Gateway, tmp_path: Path, provider: Callable[[Request], Reply], *, analyze: Call
tests/integration/observability/test_presidio_streaming_output.py:211
↓ 18 callersFunctionpreview_auto_router_routing
Route a single request through a complexity-router config and report where it landed. Answers "which model would this request get?" for a co
litellm/proxy/management_endpoints/auto_router_endpoints.py:523
↓ 18 callersMethodprobe
(self, path: str, *, params: DateRangeParams)
tests/e2e/quota_management/spend_tracking/spend_e2e_client.py:467
↓ 18 callersMethodprocess_input_messages
( self, data: dict, guardrail_to_apply: "CustomGuardrail", litellm_logging_obj
litellm/llms/bedrock/passthrough/guardrail_translation/handler.py:1359
↓ 18 callersMethodprocess_output_streaming_response
Process output streaming response by applying guardrails to text content. Get the string so far, check the apply guardrail to the st
litellm/llms/anthropic/chat/guardrail_translation/handler.py:1552
↓ 18 callersMethodprocess_output_streaming_response
Process output streaming responses by applying guardrails to text content. Args: responses_so_far: List of LiteLLM Model
litellm/llms/openai/chat/guardrail_translation/handler.py:555
↓ 18 callersMethodreceived
(self)
tests/integration/observability/test_s3_v2_partition_granularity.py:69
↓ 18 callersMethodrecord
(id: str)
litellm/router_rust/core.py:3341
↓ 18 callersFunctionrecorder
(native_effect: BaseException | None = None)
tests/unit/rust_bridge/test_runtime.py:61
← previousnext →3,201–3,300 of 202,479, ranked by callers