MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 23 callersFunctionstrip_bedrock_routing_prefix
Strip LiteLLM routing prefixes from model name.
litellm/llms/bedrock/common_utils.py:1219
↓ 23 callersFunctionsuccess_row
(name: str, *needles: str)
tests/integration/providers/_mantle_gpt_prompt_cache_support.py:615
↓ 23 callersFunctiontarget_of
(request: Request)
tests/integration/_support/bedrock_runtime_peer.py:52
↓ 23 callersMethodtraffic
(self)
tests/integration/routing/test_per_model_rate_limit_fallbacks.py:80
↓ 23 callersFunctiontransform_request_body
Common transformation logic across sync + async Gemini /generateContent calls.
litellm/llms/vertex_ai/gemini/transformation.py:1123
↓ 23 callersFunctionu
(e)
litellm/proxy/_experimental/out/_next/static/chunks/085r5ieqhajig.js:1
↓ 23 callersMethodupdate
(self, *, where: Mapping[str, str | int], data: Mapping[str, str])
litellm/proxy/prompts/prompt_endpoints.py:103
↓ 23 callersFunctionuseFn
(s=void 0)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 23 callersMethodvalidate_environment
( self, headers: dict, model: str, api_key: Optional[str] = None, lite
tests/unit/images/test_image_edit_utils.py:56
↓ 23 callersFunctionvalidated_object_mapping
(value: object)
litellm/llms/anthropic/common_utils.py:406
↓ 23 callersFunctionwithout
``mapping`` without ``keys``, as a new dict in the same order; ``mapping`` is unchanged.
litellm/litellm_core_utils/core_helpers.py:137
↓ 22 callersMethod__anext__
(self)
tests/unit/proxy/test_common_request_processing.py:12126
↓ 22 callersMethod__anext__
(self)
tests/unit/proxy/utils/proxy_logging/test_streaming_hooks.py:194
↓ 22 callersFunction_all_callback_lists
()
tests/unit/proxy/guardrails/test_guardrail_registry.py:750
↓ 22 callersFunction_assert_budget_exceeded_values
(error: litellm.BudgetExceededError)
tests/unit/proxy/auth/test_user_api_key_auth_request_flow.py:184
↓ 22 callersFunction_assert_forwarded
( rig: _Rig, checked: _Checked, response: httpx.Response, marker: str, names: tuple[str, ...] )
tests/integration/providers/test_malformed_tools_wire.py:1688
↓ 22 callersFunction_assert_only
Assert `fired` was called exactly once and every other op seam was not.
tests/unit/batches/test_main.py:106
↓ 22 callersFunction_assert_upstream
(received: iv.Received, *, model_calls: int, searches: int)
tests/integration/streaming/test_interception_converted_stream_options.py:278
↓ 22 callersFunction_audit_upstream
(provider_secret: str, marker: str, targets: list[str])
tests/integration/observability/test_langfuse_delivery.py:718
↓ 22 callersFunction_bedrock_s3_params
()
tests/unit/llms/bedrock/files/test_bedrock_files_transformation.py:3278
↓ 22 callersFunction_body
(request: Request)
tests/integration/providers/test_bedrock_runtime_chat_completions_wire.py:131
↓ 22 callersFunction_build_manager
(monkeypatch: pytest.MonkeyPatch, env: Mapping[str, str])
tests/unit/secret_managers/test_hashicorp_secret_manager.py:44
↓ 22 callersFunction_chat
( model: str, messages: Sequence[Mapping[str, JsonValue]], *, stream: bool = False, cached
tests/integration/providers/test_bedrock_converse_missing_content_wire.py:200
↓ 22 callersFunction_chat_completion_json
(content, model, tool_calls=None)
tests/unit/llms/bedrock/chat/chat_completions/test_bedrock_chat_completions_transformation.py:225
↓ 22 callersFunction_chat_content
(response: httpx.Response)
tests/integration/providers/test_vertex_anthropic_structured_output_wire.py:684
↓ 22 callersFunction_commit_all
(repo: Path, message: str)
tests/unit/test_pre_commit_lint.py:155
↓ 22 callersFunction_common_checks_for_rag_query
( general_settings: Mapping[str, object], valid_token: UserAPIKeyAuth, key_permission: SimpleNames
tests/unit/proxy/auth/test_auth_checks_object_access_and_lookup.py:1929
↓ 22 callersFunction_converse
(rig: _Rig, guardrail: str, body: Mapping[str, JsonValue])
tests/integration/observability/test_bedrock_converse_guardrail_rewrites.py:351
↓ 22 callersMethod_create_httpx_client_factory
Create a custom httpx2 client factory that uses LiteLLM's SSL configuration. This factory follows the same CA bundle path logic as ht
litellm/mcp_client/client.py:979
↓ 22 callersFunction_event
(request_id: str, size: int = 0)
tests/unit/integrations/pointfive/test_logger.py:48
↓ 22 callersFunction_get_spend_logs_metadata
( metadata: dict | None, applied_guardrails: list[str] | None = None, batch_models: list[str] | No
litellm/proxy/spend_tracking/spend_tracking_utils.py:230
↓ 22 callersFunction_key
(scenario: Scenario, team: str | None = None, **limits: JsonValue)
tests/integration/management/test_batch_file_usage_caps.py:139
↓ 22 callersFunction_live_probed_model_ids
( model_list: Sequence[Mapping[str, object]], user_api_key_dict: UserAPIKeyAuth, model: str | None
tests/unit/proxy/health_endpoints/test_health_endpoints.py:3820
↓ 22 callersFunction_logging_obj_stub
()
tests/unit/responses/test_streaming_iterator.py:136
↓ 22 callersFunction_make_iterator
()
tests/unit/responses/test_streaming_iterator_error_events.py:59
↓ 22 callersFunction_make_response
Build a mock httpx response with the given JSON body.
tests/unit/proxy/guardrails/guardrail_hooks/test_promptguard.py:57
↓ 22 callersFunction_marker
()
tests/integration/observability/test_otel_conversation_id.py:31
↓ 22 callersMethod_mask_response_create
Merge deployment defaults, enforce the authorized model, and apply Presidio PII masking to a ``response.create`` message before it is
litellm/responses/streaming_iterator.py:2827
↓ 22 callersFunction_observation
( queries: dict[str, tuple[str, ...]], tests: dict[str, dict[str, tuple[str, ...]]] | None = None,
tests/unit/integration_support/test_routing.py:37
↓ 22 callersFunction_only_request
(wire: Wire)
tests/integration/providers/test_responses_bridge_tool_search_wire.py:473
↓ 22 callersFunction_open_weights_provider
(respx_mock: respx.MockRouter)
tests/unit/proxy/pass_through_endpoints/test_codex_passthrough_endpoints.py:412
↓ 22 callersFunction_override_openai_response_model
Force the OpenAI-compatible `model` field in the response to match what the client requested. LiteLLM internally prefixes some provider/depl
litellm/proxy/common_request_processing.py:1792
↓ 22 callersFunction_owned_name
(suffix: str, variant: str, provider: str)
tests/integration/providers/test_malformed_tools_wire.py:1727
↓ 22 callersFunction_pdf_base64
`xobjects` are numbered from 4 + 2 * len(pages), every page lists the first one as its /X0 XObject, and every page's content stream ends with `dra
tests/unit/litellm_core_utils/test_token_counter.py:2672
↓ 22 callersMethod_post_input_tokens
( self, body: dict[str, Any], path: str = "/v1/responses/input_tokens", counte
tests/unit/proxy/response_api_endpoints/test_endpoints.py:5508
↓ 22 callersFunction_prisma_table
( repository: BaseRepository[_RepositoryModelT], )
litellm/proxy/management_endpoints/key_management_endpoints.py:314
↓ 22 callersFunction_prompt_storage_config
( tmp_path: Path, *, store_prompts: bool = True, local_cache: bool = False, model_list: tu
tests/integration/spend/test_spend_log_tool_payload_content.py:33
↓ 22 callersFunction_register
(monkeypatch, *callbacks: CustomLogger)
tests/unit/proxy/test_model_list_callback_filter.py:83
↓ 22 callersFunction_responses_denial_config
(tmp_path: Path, identity: str, denial: str = _RESPONSES_DENIAL)
tests/integration/observability/test_guardrail_effects.py:1149
↓ 22 callersFunction_rig
( gateway: Gateway, tmp_path: Path, marker: str, *, sink: Callable[[Request], Reply] = _bl
tests/integration/observability/test_cache_hit_guardrail_metrics.py:186
↓ 22 callersFunction_roles
(messages: object)
tests/unit/litellm_core_utils/prompt_templates/test_litellm_core_utils_prompt_templates_mid_conversation_system.py:26
↓ 22 callersFunction_router_for
(model_list: Sequence[Mapping[str, object]])
tests/unit/proxy/health_endpoints/test_health_endpoints.py:2424
↓ 22 callersMethod_setup
(journal: list, *, status="completed", output_file_id=_CLAIM_OUTPUT_FILE_ID, error_file_id=None)
tests/unit/proxy/common_utils/test_check_batch_cost.py:3896
↓ 22 callersFunction_steps_that_ran
(rig: _Rig)
tests/integration/observability/test_guardrail_pipeline_applied_header.py:506
↓ 22 callersMethod_store_originals
(self, store_key: str, originals: dict[str, str])
litellm/proxy/guardrails/guardrail_hooks/compresr/compresr.py:665
↓ 22 callersFunction_streamed
( gateway: Gateway, endpoint: Endpoint, body: Mapping[str, JsonValue] | None = None, *, co
tests/integration/providers/test_bedrock_stream_timeout_wire.py:242
↓ 22 callersFunction_streamed
(body: Mapping[str, object])
tests/unit/responses/mcp/test_chat_completions_handler.py:1781
↓ 22 callersMethod_strip_prisma_query_params
Rewrite a Prisma-dialect URL for libpq: drop the Prisma-only params (connection_limit, pool_timeout, schema, pgbouncer, sslaccept, ...) and
litellm-proxy-extras/litellm_proxy_extras/utils.py:729
↓ 22 callersFunction_success_row
(model: str, api_base: str)
tests/integration/providers/test_bedrock_runtime_chat_completions_wire.py:162
↓ 22 callersFunction_team
( *members: str, team_id: str = TEAM_ID, default_budget_id: str | None = None, admins: Sequenc
tests/unit/proxy/management_endpoints/management_v1/test_teams.py:226
↓ 22 callersFunction_trace_body
(kind: str, model: str, marker: str, metadata: Mapping[str, JsonValue] | None)
tests/integration/observability/test_langfuse_delivery.py:447
↓ 22 callersFunction_transform
(model, params, litellm_params=None)
tests/unit/llms/anthropic/messages/native/test_anthropic_messages_effort.py:29
↓ 22 callersMethod_transform_request
Transform the request from RerankRequest format to Bedrock format.
litellm/llms/bedrock/rerank/transformation.py:59
↓ 22 callersFunction_two_leg_ok
(bearer: str)
tests/unit/proxy/mcp_server/outbound_credentials/test_resolver.py:1109
↓ 22 callersFunction_unlimited_throttle
A throttle wired to real in-memory stores with limits no test can reach.
tests/unit/proxy/auth/test_login_utils.py:26
↓ 22 callersFunction_upstream
(down: threading.Event | None = None)
tests/integration/routing/test_deployment_mode_routing_wire.py:107
↓ 22 callersFunction_usage
Usage as the spend log records it; `prompt_tokens` is the inclusive total.
tests/unit/proxy/spend_tracking/test_savings.py:474
↓ 22 callersMethodaclose
(self)
tests/unit/proxy/pass_through_endpoints/test_pass_through_endpoints.py:6203
↓ 22 callersFunctionadapt_messages_to_generic_oci_standard
Convert an OpenAI-format message array to OCI GENERIC format.
litellm/llms/oci/chat/generic.py:170
↓ 22 callersFunctionanswering
(output: Callable[[str], Sequence[Mapping[str, JsonValue]]])
tests/integration/streaming/faked_responses_case.py:128
↓ 22 callersMethodapp
(self)
tests/integration/_support/upstream.py:637
↓ 22 callersMethodas_str
(&self)
litellm-rust/crates/router-core/src/config.rs:30
↓ 22 callersFunctionassert_billed
(row: Mapping[str, JsonValue], alias: str, call_type: str, model: str = MODEL)
tests/integration/providers/_coralbricks.py:417
↓ 22 callersMethodasync_post_call_streaming_iterator_hook
Passes the entire stream to the guardrail This is useful for guardrails that need to see the entire response, such as PII masking.
litellm/proxy/guardrails/guardrail_hooks/unified_guardrail/unified_guardrail.py:1125
↓ 22 callersMethodasync_set_cache
(self, key: str, value: object, **kwargs: object)
tests/unit/caching/test_redis_batch.py:133
↓ 22 callersMethodasync_upload_data_to_s3
( self, batch_logging_element: s3BatchLoggingElement, prepared_put: _PreparedPut | Non
litellm/integrations/s3_v2.py:621
↓ 22 callersMethodattempt_db_reconnect
(self, *, reason, timeout_seconds=None, lock_timeout_seconds=None)
tests/unit/proxy/common_utils/test_reset_budget_job.py:2938
↓ 22 callersFunctionbudget
(model: str, period: str, limit: float = 100)
tests/integration/management/test_budget_reset_windows.py:163
↓ 22 callersMethodbuild_request
( self, method: str, url: str, *, headers: Mapping[str, str],
litellm/proxy/agent_endpoints/kill_switch.py:140
↓ 22 callersFunctionc
()
litellm/proxy/_experimental/out/_next/static/chunks/085r5ieqhajig.js:1
↓ 22 callersFunctioncall_with_db_reconnect_retry
Run a Prisma read coroutine with one transport-reconnect-and-retry. The canonical "self-heal a transient DB transport blip" wrapper used by `
litellm/proxy/db/exception_handler.py:620
↓ 22 callersFunctioncallback_config_error
( callback_name: str | None, callback_vars: Mapping[str, str] | None, callback_type: str | None = None )
litellm/proxy/common_utils/callback_config_validation.py:26
↓ 22 callersMethodclock
(self, clock: Arc<dyn Clock>)
litellm-rust/crates/router-core/src/lib.rs:271
↓ 22 callersMethodclose
(self)
tests/unit/integrations/test_langfuse.py:1375
↓ 22 callersFunctioncommit_window_spend_updates
Apply aggregated window increments to LiteLLM_BudgetWindowSpend. An increment at or behind the row's window_start adds into the row (this is
litellm/proxy/db/budget_window_spend_writer.py:385
↓ 22 callersFunctionconvert_to_streaming_response
( response_object: dict | None = None, )
litellm/litellm_core_utils/llm_response_utils/convert_dict_to_response.py:388
↓ 22 callersFunctioncost_calculator
fal.ai image generation cost calculator
litellm/llms/fal_ai/cost_calculator.py:176
↓ 22 callersMethodcount_tokens
(self, model: str, prefix: str = "")
tests/integration/routing/test_anthropic_overloaded_cooldown_owned_proxy.py:134
↓ 22 callersMethodcredentials
(self)
tests/unit/llms/bedrock/event_loop_probe.py:45
↓ 22 callersFunctiondecode_soniox_form_params
Multipart form fields reach the proxy as strings; restore the JSON types Soniox expects.
litellm/llms/soniox/audio_transcription/transformation.py:197
↓ 22 callersFunctiondescribe_upstream_http_failure
(exc: BaseException)
litellm/proxy/mcp_server/mcp_debug.py:615
↓ 22 callersMethoddispatch
()
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 22 callersFunctioneC
()
litellm/proxy/_experimental/out/_next/static/chunks/37cr8te-omsl0.js:1
↓ 22 callersMethoderror
(self)
tests/unit/proxy/proxy_server/test_streaming_helpers.py:2099
↓ 22 callersFunctionev
(e,s,r)
litellm/proxy/_experimental/out/_next/static/chunks/1a2lzi3ursud4.js:1
↓ 22 callersMethodexpand_tool_permissions
Rewrite an ``mcp_tool_permissions`` dict keyed by id/name/alias so every key is a concrete server_id where possible. Tool lists from
litellm/proxy/mcp_server/mcp_server_manager.py:7470
↓ 22 callersFunctionfake_provider
(*, echo_request: bool = True)
tests/e2e_harness/test_provider_edge.py:131
↓ 22 callersMethodfind_unique
(self, where: Mapping[str, str | None])
enterprise/litellm_enterprise/proxy/vector_stores/endpoints.py:53
↓ 22 callersFunctionframe
(event: Mapping[str, JsonValue])
tests/integration/_support/responses_stream.py:18
↓ 22 callersFunctionget_aws_dns_suffix
(aws_region_name: str | None)
litellm/litellm_core_utils/aws_partition.py:38
← previousnext →2,401–2,500 of 202,479, ranked by callers