MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 4 callersMethod_make_guardrail
(self)
tests/unit/integrations/test_custom_guardrail.py:997
↓ 4 callersFunction_make_http_status_error
(status: int, body: str)
tests/unit/proxy/guardrails/guardrail_hooks/test_headroom.py:1218
↓ 4 callersFunction_make_httpx_response
(body: dict, status_code: int = 200)
tests/unit/proxy/pass_through_endpoints/test_passthrough_post_call_guardrails.py:49
↓ 4 callersFunction_make_internal_user
(user_id: str = "user-1")
tests/unit/proxy/vector_store_endpoints/test_vector_store_rbac.py:17
↓ 4 callersFunction_make_invitation
Build an invitation row with the fields ``InvitationModel`` requires. FastAPI serializes the returned object against ``response_model=InvitationM
tests/unit/proxy/proxy_server/test_routes_invitation.py:26
↓ 4 callersMethod_make_jwt_handler
()
tests/unit/proxy/management_endpoints/test_ui_sso.py:8492
↓ 4 callersFunction_make_logging_obj
()
tests/unit/proxy/pass_through_endpoints/llm_provider_handlers/test_comprehend_medical_passthrough_logging_handler.py:25
↓ 4 callersMethod_make_logging_obj
(stream: bool = False)
tests/unit/proxy/pass_through_endpoints/llm_provider_handlers/test_anthropic_passthrough_logging_handler.py:1767
↓ 4 callersFunction_make_mcp_server_record
(server_id: str, alias: str | None = None, server_name: str | None = None)
tests/unit/proxy/management_endpoints/test_access_group_endpoints.py:68
↓ 4 callersFunction_make_member_team_table
Build a LiteLLM_TeamTable with a single member, suitable for list_keys tests.
tests/unit/proxy/management_endpoints/test_key_management_endpoints.py:7154
↓ 4 callersFunction_make_message
( message_id: str = "msg-1", run_id: str = "run-1", role: str = "user", content: str = "hello"
tests/unit/proxy/management_endpoints/test_workflow_management_endpoints.py:68
↓ 4 callersFunction_make_mock_http_client
(response_body: dict)
tests/unit/llms/openai/responses/test_openai_responses_data_residency.py:44
↓ 4 callersFunction_make_mock_logging_obj
()
tests/unit/passthrough/test_async_streaming_error_propagation.py:46
↓ 4 callersFunction_make_mock_request
Create a mock FastAPI Request with the given headers.
tests/unit/proxy/test_batch_x_litellm_model_encoding.py:24
↓ 4 callersFunction_make_mock_request
()
tests/unit/proxy/pass_through_endpoints/test_passthrough_post_call_guardrails.py:59
↓ 4 callersMethod_make_mock_response
(self, json_data: dict)
tests/unit/llms/searxng/search/test_searxng_search_transformation.py:202
↓ 4 callersFunction_make_model
Helper to build a model dict matching the router's format.
tests/unit/proxy/test_filter_models_by_team_access_group.py:19
↓ 4 callersFunction_make_model_info
(cost_per_query: float = 0.01)
tests/unit/llms/anthropic/test_cost_calculation_dict_safety.py:20
↓ 4 callersFunction_make_model_response
Helper to build a ModelResponse with provider_specific_fields on the message.
tests/unit/llms/anthropic/chat/test_code_interpreter_results_extraction.py:21
↓ 4 callersFunction_make_otel
OTel callback whose every span lands in an in-memory exporter.
tests/unit/integrations/test_otel_team_attributes_matrix.py:56
↓ 4 callersFunction_make_otel_logger
Create a generic ``otel`` callback backed by an in-memory exporter. We build a dedicated TracerProvider explicitly so the test is isolated fr
tests/unit/integrations/arize/test_arize_otel_coexistence.py:29
↓ 4 callersMethod_make_output_text
(text: str)
tests/unit/llms/openai/responses/test_openai_responses_transformation.py:2033
↓ 4 callersFunction_make_priced_logging_obj
( call_id: str, recorder: _SuccessRecorder, model: str, start_time: datetime | None = None )
tests/unit/llms/anthropic/messages/native/test_streaming_iterator.py:865
↓ 4 callersMethod_make_proxy_logging
Create a ProxyLogging instance with mocked dependencies.
tests/unit/proxy/test_init_litellm_callbacks.py:27
↓ 4 callersFunction_make_reasoning_only_output_item
()
tests/unit/completion_extras/litellm_responses_transformation/test_completion_extras_litellm_responses_transformation_transformation.py:5081
↓ 4 callersFunction_make_request
(method="message/send", extra_headers=None)
tests/unit/proxy/agent_endpoints/test_agent_header_isolation.py:42
↓ 4 callersFunction_make_resource
(records: List = None)
tests/unit/llms/base_llm/test_base_managed_resource.py:38
↓ 4 callersFunction_make_response
(operation: str)
tests/unit/proxy/pass_through_endpoints/llm_provider_handlers/test_comprehend_medical_passthrough_logging_handler.py:16
↓ 4 callersMethod_make_response
(file_id: str)
tests/unit/router_utils/test_router_utils_common_utils.py:443
↓ 4 callersMethod_make_response
(self, body: dict)
tests/unit/llms/gigachat/test_authenticator.py:444
↓ 4 callersMethod_make_response
( prompt_tokens: int, completion_tokens: int, total_tokens: int, reasoning_tok
tests/unit/llms/xai/test_xai_chat_transformation.py:29
↓ 4 callersMethod_make_response
(self, *, text: str, content_type: str, is_json: bool)
tests/unit/llms/openai/transcriptions/test_whisper_transformation.py:54
↓ 4 callersFunction_make_responses_api_response
(output: list)
tests/unit/proxy/guardrails/guardrail_hooks/test_cato_networks.py:2318
↓ 4 callersFunction_make_responses_api_response_body
()
tests/unit/llms/openai/responses/test_openai_responses_data_residency.py:14
↓ 4 callersFunction_make_router
(name: str = "r1")
tests/unit/router_strategy/adaptive_router/test_state_endpoint.py:22
↓ 4 callersMethod_make_router
(self, deployment_id: str, model_info: dict | None = None)
tests/unit/router_utils/test_cooldown_handlers.py:118
↓ 4 callersMethod_make_router
(self)
tests/unit/router_strategy/test_complexity_router.py:4745
↓ 4 callersFunction_make_send_message_request
(request_id: str, user_text: str = "Hello")
tests/unit/a2a_protocol/test_cost_calculator.py:21
↓ 4 callersMethod_make_server
(self, server_id: str, approval_status)
tests/unit/proxy/mcp_server/test_mcp_server_manager.py:11153
↓ 4 callersFunction_make_simple_openai_response
( text: str = "Hello", prompt_tokens: int = 10, completion_tokens: int = 5 )
tests/unit/llms/anthropic/messages/adapters/test_anthropic_messages_adapters_transformation.py:4382
↓ 4 callersFunction_make_skill_payload
(**kwargs)
tests/unit/test_anthropic_skills_transformation.py:38
↓ 4 callersMethod_make_sso_values
(user_role=None)
tests/unit/proxy/management_endpoints/test_ui_sso.py:8523
↓ 4 callersFunction_make_standard_logging_payload_with_usage_object
(usage_object: dict)
tests/unit/proxy/spend_tracking/test_spend_tracking_utils.py:855
↓ 4 callersFunction_make_team
Helper to build a mock team DB object.
tests/unit/proxy/test_filter_models_by_team_access_group.py:31
↓ 4 callersFunction_make_team_member_api_key_dict
The shape most real virtual keys carry: a user_id and a team_id.
tests/unit/enterprise/proxy/test_managed_files_hook.py:78
↓ 4 callersFunction_make_team_table
Create a mock team table object with given permissions.
tests/unit/proxy/management_helpers/test_team_member_permission_checks.py:18
↓ 4 callersFunction_make_text_completion_response
(text: str)
tests/unit/proxy/guardrails/guardrail_hooks/_cisco_ai_defense_test_utils.py:23
↓ 4 callersFunction_make_token
(token: str, user_id: str = "user-123")
tests/unit/proxy/management_endpoints/test_delete_verification_tokens_failed.py:32
↓ 4 callersFunction_make_tool_row
( tool_name: str = "my_tool", input_policy: str = "untrusted", origin: Optional[str] = None, )
tests/unit/proxy/management_endpoints/test_tool_management_endpoints.py:28
↓ 4 callersFunction_make_ui_spend_logs_mock
Build a prisma mock whose first statement-timeout read (the bounded count) returns `count_total` and whose second read (the page data) return
tests/unit/proxy/spend_tracking/test_spend_query_optimization.py:211
↓ 4 callersFunction_make_usage
(web_search_requests: int)
tests/unit/llms/gemini/test_cost_calculator.py:26
↓ 4 callersFunction_make_user
(user_id: str, password)
tests/unit/proxy/utils/prisma_and_spend/test_password_helpers.py:154
↓ 4 callersMethod_make_user
(self, team_id: Optional[str] = "team-abc")
tests/unit/llms/test_file_search_responses.py:339
↓ 4 callersFunction_make_user_key
(user_id="org-admin-user", role=LitellmUserRoles.INTERNAL_USER.value)
tests/unit/proxy/management_endpoints/test_org_admin_team_access.py:44
↓ 4 callersMethod_make_vertex_batch_line
(self)
tests/unit/llms/vertex_ai/files/test_vertex_ai_files_transformation.py:862
↓ 4 callersFunction_malformed
()
tests/unit/llms/test_file_content_block.py:76
↓ 4 callersFunction_managed_deletion_file_id
(provider_file_id)
tests/unit/enterprise/proxy/test_managed_files_hook.py:1213
↓ 4 callersFunction_managed_files_over
(table: _UniqueManagedObjectTable)
tests/unit/proxy/response_api_endpoints/test_endpoints.py:1383
↓ 4 callersFunction_managed_input_file_id
(model: str)
tests/unit/proxy/batches_endpoints/test_endpoints.py:311
↓ 4 callersFunction_managed_store
(rig: RagRig, scenario: Scenario, litellm_params: Mapping[str, JsonValue])
tests/integration/authorization/test_rag_team_provider_credentials.py:1177
↓ 4 callersFunction_managed_upload
(gateway: Gateway, group: str, key: str)
tests/integration/routing/test_batch_mode_deployments_wire.py:200
↓ 4 callersFunction_mantle_environment
(port: int)
tests/integration/providers/test_bedrock_mantle_count_tokens_wire.py:220
↓ 4 callersFunction_mantle_gpt_usage
( input_tokens: int, output_tokens: int, reasoning_tokens: int, cached_tokens: int = 0, ca
tests/integration/cost_calculation/cases/bedrock_mantle.py:562
↓ 4 callersMethod_map_optional_params_to_responses_api_request
Map optional_params into responses_api_request (mutates in place).
litellm/completion_extras/litellm_responses_transformation/transformation.py:1165
↓ 4 callersMethod_map_reasoning_effort_to_thinking_level
Map reasoning_effort to thinking_level for Gemini 3+ models. Args: reasoning_effort: The reasoning effort value
litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py:1575
↓ 4 callersMethod_map_tools
( self, tools: list, )
litellm/llms/anthropic/chat/transformation.py:1402
↓ 4 callersMethod_map_voice_to_vertex_format
Map voice to Vertex AI format. Supports both: 1. OpenAI voice names (alloy, echo, fable, onyx, nova, shimmer) - will be mapp
litellm/llms/vertex_ai/text_to_speech/transformation.py:296
↓ 4 callersFunction_mapping
(value: Mapping[str, object])
litellm/proxy/client/cli/commands/codex_settings.py:83
↓ 4 callersFunction_mapping
(value: object)
litellm/router_strategy/auto_router/auto_router_tuning_baseline.py:38
↓ 4 callersFunction_mapping_str_field
(container: object, key: str)
litellm/llms/anthropic/messages/native/utils.py:148
↓ 4 callersFunction_mapping_where
(claim_name: str, claim_value: str, jwt_issuer: str | None)
tests/unit/proxy/auth/test_user_api_key_auth_request_flow.py:12193
↓ 4 callersFunction_marked
(received: tuple[Request, ...])
tests/integration/providers/test_responses_bridge_tool_search_chaos.py:351
↓ 4 callersFunction_marked
(role: str, text: str, mark: JsonValue = EPHEMERAL)
tests/integration/providers/test_responses_bridge_message_cache_control_wire_chaos.py:460
↓ 4 callersFunction_marked
( block: Mapping[str, JsonValue], cache_control: Mapping[str, JsonValue] = _EPHEMERAL )
tests/integration/providers/test_openai_responses_prompt_cache_breakpoint_wire.py:62
↓ 4 callersFunction_marked_once
(posts: Sequence[Request], calls: Sequence[_Call], expected: JsonValue)
tests/integration/providers/test_responses_bridge_prompt_cache_breakpoint_wire_chaos.py:184
↓ 4 callersFunction_marked_once
(posts: Sequence[Request], calls: Sequence[_Call])
tests/integration/providers/test_responses_bridge_message_cache_control_wire_chaos.py:213
↓ 4 callersFunction_marked_pass_through_endpoint
An endpoint carrying the marker ``create_pass_through_route`` sets.
tests/unit/proxy/pass_through_endpoints/test_pass_through_endpoints.py:9971
↓ 4 callersFunction_marked_posts
(received: tuple[Request, ...], marker: str)
tests/integration/providers/test_responses_bridge_tool_search_chaos.py:529
↓ 4 callersFunction_marker
()
tests/integration/messages_endpoint/chat_bridge/test_chat_bridge_pre_content_retry_wire.py:84
↓ 4 callersMethod_marker
(self, token: str)
litellm/integrations/custom_guardrail.py:990
↓ 4 callersFunction_marker_counts
(ledgers: Sequence[Ledger], markers: frozenset[str])
tests/integration/providers/test_anthropic_refusal_stop_details_chaos.py:139
↓ 4 callersFunction_marker_deployment
(router)
tests/unit/proxy/test_health_check_max_tokens.py:1068
↓ 4 callersFunction_marker_of
(request: Request)
tests/integration/providers/test_decisions_chaos.py:62
↓ 4 callersFunction_marker_of
(request: Request)
tests/integration/providers/test_custom_prompt_template_chaos.py:134
↓ 4 callersFunction_marker_of
(request: Request)
tests/integration/providers/test_gemini_tool_result_part_reference_chaos.py:172
↓ 4 callersFunction_marker_of
(request: Request)
tests/integration/providers/test_bedrock_converse_lookaround_regex_chaos.py:125
↓ 4 callersFunction_marker_of
(request: Request)
tests/integration/providers/test_ollama_prompt_tools_chaos.py:193
↓ 4 callersFunction_marker_of
(request: Request)
tests/integration/providers/test_cloudflare_clef_images_chaos.py:64
↓ 4 callersFunction_marker_of
(request: Request)
tests/integration/providers/test_cloudflare_clef_omni_media_chaos.py:50
↓ 4 callersFunction_marker_of
(request: Request)
tests/integration/providers/test_gemini_thinking_replay_chaos.py:163
↓ 4 callersFunction_marker_router
A router whose decisions call flags prompt_injection only when the input contains the marker.
tests/unit/proxy/guardrails/guardrail_hooks/test_decision_model.py:787
↓ 4 callersFunction_marks_in
(value: object)
tests/unit/integrations/test_anthropic_cache_control_hook.py:1368
↓ 4 callersFunction_masked_data
()
tests/integration/observability/test_panw_airs_block_masked_response.py:25
↓ 4 callersFunction_matched_models
(matches: list[dict] | None)
tests/unit/router_utils/test_pattern_match_deployments.py:26
↓ 4 callersMethod_matched_plan_mode_signal
The plan-mode sentinel on this request, or None; always None when the floor is unset, so routers that never opted in pay nothing for detection
litellm/router_strategy/complexity_router/complexity_router.py:3460
↓ 4 callersFunction_max_tokens
(case: _Case, body: Mapping[str, JsonValue])
tests/unit/llms/base_llm/chat/test_provider_chat_thinking.py:227
↓ 4 callersFunction_mcp_guardrail
(mode: str)
tests/unit/proxy/guardrails/guardrail_hooks/test_generic_guardrail_api.py:2632
↓ 4 callersFunction_mcp_oauth_discovery_on_startup_enabled
Return whether remote MCP OAuth metadata is discovered during registration. Discovery is deferred until the first admitted request unless explici
litellm/proxy/mcp_server/mcp_server_manager.py:342
↓ 4 callersFunction_mcp_oauth_user_api_key_auth
Auth dependency for MCP OAuth browser-navigation endpoints (/authorize, /token). Tries the Authorization header first. Falls back to
litellm/proxy/management_endpoints/mcp_management_endpoints.py:2296
↓ 4 callersFunction_mcp_rate_limited_proxy_logging
()
tests/unit/proxy/mcp_server/test_operations.py:551
← previousnext →18,301–18,400 of 202,479, ranked by callers