MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 5 callersFunction_refusal_message_body
(stop_reason: str, stop_details: dict | None)
tests/unit/llms/anthropic/chat/test_anthropic_chat_transformation.py:10461
↓ 5 callersFunction_refusal_report
(proxy: Gateway, callback: httpx.Response, victim_token: str)
tests/integration/authorization/test_sso_blank_identity.py:454
↓ 5 callersFunction_refused
(response: httpx.Response, status: int, error_type: str | None = None)
tests/integration/authorization/test_team_member_permissions.py:113
↓ 5 callersFunction_regenerate_policy_mocks
(policy, insert_deprecated_key: AsyncMock, persist: AsyncMock)
tests/unit/proxy/management_endpoints/test_key_management_endpoints.py:13796
↓ 5 callersFunction_regenerate_under_policy
(mock_prisma_client, existing_key, data)
tests/unit/proxy/management_endpoints/test_key_management_endpoints.py:13835
↓ 5 callersFunction_register
(scenario: Scenario, wire: Wire, group: str | None = None)
tests/integration/providers/test_responses_core_wire.py:278
↓ 5 callersFunction_register
(scenario: Scenario, wire: Wire, provider: Literal["claude", "gemini", "openai"])
tests/integration/providers/test_responses_compaction_items_wire.py:314
↓ 5 callersFunction_register
(client: PassthroughClient, resources: ResourceManager, params: LiteLLMParamsBody)
tests/e2e/llm_translation/test_chat_tool_round_trip_e2e.py:68
↓ 5 callersFunction_register
(client: ComplexityRouterClient, resources: ResourceManager, group: str, params: LiteLLMParamsBody)
tests/e2e/router/test_reliability_routing_strategies_e2e.py:78
↓ 5 callersMethod_register
( self, registry: StrategyRegistry, deployment: Deployment, strategy: object, strategy_label: str
litellm/router_rust/steps/prerouting.py:330
↓ 5 callersMethod_register
(self, client: PassthroughClient, resources: ResourceManager, prefix: str)
tests/e2e/llm_translation/test_chat_completions_regression_e2e.py:1106
↓ 5 callersMethod_register
(self, proxy: ProxyClient, resources: ResourceManager)
tests/e2e/llm_translation/test_messages_azure_foundry_e2e.py:46
↓ 5 callersFunction_register_backend
( proxy: ProxyClient, resources: ResourceManager, litellm_params: LiteLLMParamsBody )
tests/e2e/llm_translation/test_realtime_http_e2e.py:119
↓ 5 callersFunction_register_bedrock_model
( client: PassthroughClient, resources: ResourceManager, prefix: str, backend: str )
tests/e2e/llm_translation/test_bedrock_provider_matrix_e2e.py:76
↓ 5 callersFunction_register_models
( proxy: ProxyClient, stack: ExitStack, registrations: tuple[tuple[str, LiteLLMParamsBody], ...] )
tests/e2e/router/test_auto_router_regressions_e2e.py:211
↓ 5 callersMethod_register_off_peak_model
(self, off_peak_pricing: OffPeakPricing)
tests/unit/llms/perplexity/test_perplexity_cost_calculator.py:254
↓ 5 callersFunction_register_off_peak_reasoning_model
( model_name: str, off_peak_pricing: dict, reasoning_rate: float | None = 4e-6, **service_tier_rates: floa
tests/unit/litellm_core_utils/llm_cost_calc/test_llm_cost_calc_utils.py:1014
↓ 5 callersFunction_register_openai_image
(proxy: ProxyClient, resources: ResourceManager)
tests/e2e/llm_translation/test_image_generation_e2e.py:54
↓ 5 callersMethod_reject_if_rate_limit_unverifiable
(self, failed_operation: str, error: BaseException)
litellm/proxy/hooks/parallel_request_limiter_v3.py:1280
↓ 5 callersFunction_reject_mcp_proxy_operation
()
litellm/proxy/mcp_server/operations.py:3703
↓ 5 callersFunction_rejected
(status_code: int, message: str)
tests/unit/llms/vertex_ai/context_caching/test_known_cached_contents.py:437
↓ 5 callersFunction_relay_logging_obj
(endpoint: str, request_data: dict, callbacks: list[CustomLogger] | None = None)
tests/unit/llms/vllm/passthrough/test_vllm_passthrough_transformation.py:18
↓ 5 callersMethod_release_carrier
Release the routed provider a removed carrier was holding open.
litellm/integrations/otel/logger.py:571
↓ 5 callersMethod_remember
(self, key: _HuggingFaceTokenizerKey, outcome: _HuggingFaceTokenizerLoadOutcome)
litellm/utils.py:2993
↓ 5 callersFunction_reminder_conversation
The shape Claude Code sends mid-session: cached system prompt, turns, a reminder right after a user turn, an assistant turn, a fresh user turn.
tests/unit/llms/anthropic/chat/test_anthropic_chat_transformation.py:7387
↓ 5 callersMethod_remove_key
(self, key: str)
litellm/caching/llm_caching_handler.py:39
↓ 5 callersFunction_remove_stateful_session_tracking
(session_id: str)
litellm/proxy/mcp_server/server.py:747
↓ 5 callersMethod_remove_ttl_from_cache_control
Remove unsupported fields from cache_control for Bedrock. Bedrock only supports `type` and `ttl` in cache_control. It does NOT suppo
litellm/llms/bedrock/messages/invoke_transformations/anthropic_claude_transformation.py:238
↓ 5 callersFunction_render
(teams=(), **overrides)
tests/unit/proxy/common_utils/html_forms/test_native_client_consent.py:7
↓ 5 callersFunction_replace_file_id_in_response
Replace the provider file ID in the response with the original managed file ID. This ensures that when a user sends a managed file ID, they
litellm/proxy/vector_store_files_endpoints/endpoints.py:267
↓ 5 callersFunction_replay
(marker: str)
tests/integration/sdk/test_responses_bridge_tool_search_sdk.py:35
↓ 5 callersMethod_replay
(self)
tests/rust-python-harness/shared/parity/replay.py:73
↓ 5 callersFunction_replayed
The deltas of the first identical stream served without an upstream call, after one stream filled the cache. A streamed request can reach the ups
tests/integration/caching/test_response_cache_stream_replay.py:130
↓ 5 callersFunction_replayed
(*messages: Mapping[str, object])
tests/unit/llms/anthropic/chat/test_anthropic_chat_transformation.py:4004
↓ 5 callersFunction_replayed_assistant_turn
(wire: Wire)
tests/integration/providers/test_bedrock_converse_redacted_thinking_wire.py:203
↓ 5 callersFunction_replayed_history
(marker: str)
tests/integration/providers/test_responses_bridge_tool_search_replay.py:189
↓ 5 callersFunction_replayed_turn
( gateway: Gateway, wire: Wire, *, endpoint: Endpoint = "chat", model: str, marker: st
tests/integration/providers/test_claude_thinking_content_replay_wire.py:90
↓ 5 callersFunction_replica_identities
(schema: str)
tests/integration/database/migrations/test_replica_identity_full.py:29
↓ 5 callersFunction_reply
(response_id: str, stream: bool, parts: Sequence[Mapping[str, JsonValue]] = ({"text": _ANSWER},))
tests/integration/providers/test_gemini_thinking_replay_wire.py:197
↓ 5 callersFunction_report
(*, dropped_records: int = 3)
tests/unit/proxy/telemetry/test_store.py:42
↓ 5 callersFunction_request
(proxy: Gateway, model: str, marker: str)
tests/integration/observability/test_arize_otel_v2_openinference_family.py:168
↓ 5 callersFunction_request
(surface: str, model: str, pages: int, marker: str)
tests/integration/routing/test_pdf_document_pre_call_checks_owned_proxy.py:92
↓ 5 callersMethod_request
(self, messages: list)
tests/unit/proxy/test_common_request_processing.py:6067
↓ 5 callersMethod_request
(self, scope)
tests/unit/proxy/auth/test_auth_utils.py:4864
↓ 5 callersFunction_request_for
(method: str, path: str, body: bytes)
tests/unit/proxy/response_api_endpoints/test_endpoints.py:1152
↓ 5 callersFunction_request_history
(http_mock: requests_mock.Mocker)
tests/unit/proxy/enterprise_billing/test_billing_metrics.py:24
↓ 5 callersFunction_request_id
(marker: str)
tests/integration/streaming/test_stream_open_error_provider_headers_proxy.py:106
↓ 5 callersFunction_request_marker
(request: Request)
tests/integration/providers/_responses_bridge_prompt_cache_breakpoint.py:64
↓ 5 callersFunction_request_trace_links
A link back to the request trace, for a span detached into its own trace.
litellm/integrations/otel/logger.py:146
↓ 5 callersFunction_require_marketplace_auth
(monkeypatch: pytest.MonkeyPatch)
tests/unit/proxy/anthropic_endpoints/test_claude_code_marketplace.py:1014
↓ 5 callersFunction_require_prisma
()
litellm/proxy/memory/memory_endpoints.py:142
↓ 5 callersFunction_rerank
(*, is_async: bool)
tests/unit/llms/together_ai/rerank/test_handler.py:31
↓ 5 callersFunction_reservation
(reserved_cost: float, counter_keys: frozenset[str] = RESERVED_KEYS)
tests/unit/proxy/spend_tracking/test_spend_counter_batch.py:460
↓ 5 callersMethod_reserve_project_io_tokens_or_raise
Reserve project-scoped ITPM/OTPM tokens (Bedrock Mantle-style separate input/output token buckets), independently of -- and, when
litellm/proxy/hooks/parallel_request_limiter_v3.py:3566
↓ 5 callersFunction_reserved_stamp_key
(key_metadata: dict | None = None)
tests/unit/proxy/test_litellm_pre_call_utils.py:9114
↓ 5 callersFunction_reserved_stamp_request
(path: str)
tests/unit/proxy/test_litellm_pre_call_utils.py:9101
↓ 5 callersFunction_reset_at_of_open_window
( cache: DualCache, entity_type: Litellm_EntityType, entity_id: str, budget_model: str, period: str )
tests/unit/proxy/hooks/test_unit_test_max_model_budget_limiter.py:25
↓ 5 callersFunction_reset_observations
(rig: Rig)
tests/integration/spend/test_background_interaction_settlement.py:397
↓ 5 callersFunction_reset_runtime_callbacks
(monkeypatch: pytest.MonkeyPatch)
tests/unit/proxy/test_proxy_server_endpoints_and_startup.py:11985
↓ 5 callersFunction_reset_sentry_globals
(monkeypatch: pytest.MonkeyPatch)
tests/unit/litellm_core_utils/test_litellm_logging.py:482
↓ 5 callersMethod_reset_warning_flag
(self)
tests/unit/proxy/auth/test_mcp_ip_filtering.py:415
↓ 5 callersFunction_resolve
( file_id: str, file_access: Literal["allow", "deny", "missing"] = "allow", )
tests/unit/proxy/vector_store_files_endpoints/test_endpoints.py:103
↓ 5 callersMethod_resolve
(server, server_id, stored)
tests/unit/proxy/mcp_server/test_mcp_toolset_scope.py:641
↓ 5 callersFunction_resolve_audit_log_callback
Resolve a string callback name to a CustomLogger instance, with caching. For "s3_v2" with `litellm.s3_audit_callback_params` set, constructs a
litellm/proxy/management_helpers/audit_logs.py:65
↓ 5 callersFunction_resolve_byok_mcp_auth_header
Resolve BYOK credential for tool calls that bypass ``execute_mcp_tool``.
litellm/proxy/mcp_server/mcp_server_manager.py:1469
↓ 5 callersMethod_resolve_cato_user_email
Only the key/JWT-bound user email is trusted. ``end_user_id`` is derived from caller-supplied request fields (OpenAI ``user``, headers, metada
litellm/proxy/guardrails/guardrail_hooks/cato_networks/cato_networks.py:156
↓ 5 callersFunction_resolve_health_check_max_tokens
Pick max_tokens for the health check request. Priority: 1. model_info.health_check_max_tokens (explicit override) 2. For non-wildcar
litellm/proxy/health_check.py:785
↓ 5 callersMethod_resolve_jwks_url
If url points to an OIDC discovery document (*.well-known/openid-configuration), fetch it and return the jwks_uri contained within.
litellm/proxy/auth/handle_jwt.py:769
↓ 5 callersFunction_resolve_mcp_server_identifiers_to_ids
Resolve MCP permission entries written as server_id, alias, or server_name to canonical server IDs. DB rows are authoritative when avail
litellm/proxy/management_helpers/object_permission_utils.py:297
↓ 5 callersMethod_resolve_model
Get the model name for the ModifyResponseException.
litellm/integrations/rubrik.py:695
↓ 5 callersMethod_resolve_otel_service_logger
Resolve the OTel logger (legacy or V2) to emit a service span on. Returns the logger instance whose ``async_service_*_hook`` should fire for
litellm/_service_logger.py:82
↓ 5 callersFunction_resolve_param_list
Resolve $refs in a parameter list, dropping any unresolvable entries.
litellm/proxy/mcp_server/openapi_to_mcp_generator.py:397
↓ 5 callersFunction_resolve_per_request_model_group_alias
Resolve ``router_settings.model_group_alias`` coming from a key or team. The Router only ever resolves aliases from its own instance attribu
litellm/proxy/common_request_processing.py:931
↓ 5 callersFunction_resolve_prompt_swapped_provider
( original_model: str, swapped_model: str, custom_llm_provider: str | None, kwargs: Mapping[st
litellm/responses/main.py:1106
↓ 5 callersFunction_resolve_proxy_base_url_env
()
litellm/proxy/mcp_server/oauth_utils.py:139
↓ 5 callersFunction_resolve_ref
Resolve a single parameter, following a $ref if present. Returns the resolved param dict, or None if the $ref target is absent from component
litellm/proxy/mcp_server/openapi_to_mcp_generator.py:382
↓ 5 callersFunction_resolve_session_server_id
Decide the id an OAuth session runs under. A caller-supplied id is honoured only when it names a server that really exists, which is
litellm/proxy/management_endpoints/mcp_management_endpoints.py:1008
↓ 5 callersFunction_resolved_oauth_metadata
()
tests/unit/proxy/mcp_server/test_discoverable_endpoints.py:157
↓ 5 callersMethod_resp
(self, body, status_code=200)
tests/unit/llms/dashscope/test_dashscope_rerank_transformation.py:207
↓ 5 callersFunction_respond
( route: respx.Route, *, status_code: int = 200, content: str | bytes | None = None, text:
tests/unit/secret_managers/test_cyberark_secret_manager.py:54
↓ 5 callersFunction_responding
(response: httpx.Response | None)
tests/unit/proxy/mcp_server/outbound_credentials/test_sso_assertion_refresher.py:835
↓ 5 callersFunction_response
(payload: dict, status_code: int = 200)
tests/unit/llms/gemini/batches/test_gemini_batches_transformation.py:57
↓ 5 callersFunction_response
(output: Sequence[Mapping[str, object]], status: str = "completed")
tests/unit/completion_extras/litellm_responses_transformation/test_completion_extras_litellm_responses_transformation_history.py:95
↓ 5 callersFunction_response_cost
(response: httpx.Response)
tests/integration/providers/test_fal_ai_image_wire.py:59
↓ 5 callersMethod_response_cost_from_logging_obj
Recover the response cost when the response never recorded one in its ``_hidden_params``: Anthropic /v1/messages returns a TypedDict
litellm/proxy/common_request_processing.py:3085
↓ 5 callersFunction_response_id
(response: httpx.Response)
tests/integration/compatibility/test_openai_sdk_client_paths.py:507
↓ 5 callersFunction_response_sse
(response_id: str)
tests/unit/llms/openai/responses/test_openai_responses_http.py:170
↓ 5 callersFunction_response_text
(endpoint: Endpoint, body: Mapping[str, JsonValue])
tests/integration/observability/_logging_only_scope_support.py:261
↓ 5 callersFunction_responses
( gateway: Gateway, body: Mapping[str, JsonValue], headers: Mapping[str, str] | None = None )
tests/integration/providers/test_responses_compaction_items_wire.py:339
↓ 5 callersFunction_responses
(rig: _Rig, body: Mapping[str, JsonValue])
tests/integration/streaming/test_interception_converted_stream_options.py:266
↓ 5 callersFunction_responses_api_events
()
tests/unit/proxy/guardrails/guardrail_hooks/test_model_armor.py:3894
↓ 5 callersFunction_responses_api_response_with_usage
()
tests/unit/responses/test_streaming_iterator.py:847
↓ 5 callersFunction_responses_delta
(sequence_number, text)
tests/unit/proxy/guardrails/guardrail_hooks/unified_guardrails/test_unified_guardrail.py:2787
↓ 5 callersFunction_responses_frame
(event: str, payload: dict[str, JsonValue])
tests/integration/providers/test_responses_bridge_incomplete.py:902
↓ 5 callersFunction_responses_function_call_items
(stream: bool, request_params: Mapping[str, object] = SHORT_IDS)
tests/unit/llms/vertex_ai/gemini/test_thought_signature_in_tool_call_id.py:538
↓ 5 callersFunction_responses_second_turn
()
tests/integration/providers/test_ollama_prompt_tools_wire.py:249
↓ 5 callersFunction_responses_turn
(*function_calls: tuple[str, str])
tests/unit/integrations/websearch_interception/test_websearch_agentic_loop_cap.py:107
↓ 5 callersFunction_responses_turn_ended
(model: str)
tests/unit/proxy/pass_through_endpoints/test_pass_through_endpoints.py:8435
↓ 5 callersFunction_restore
Reset ``var``; a coroutine the GC closes from another context has no value left to restore.
litellm/_internal_context.py:90
↓ 5 callersFunction_result
(trace: TraceArtifact)
tests/rust-python-harness/strategies/trace_parity/test_reporting.py:14
← previousnext →14,901–15,000 of 202,479, ranked by callers