MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 4 callersFunction_reject
(model: str, reason: str)
litellm/router_strategy/complexity_router/context_compaction.py:174
↓ 4 callersFunction_reject_encrypted_litellm_params
Raise 400 if a client-supplied litellm_params value carries the encrypted-value prefix.
litellm/proxy/guardrails/guardrail_endpoints.py:105
↓ 4 callersFunction_reject_realtime_session
( websocket: WebSocket, user_api_key_dict: UserAPIKeyAuth, *, code: int, reason: str,
litellm/proxy/proxy_server.py:14192
↓ 4 callersFunction_rejecting
(status: int, error_type: str = "invalid_request_error")
tests/integration/providers/test_vertex_partner_count_tokens_wire.py:144
↓ 4 callersFunction_rejecting_client
()
tests/unit/llms/openai/test_openai.py:772
↓ 4 callersMethod_rejection
(message: str, *, openai_code: str | None = None)
litellm/proxy/guardrails/guardrail_hooks/aim/aim.py:213
↓ 4 callersFunction_relay_logging_result
(model: str, endpoint: str, body, status_code: int = 200)
tests/unit/llms/azure/passthrough/test_azure_passthrough_transformation.py:105
↓ 4 callersFunction_relayed_json
(path: str, body: dict)
tests/unit/llms/vllm/passthrough/test_vllm_passthrough_transformation.py:40
↓ 4 callersFunction_relayed_url
(database_url: str, port: int)
tests/integration/_support/database_relay.py:343
↓ 4 callersMethod_release
What a failed or cancelled attempt still holds, whatever its logging object (shared across attempts, it logs only the first failure). Tokens a
litellm/router_rust/core.py:5238
↓ 4 callersMethod_release_async_refresh_lock
Decrement the refcount and drop the lock entry when it reaches zero. Must be called only after the caller has released ``lock`` (i.e. once
litellm/llms/vertex_ai/vertex_llm_base.py:427
↓ 4 callersFunction_release_realtime_budget_reservation
(user_api_key_dict: UserAPIKeyAuth)
litellm/proxy/proxy_server.py:14164
↓ 4 callersFunction_released_on_exit
(release: threading.Event)
tests/integration/providers/test_gemini_long_decode_chaos.py:155
↓ 4 callersFunction_remote_urls_to_inline
( messages: Iterable[AllMessageValues], should_inline: Callable[[RemoteMedia], bool] )
litellm/litellm_core_utils/prompt_templates/image_handling.py:534
↓ 4 callersMethod_remove_internal_litellm_callbacks
Creates a filtered list of callbacks, excluding internal LiteLLM callbacks. Args: callbacks: List of callback functions/
litellm/litellm_core_utils/litellm_logging.py:5146
↓ 4 callersMethod_remove_oauth_discovery_slot
(self, server_id: str)
litellm/proxy/mcp_server/mcp_server_manager.py:2103
↓ 4 callersFunction_render
(call_type: str, table: str | None, operation: str | None = None)
tests/unit/proxy/db/test_prisma_query_span.py:343
↓ 4 callersFunction_render_legacy_login_page
(env_overrides, general_settings)
tests/unit/proxy/management_endpoints/test_ui_sso.py:9393
↓ 4 callersFunction_render_ollama
(template, monkeypatch, messages=TEMPLATE_MESSAGES)
tests/unit/litellm_core_utils/prompt_templates/test_litellm_core_utils_prompt_templates_factory.py:9036
↓ 4 callersFunction_repin_params
(deployment_id: str, caller: str = "caller-1")
tests/unit/router_utils/pre_call_checks/test_session_id_affinity.py:52
↓ 4 callersFunction_replay
(block_types: tuple[str, ...], second_turn: Result[AnthropicMessagesResponse])
tests/e2e_harness/claude_code/test_http_probe.py:39
↓ 4 callersFunction_replay_history
Turn a real first-turn answer into a well-formed two-turn history. Every client-side `tool_use` the model emitted gets a `tool_result` keyed on
tests/e2e/claude_code/http_probe.py:202
↓ 4 callersFunction_replayed
(rig: _StoredRig, model: str, previous: str, items: Sequence[JsonValue])
tests/integration/providers/test_responses_bridge_message_cache_control_wire_chaos.py:444
↓ 4 callersFunction_replica
(redis: _SharedRedisFake)
tests/unit/proxy/anthropic_endpoints/test_gateway_endpoints.py:122
↓ 4 callersMethod_reply
(self, body: bytes)
tests/unit/proxy/guardrails/test_custom_code_security.py:419
↓ 4 callersFunction_reply_using
(prompt_tokens: int, completion_tokens: int)
tests/unit/test_router/test_io_token_rate_limits.py:1585
↓ 4 callersFunction_report
(pulls: tuple[ROIPullRecord, ...] | None = None)
tests/unit/proxy/roi_calculator/test_analytics.py:47
↓ 4 callersFunction_request
(route: str, stream: bool, wire: Wire, marker_hex: str)
tests/integration/sdk/test_bedrock_native_output_fallback_sdk.py:93
↓ 4 callersFunction_request
()
tests/unit/proxy/test_moyai_endpoints.py:18
↓ 4 callersFunction_request
( *, headers: Optional[Dict[str, str]] = None, client: Optional[Tuple[str, int]] = ("203.0.113.7",
tests/unit/proxy/auth/test_resolvers_seam.py:14
↓ 4 callersMethod_request
( self, path: str, params: Mapping[str, str | int] | None = None, attempt: int = 0 )
litellm/proxy/roi_calculator/gitlab.py:131
↓ 4 callersMethod_request
Run one over-budget request for `model`, deriving the exemption the way auth does.
tests/unit/proxy/test_zero_cost_model_budget_bypass.py:650
↓ 4 callersFunction_request_body
(respx_mock)
tests/unit/llms/edenai/responses/test_edenai_responses_transformation.py:102
↓ 4 callersMethod_request_context_fit
( self, resolved_messages: Sequence[Mapping[str, object]] | None, request_kwargs: Mapp
litellm/router_strategy/complexity_router/complexity_router.py:3625
↓ 4 callersFunction_request_data
()
tests/unit/proxy/guardrails/guardrail_hooks/ibm_guardrails/test_ibm_detector.py:50
↓ 4 callersFunction_request_fields
(value: object)
litellm/proxy/litellm_pre_call_utils.py:1585
↓ 4 callersFunction_request_header
A header from the inbound request, when LiteLLM kept it on the request data.
litellm/proxy/guardrails/guardrail_hooks/straiker/straiker.py:400
↓ 4 callersFunction_request_json
(request: httpx.Request)
tests/unit/llms/hosted_vllm/embedding/test_hosted_vllm_embedding_transformation.py:31
↓ 4 callersFunction_request_layers
(data: object)
litellm/proxy/guardrails/guardrail_hooks/tool_permission.py:277
↓ 4 callersFunction_request_list
(data: object, key: str)
litellm/proxy/guardrails/guardrail_hooks/tool_permission.py:251
↓ 4 callersFunction_request_params
(metadata: dict[str, object])
tests/unit/litellm_core_utils/test_redact_messages.py:85
↓ 4 callersFunction_request_problems
(kwargs: Mapping[str, object])
tests/unit/test_router/test_router_callback_hook_sequence.py:109
↓ 4 callersMethod_request_retry_count
(request_kwargs: Mapping[str, object] | None)
litellm/router_utils/kubernetes_pod_discovery.py:248
↓ 4 callersFunction_request_tags_after_router_consumption
(metadata: object, model: str)
litellm/router_strategy/tag_based_routing.py:477
↓ 4 callersMethod_request_that_disconnects
()
tests/unit/proxy/test_common_request_processing.py:4892
↓ 4 callersMethod_request_value
(request_kwargs: object, key: str)
litellm/integrations/anthropic_cache_control_hook.py:796
↓ 4 callersFunction_request_with_body
(body: bytes)
tests/unit/proxy/common_utils/test_http_parsing_utils.py:1619
↓ 4 callersMethod_request_with_interaction
( self, session: ClientSession, request: Callable[[InputResponses | None, str | None],
litellm/mcp_client/client.py:1134
↓ 4 callersFunction_request_with_output_format
( output_format: object, litellm_params: GenericLiteLLMParams )
tests/unit/llms/anthropic/messages/native/test_anthropic_messages_structured_outputs.py:123
↓ 4 callersMethod_request_with_xff
(self)
tests/unit/proxy/auth/test_mcp_ip_filtering.py:420
↓ 4 callersFunction_request_without_sdk_transform
( data: Mapping[str, object], timeout: float | httpx.Timeout )
litellm/llms/openai/openai.py:397
↓ 4 callersFunction_requested_end_user_budget_id
A ``metadata`` body replaces the stored metadata wholesale, so one without the field clears it.
litellm/proxy/management_endpoints/key_management_endpoints.py:3582
↓ 4 callersFunction_requested_model
(body: dict[str, object])
tests/_fake_openai_endpoint_server.py:63
↓ 4 callersMethod_require_config
(self)
litellm/llms/vertex_ai/audio_transcription/realtime_transformation.py:301
↓ 4 callersMethod_require_config
(self)
litellm/llms/meta/realtime/transformation.py:575
↓ 4 callersFunction_require_qwen_ai_platform_api_key
(api_key: str | None)
litellm/llms/dashscope/qwen_ai_platform.py:24
↓ 4 callersFunction_require_qwencloud_api_key
(api_key: str | None)
litellm/llms/dashscope/qwencloud.py:24
↓ 4 callersMethod_require_turn
(self)
litellm/llms/vertex_ai/audio_transcription/realtime_transformation.py:296
↓ 4 callersFunction_required_turn_id
(message: Mapping[str, JsonValue], event: str)
litellm/llms/meta/realtime/transformation.py:259
↓ 4 callersFunction_rerank_through_transport
(payload: object, *, is_async: bool)
tests/unit/llms/bedrock/rerank/test_bedrock_rerank_header_forwarding.py:517
↓ 4 callersMethod_reservation
()
tests/unit/litellm_core_utils/test_core_helpers.py:122
↓ 4 callersFunction_reserve
(route: str)
tests/unit/proxy/spend_tracking/test_budget_reservation.py:59
↓ 4 callersFunction_reserve_a_ptu_minute
( cache: DualCache, call_id: str, clock: list[datetime] | None = None )
tests/unit/proxy/hooks/test_parallel_request_limiter_v3.py:9438
↓ 4 callersFunction_reserve_tpm_for_owner_call
(handler, local_cache, api_key: str, call_id: str)
tests/unit/proxy/hooks/test_parallel_request_limiter_v3.py:3733
↓ 4 callersFunction_reserved
(cache: DualCache, itpm_reserved: int, otpm_reserved: int)
tests/unit/test_router/test_io_token_rate_limits.py:1936
↓ 4 callersFunction_reset_observations
(upstream: httpx.Client)
tests/integration/authorization/test_access_group_model_listing.py:82
↓ 4 callersMethod_resolve_api_base
Attempt to ensure that the API base is set, preferring the user-provided key over the secret manager key (``DATAROBOT_ENDPOINT``). If
litellm/llms/datarobot/chat/transformation.py:28
↓ 4 callersMethod_resolve_batch_input_file_fetch_params
Map proxy-facing file IDs to provider file IDs and credentials. Model-embedded IDs (``file-<base64>``) are not unified managed-file
litellm/proxy/hooks/batch_rate_limiter.py:534
↓ 4 callersMethod_resolve_capture_mode
Return the active capture mode for this request. Precedence: 1. ``litellm.turn_off_message_logging=True`` forces ``NO_CONTENT``
litellm/integrations/opentelemetry.py:671
↓ 4 callersMethod_resolve_db_litellm_param
(self, key: str, value: object)
litellm/proxy/proxy_server.py:7968
↓ 4 callersFunction_resolve_display_name_to_original
Translate a display-name override back to the original prefixed tool name. When a client received a customised display name from tools/list (e.g.
litellm/proxy/mcp_server/operations.py:1869
↓ 4 callersFunction_resolve_key_models_for_auth_check
Expand key model sentinels before auth checks. ``all-team-models`` means inherit the parent team's allowlist -- same semantics as ``get_
litellm/proxy/auth/auth_checks.py:5299
↓ 4 callersFunction_resolve_mcp_server_by_name_or_id
(lookup: str, client_ip: str | None)
litellm/proxy/mcp_server/discoverable_endpoints.py:581
↓ 4 callersFunction_resolve_model
Canonical ``(model, provider)``, or ``None`` when the model cannot be resolved. The two sides of the comparison arrive spelled differently: the s
litellm/proxy/spend_tracking/savings.py:60
↓ 4 callersFunction_resolve_oauth2_server_for_root_endpoints
Resolve the MCP server for root-level OAuth endpoints (no server name in path). When the MCP SDK hits root-level endpoints like /register, /
litellm/proxy/mcp_server/discoverable_endpoints.py:592
↓ 4 callersFunction_resolve_responses_api_provider_config
( model: str, custom_llm_provider: str, model_info: object, api_base: str | None )
litellm/responses/main.py:746
↓ 4 callersFunction_resolve_scim_user_role
Resolve a user's global proxy role from their SCIM groups. Returns None when no admin group is configured, signalling callers to leave t
litellm/proxy/management_endpoints/scim/scim_v2.py:457
↓ 4 callersMethod_resolve_target_server_names
Resolve the target MCP server names exactly as downstream routing does (``server.py::extract_mcp_auth_context``). For ``/mcp
litellm/proxy/mcp_server/auth/user_api_key_auth_mcp.py:1764
↓ 4 callersFunction_resolve_team_access_group_resources
Return a copy of the team info with access_group_models / mcp_server_ids / agent_ids / details resolved from its access groups.
litellm/proxy/management_endpoints/team_endpoints.py:5404
↓ 4 callersMethod_resolve_tracer_for_kwargs
Resolve project name once and return the matching tracer.
litellm/integrations/arize/arize_phoenix.py:180
↓ 4 callersFunction_resolve_upstream
Map an incoming request path to ``(upstream_base_url, real_path)``. A path under ``/__recorder_upstream/<host>/...`` targets that provider; any
tests/_openai_record_replay_proxy.py:86
↓ 4 callersMethod_resolved_key
(self, args, obj=None)
tests/unit/proxy/client/cli/test_auth_commands.py:1426
↓ 4 callersMethod_resource_table
(self)
litellm/llms/base_llm/managed_resources/base_managed_resource.py:95
↓ 4 callersFunction_resp
(payload)
tests/unit/llms/fastcrw/search/test_transformation.py:144
↓ 4 callersFunction_responder
( usage: dict[str, JsonValue] | None = None, headers: dict[str, str] | None = None )
tests/integration/spend/test_vertex_regional_uplift_spend.py:91
↓ 4 callersFunction_response
(identity: str, status: str = "completed")
tests/integration/providers/test_responses_core_wire.py:65
↓ 4 callersFunction_response
(identity: str, status: str = "completed")
tests/integration/providers/test_responses_lifecycle_wire.py:89
↓ 4 callersFunction_response
(payload: dict, status_code: int = 200)
tests/unit/proxy/guardrails/guardrail_hooks/test_llm_shield_proxy.py:51
↓ 4 callersFunction_response
(payload: object, status_code: int = 200)
tests/unit/llms/volcengine/test_volcengine_video_transformation.py:38
↓ 4 callersFunction_response
(status_code: int, payload: object)
tests/unit/integrations/pointfive/test_upload_client.py:24
↓ 4 callersMethod_response
(self, *blocks)
tests/unit/proxy/guardrails/guardrail_hooks/test_tool_permission.py:1789
↓ 4 callersFunction_response_cache
(redis_cache: FakeRedisCache)
tests/unit/caching/test_request_redis_batch_post_call.py:128
↓ 4 callersFunction_response_id
(served: _Served)
tests/integration/providers/test_bedrock_runtime_chat_completions_chaos.py:133
↓ 4 callersFunction_response_scans
(requests: tuple[Request, ...])
tests/integration/observability/test_panw_airs_block_masked_response.py:176
↓ 4 callersFunction_response_stream_bytes
(raw_id: str = RAW_RESPONSE_ID)
tests/unit/proxy/pass_through_endpoints/test_managed_id_rewriter.py:60
↓ 4 callersFunction_response_with_tool_calls
(*names: str)
tests/unit/proxy/db/test_spend_log_tool_index.py:30
↓ 4 callersFunction_responses
(model: str, prompt: str, stream: bool = False)
tests/integration/providers/test_bedrock_mantle_context_overflow_fallbacks_wire.py:335
↓ 4 callersFunction_responses
(native: _Native, model: str, input: Sequence[JsonValue], *, stream: bool = False)
tests/integration/providers/test_openai_responses_prompt_cache_breakpoint_wire.py:79
↓ 4 callersMethod_responses_api_response
()
tests/unit/proxy/guardrails/guardrail_hooks/unified_guardrails/test_unified_guardrail.py:605
↓ 4 callersFunction_responses_api_response_with_text
(text="hello world")
tests/unit/litellm_core_utils/test_litellm_logging.py:7050
← previousnext →18,801–18,900 of 202,479, ranked by callers