MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 39 callersMethodfrom_bytes
(cls, data: bytes)
tests/rust-python-harness/shared/parity/recorded_http.py:46
↓ 39 callersMethodget_listed_tool
(self, server: MCPServer, name: str, caller: ListedToolsCaller | None = None)
litellm/proxy/mcp_server/mcp_server_manager.py:5874
↓ 39 callersMethodget_mcp_client_ip
Extract client IP from a FastAPI request for MCP access control. Security: Only trusts X-Forwarded-For if: 1. use_x_forwarde
litellm/proxy/auth/ip_address_utils.py:284
↓ 39 callersMethodget_models
Calls Baseten's Model API `/v1/models` endpoint and returns the live catalog.
litellm/llms/baseten/chat.py:110
↓ 39 callersMethodis_virtual_key_allowed_to_call_route
Raises Exception if Virtual Key is not allowed to call the route
litellm/proxy/auth/route_checks.py:139
↓ 39 callersMethodjson
(self)
litellm/llms/vertex_ai/batches/handler.py:43
↓ 39 callersFunctionk
()
litellm/proxy/_experimental/out/_next/static/chunks/3lb5gjzjxjxem.js:1
↓ 39 callersFunctionlanded_once
(key: str, marker: str)
tests/integration/authorization/_hidden_alias_budget.py:254
↓ 39 callersMethodlist
(self, thread_id)
tests/unit/llms/openai/test_openai.py:2043
↓ 39 callersFunctionmock_stream
()
tests/unit/proxy/guardrails/guardrail_hooks/test_presidio.py:1474
↓ 39 callersMethodor
(self, lower: Self)
litellm-rust/crates/http/src/settings.rs:87
↓ 39 callersFunctionpost
( gateway: Gateway, endpoint: Endpoint, body: Mapping[str, JsonValue], *, key: str | None = None )
tests/integration/providers/_gemini_long_decode_support.py:269
↓ 39 callersFunctionprepare_key_update_data
( data: UpdateKeyRequest | RegenerateKeyRequest, existing_key_row: LiteLLM_VerificationToken, *,
litellm/proxy/management_endpoints/key_management_endpoints.py:3012
↓ 39 callersMethodprocess_input_messages
Process input by applying guardrails to text content. Handles both string input and list of message objects.
litellm/llms/openai/responses/guardrail_translation/handler.py:797
↓ 39 callersMethodstop
(self, ctx: SessionContext)
tests/unit/harness/core_fakes.py:188
↓ 39 callersMethodtransform_messages
( self, messages: list[AllMessageValues], # mutable-ok: mirrors override contract mod
litellm/llms/openai/openai.py:250
↓ 39 callersMethodtransform_responses_api_input_to_messages
Transform a Responses API input into a list of messages ``replay_reasoning`` belongs to callers whose messages are about to be
litellm/responses/litellm_completion_transformation/transformation.py:1361
↓ 39 callersFunctionupdate_litellm_params_for_health_check
Update the litellm params for health check. - merges `model_info.health_check_params` into the probe request, so a deployment whose provider
litellm/proxy/health_check.py:834
↓ 39 callersFunctionvalidate_key_mcp_servers_against_team
Validate that MCP servers requested on a key are within the allowed scope. When ``existing_key_object_permission`` is provided (key updates)
litellm/proxy/management_helpers/object_permission_utils.py:679
↓ 39 callersFunctionvalidate_url
Validate a user-supplied URL and rewrite it to connect to a validated IP. Resolves the hostname, checks all resolved IPs against blocked net
litellm/litellm_core_utils/url_utils.py:322
↓ 38 callersFunctionV
()
litellm/proxy/_experimental/out/_next/static/chunks/37cr8te-omsl0.js:1
↓ 38 callersMethod_bedrock_converse_messages_pt_async
( messages: list, model: str, llm_provider: str, user_continue_message: ChatCo
litellm/litellm_core_utils/prompt_templates/factory.py:5058
↓ 38 callersFunction_get_rsa_key_and_jwk
(kid: str)
tests/unit/proxy/auth/test_handle_jwt.py:4123
↓ 38 callersFunction_only_request
(wire: Wire)
tests/integration/providers/test_sagemaker_embedding_wire.py:167
↓ 38 callersFunction_picked
( core: RouterCore, model: str = "g", times: int = PICKS, **select_arguments: object )
tests/unit/test_router/core/test_construction_precall_characterization_precall.py:70
↓ 38 callersFunction_prompt
(*markers: str)
tests/integration/providers/test_bedrock_kimi_k3_cache_point_wire.py:303
↓ 38 callersFunction_simple_chunk
(model: str = "gpt-4", content: str = "hi")
tests/unit/proxy/proxy_server/test_streaming_helpers.py:87
↓ 38 callersMethodadd_update
(self, update: SpendUpdateQueueItem)
tests/unit/proxy/db/test_db_spend_update_writer.py:2306
↓ 38 callersMethodafile_content
( self, file_id, litellm_parent_otel_span, llm_router, **data )
tests/unit/proxy/openai_files_endpoint/test_files_endpoint.py:440
↓ 38 callersMethodafile_list
( self, purpose, litellm_parent_otel_span, user_api_key_dict,
tests/unit/proxy/openai_files_endpoint/test_files_endpoint.py:424
↓ 38 callersMethodasync_get_available_deployment
(self, *args: object, **kwargs: object)
tests/unit/router_utils/test_kubernetes_pod_discovery.py:77
↓ 38 callersFunctionattribute_or_none
(source: object, name: str)
litellm/litellm_core_utils/core_helpers.py:161
↓ 38 callersFunctioncall_tool
( gateway: Gateway, key: str, identity: str, name: str, arguments: dict[str, object],
tests/integration/_support/mcp.py:581
↓ 38 callersMethodchat
( self, marker: str, *, headers: Mapping[str, str] | None = None, key: str | None = None, **extra: Jso
tests/integration/observability/test_signoz_delivery.py:316
↓ 38 callersMethodcount_request_cache_breakpoints
( messages: Iterable[object], system: object = None, answered_tool_ids: frozenset[str] | None = None
litellm/integrations/anthropic_cache_control_hook.py:984
↓ 38 callersFunctionerror_status_code
The 4xx or 5xx HTTP status an exception carries as ``status_code`` (an int or a decimal string) or, the way ``ProxyException`` stores it, as a str
litellm/proxy/common_utils/openai_error_payload.py:77
↓ 38 callersMethodfirst
()
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 38 callersFunctionget_instance_fn
(value: str, config_file_path: str | None = None)
litellm/proxy/types_utils/utils.py:15
↓ 38 callersFunctiongroup
( *ids: str, **params: object )
tests/unit/test_router/core/test_retries_health_characterization_retries.py:51
↓ 38 callersFunctionincr_by_float
`INCRBYFLOAT`, with the TTL handled as `expiry` says, or left alone without one. Alone it is `RedisCache.async_increment`, pipelined `RedisBatch.incre
litellm-rust/crates/redis-client/src/commands.rs:325
↓ 38 callersMethodkey_info
(self, key: str)
tests/e2e/proxy_client.py:526
↓ 38 callersFunctionmarker
()
tests/integration/management/_batch_file_caps.py:45
↓ 38 callersMethodnode
(e)
litellm/proxy/_experimental/out/_next/static/chunks/085r5ieqhajig.js:1
↓ 38 callersFunctionprompt
()
tests/integration/caching/response_cache_case.py:274
↓ 38 callersFunctionproxy_exception_for
(exc: Exception, default_status_code: int)
litellm/proxy/common_utils/openai_error_payload.py:137
↓ 38 callersFunctionrebound
(container: object, attribute: str, value: object)
tests/test_litellm_rust/support/isolation.py:47
↓ 38 callersMethodrequests
(self)
tests/integration/security/_sinks.py:97
↓ 38 callersMethodset_cache
(self, key, value, local_only: bool = False, **kwargs)
litellm/caching/dual_cache.py:142
↓ 38 callersMethodsign_request
( self, headers, optional_params, request_data, api_base, api_key=None, model=None, stream=None, fake_
tests/unit/llms/custom_httpx/test_llm_http_handler.py:4701
↓ 38 callersFunctionstatement_timeout_reads
Make ``prisma.read_db.tx()`` hand out one recording transaction whose raw reads answer with ``query_raw``.
tests/unit/proxy/db/fake_prisma_engine.py:41
↓ 38 callersMethodtransform_image_edit_request
( self, model, prompt, image, image_edit_optional_request_params, litellm_params, headers )
tests/unit/llms/custom_httpx/test_llm_http_handler.py:5039
↓ 38 callersMethodtranslate_anthropic_to_openai
This is used by the beta Anthropic Adapter, for translating anthropic `/v1/messages` requests to the openai format. Returns:
litellm/llms/anthropic/messages/adapters/transformation.py:1384
↓ 38 callersMethodvalidate_anthropic_messages_environment
( self, headers, model, messages,
tests/unit/llms/anthropic/test_anthropic_common_utils.py:3372
↓ 38 callersMethodwrite
(self, value: JsonValue)
litellm/proxy/guardrails/_content_utils.py:190
↓ 37 callersFunctionZ
(e,t,r,n,i)
litellm/proxy/_experimental/out/_next/static/chunks/2_9r2jeem0dh8.js:1
↓ 37 callersFunction_admin_auth
()
tests/unit/proxy/management_endpoints/test_team_callback_endpoints.py:77
↓ 37 callersFunction_api_base
(deployment: Mapping[str, object])
tests/unit/router_utils/test_kubernetes_pod_discovery.py:301
↓ 37 callersFunction_key_auth_reaching
A key-authenticated caller whose OWN key grant reaches ``server`` (and optionally its ``tools``). The key grant is the thing an upper-level entit
tests/unit/proxy/mcp_server/auth/test_user_api_key_auth_mcp.py:10988
↓ 37 callersFunction_make_response
(payload: dict)
tests/unit/proxy/guardrails/guardrail_hooks/test_cato_networks.py:343
↓ 37 callersFunction_recording_client
(**response_kwargs)
tests/unit/llms/bedrock/chat/chat_completions/test_bedrock_chat_completions_transformation.py:254
↓ 37 callersFunction_rig
( gateway: Gateway, surface: Surface, *, upstream: Surface | None = None, billing: Billing
tests/integration/mcp/test_mcp_llm_endpoints.py:599
↓ 37 callersFunction_rounds_logging_obj
(recorder: _RoundRecorder, call_id: str)
tests/unit/responses/mcp/test_aresponses_api_with_mcp.py:1742
↓ 37 callersMethodacquire_lock
Attempt to acquire the lock for a specific cron job using Redis. Uses the SET command with NX and EX options to ensure atomicity.
litellm/proxy/db/db_transaction_queue/pod_lock_manager.py:49
↓ 37 callersFunctionas_dict
(value: object)
litellm/router_rust/invoke/shaping.py:84
↓ 37 callersMethodasync_send_batch
(self)
litellm/integrations/sqs.py:245
↓ 37 callersMethodauth_jwt
(self, token: str)
litellm/proxy/auth/handle_jwt.py:1370
↓ 37 callersMethoddisconnect
For closing connection on server shutdown
litellm/proxy/db/base_client.py:39
↓ 37 callersMethodexec_module
(self, module: ModuleType)
litellm/litellm_core_utils/deprecated_package.py:23
↓ 37 callersMethodfind_many
( self, *, where: Mapping[str, object], )
litellm/proxy/roi_calculator/sync.py:74
↓ 37 callersMethodheaders
( &self, _: Extensions, )
litellm-rust/crates/auth-gcp/src/sdk.rs:48
↓ 37 callersFunctioninvoke_agent_a2a
Invoke an agent using the A2A protocol (JSON-RPC 2.0). Supported methods: - message/send: Send a message and get a response - messag
litellm/proxy/agent_endpoints/a2a_endpoints.py:797
↓ 37 callersMethodmodel_dump
(self)
tests/unit/proxy/test_route_a2a_models.py:126
↓ 37 callersMethodobjects
(self)
tests/integration/observability/_s3_v2_support.py:76
↓ 37 callersMethodregistry
(self)
litellm/proxy/management_endpoints/router_weights.py:42
↓ 37 callersMethodresolve
(agent_id: str)
tests/unit/proxy/mcp_server/auth/test_user_api_key_auth_mcp.py:5076
↓ 37 callersFunctionseeded_metrics
(rows: int)
tests/integration/_support/daily_activity.py:243
↓ 37 callersFunctionserver_context
(cert_file: Path, key_file: Path)
tests/integration/_support/tls.py:45
↓ 37 callersFunctionset_native_structured_output
( local_model_cost_map: None, monkeypatch: pytest.MonkeyPatch )
tests/unit/conftest.py:503
↓ 37 callersMethodstop
(self)
tests/unit/proxy/common_utils/test_config_sync_pubsub.py:1138
↓ 37 callersMethodstore
( &self, request: &ResponseCacheRequest<B::Context>, response: Value, now: Dur
litellm-rust/crates/cache-response/src/response.rs:232
↓ 37 callersMethodtext_completion
(self, *args: object, **kwargs: object)
litellm/router_rust/core.py:2615
↓ 37 callersMethodtransform_chat_completion_response_to_responses_api_response
Transform a Chat Completion response into a Responses API response
litellm/responses/litellm_completion_transformation/transformation.py:3433
↓ 37 callersMethodupdate
( self, where: Mapping[str, object], data: Mapping[str, object], )
tests/unit/proxy/skill_submission_rows.py:31
↓ 37 callersMethodwrap_encrypted_content_with_model_id
Wrap encrypted_content with model_id metadata for affinity routing. When Codex or other clients send items with encrypted_content but no ID,
litellm/responses/utils.py:525
↓ 37 callersFunctionwrite
( client: &HashicorpVault, name: &str, value: &SecretValue, context: &SecretWriteContext<Hashi
litellm-rust/crates/python-bridge/src/secrets/vault/operation.rs:61
↓ 36 callersFunctionI
()
litellm/proxy/_experimental/out/_next/static/chunks/37cr8te-omsl0.js:1
↓ 36 callersFunction_call_as
(method: str, path: str, json_body: dict | None = None, auth=_as_admin)
tests/unit/proxy/credential_endpoints/test_endpoints.py:54
↓ 36 callersMethod_check_custom_proxy
for cloudflare ai gateway - https://github.com/BerriAI/litellm/issues/4317 Handles custom api_base for: 1. Gemini (Google AI
litellm/llms/vertex_ai/vertex_llm_base.py:653
↓ 36 callersFunction_drain
(logger: ShadowEvalLogger, target: int = 0)
tests/unit/integrations/test_shadow_eval_logger.py:320
↓ 36 callersFunction_make_guardrail
(**overrides)
tests/unit/proxy/guardrails/guardrail_hooks/test_model_armor.py:2392
↓ 36 callersFunction_make_guardrail
( *, checks: tuple[DecisionModelCheck, ...] = (PROMPT_INJECTION_CHECK,), event_hook: GuardrailEven
tests/unit/proxy/guardrails/guardrail_hooks/test_decision_model.py:366
↓ 36 callersFunction_make_logger
(**kwargs)
tests/unit/integrations/newrelic/test_newrelic_metrics.py:94
↓ 36 callersFunction_make_mock_request
Create a mock Request for fetch_mcp_server tests (IP used for access control).
tests/unit/proxy/management_endpoints/test_mcp_management_endpoints.py:98
↓ 36 callersFunction_make_user_api_key_dict
()
tests/unit/enterprise/proxy/test_managed_files_hook.py:70
↓ 36 callersMethod_mint_bridge_envelope
( cls, *, key_hash=None, user_id=None, server_id="bridge-server-id",
tests/unit/proxy/mcp_server/auth/test_user_api_key_auth_mcp.py:6579
↓ 36 callersMethod_patch
(self, *, teams_by_id, user_teams=None, orgs_by_id=None)
tests/unit/proxy/mcp_server/auth/test_user_api_key_auth_mcp.py:8871
↓ 36 callersFunction_peer
(count: Callable[[Request], Reply] = _counted)
tests/integration/providers/test_vertex_partner_count_tokens_wire.py:177
↓ 36 callersFunction_real_model_budget_limiter
( *, member_spend: Mapping[str, float] | None = None, key_spend: Mapping[str, float] | None = None
tests/unit/proxy/auth/test_user_api_key_auth_request_flow.py:113
↓ 36 callersFunction_row
A one-deployment row; `service_tiers` is that deployment's raw value, `deployments` a per-deployment tuple.
tests/unit/proxy/common_utils/test_codex_model_catalog.py:64
↓ 36 callersFunction_team_row
( *, team_id: str = "team-victim", metadata: dict | None = None, admin_user_id: str = "victim_
tests/unit/proxy/management_endpoints/test_team_callback_endpoints.py:45
← previousnext →1,201–1,300 of 202,479, ranked by callers