MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 3 callersFunction_load_model_cost_map
(path: Path)
tests/unit/llms/vertex_ai/videos/test_vertex_video_transformation.py:37
↓ 3 callersMethod_load_named_object_permission
Load the object permission a principal's row NAMES, or raise ``UnloadableEntitlementError``. The single place that fault is minted, so end us
litellm/proxy/mcp_server/auth/user_api_key_auth_mcp.py:3848
↓ 3 callersFunction_load_policy_templates_from_local_backup
Load policy templates from local backup file (litellm/policy_templates_backup.json).
litellm/proxy/management_endpoints/policy_endpoints/endpoints.py:629
↓ 3 callersFunction_load_store_dcr_credentials
DCR client persisted in the server-scoped OAuth-client store for a config-declared server (which has no LiteLLM_MCPServerTable row). Returns None
litellm/proxy/mcp_server/discoverable_endpoints.py:1680
↓ 3 callersFunction_local_count
(gateway: Gateway, body: Mapping[str, JsonValue])
tests/integration/providers/test_bedrock_mantle_count_tokens_wire.py:308
↓ 3 callersMethod_log_add_cache_failure
(self, exc: Exception)
litellm/caching/caching.py:815
↓ 3 callersMethod_log_api_request
( self, method: str, url: str, headers: dict, payload: object, )
litellm/proxy/guardrails/guardrail_hooks/prompt_security/prompt_security.py:805
↓ 3 callersMethod_log_api_response
( self, url: str, status_code: int, payload: object, )
litellm/proxy/guardrails/guardrail_hooks/prompt_security/prompt_security.py:820
↓ 3 callersMethod_log_async_event
(self, kwargs, response_obj, start_time, end_time)
litellm/integrations/datadog/datadog.py:504
↓ 3 callersFunction_log_budget_lookup_failure
Log a warning when budget lookup fails; cache will not be populated. Skips logging for expected "user not found" cases (bare Exception from
litellm/proxy/auth/auth_checks.py:521
↓ 3 callersFunction_log_event_kwargs
(response_id: str = "chatcmpl-test-id")
tests/unit/integrations/test_s3.py:26
↓ 3 callersFunction_log_one_completion
(logger: LangFuseLogger)
tests/unit/integrations/test_langfuse.py:1379
↓ 3 callersFunction_log_rejected_classifier_verdict
( error: ValidationError, content: str, request_kwargs: Mapping[str, object] | None )
litellm/router_strategy/complexity_router/complexity_router.py:501
↓ 3 callersMethod_log_responses_api_generation
(self, response_obj: ResponsesAPIResponse)
tests/unit/integrations/test_langfuse.py:361
↓ 3 callersFunction_log_spend
(limiter, *, key_hash, model_max_budget, response_cost)
tests/unit/proxy/hooks/test_unit_test_max_model_budget_limiter.py:1599
↓ 3 callersFunction_log_success
( logger: PrometheusLogger, zero_cost_diagnostic: StandardLoggingZeroCostDiagnostic | None )
tests/unit/integrations/test_prometheus_zero_cost_metric.py:73
↓ 3 callersFunction_logged
(hook: str, kwargs: Mapping[str, object])
tests/integration/_support/a2a_denial_probe.py:18
↓ 3 callersFunction_logged_failure
(gateway: Gateway, model: str)
tests/integration/providers/test_hosted_vllm_stream_stall_wire.py:167
↓ 3 callersFunction_logged_messages
(caplog: pytest.LogCaptureFixture)
tests/unit/litellm_core_utils/test_env_utils.py:26
↓ 3 callersFunction_logged_request_headers
(logging_obj: _LoggedCallDetails)
litellm/proxy/guardrails/guardrail_hooks/hiddenlayer/hiddenlayer.py:148
↓ 3 callersMethod_logged_status
(data: dict)
tests/unit/proxy/guardrails/guardrail_hooks/test_repelloai.py:994
↓ 3 callersFunction_logged_usage_counts
(logged: Sequence[Mapping[str, JsonValue]])
tests/integration/providers/test_anthropic_refusal_stop_details_wire.py:1093
↓ 3 callersFunction_logging
()
tests/unit/llms/nvidia_riva/audio_transcription/test_handler.py:208
↓ 3 callersMethod_logging
(value: str)
tests/unit/proxy/common_utils/test_check_batch_cost.py:4494
↓ 3 callersFunction_logging_obj
(inputs: list[str])
tests/unit/llms/cohere/embed/test_cohere_embedding_transformation.py:20
↓ 3 callersMethod_logging_obj
()
tests/unit/litellm_core_utils/test_litellm_logging.py:1676
↓ 3 callersMethod_logging_obj_cost_or_none
( model_response: ModelResponse, litellm_logging_obj: LiteLLMLoggingObj )
litellm/proxy/common_request_processing.py:5251
↓ 3 callersFunction_logging_obj_with_key
Logging object carrying the server-set UserAPIKeyAuth object, the way the proxy populates it for an authenticated request (the bare user_api_key
tests/unit/proxy/guardrails/guardrail_hooks/test_compresr.py:196
↓ 3 callersFunction_login_left_in_keychain
The login an earlier logout left in a keychain it could not reach
litellm/proxy/client/cli/commands/auth.py:239
↓ 3 callersFunction_login_with_refresh_token
(expires_in: int | None)
tests/unit/proxy/mcp_server/outbound_credentials/test_resolver.py:1400
↓ 3 callersFunction_logs_a_failure_billing
(expected: float)
tests/integration/mcp/test_mcp_llm_endpoints.py:1411
↓ 3 callersFunction_long_prompt_messages
(count: int)
tests/unit/integrations/otel/test_otel_v2_vendor_mappers.py:391
↓ 3 callersFunction_lookup
(server)
tests/unit/proxy/mcp_server/outbound_credentials/test_authz_code_refresher.py:40
↓ 3 callersFunction_lose_the_row_then_finish
(scenario: Scenario, key: str)
tests/integration/spend/test_background_response_billed_once.py:399
↓ 3 callersFunction_make
(repo: Path, target: str, *args: str)
tests/unit/test_default_branch.py:64
↓ 3 callersFunction_make_agent
(*, protocol_version: str)
tests/unit/proxy/agent_endpoints/test_a2a_version_e2e.py:123
↓ 3 callersFunction_make_anthropic_response
(content: str = "Hello!")
tests/unit/llms/snowflake/test_snowflake_native_endpoints.py:57
↓ 3 callersFunction_make_app
(handler)
tests/unit/proxy/middleware/test_in_flight_requests_middleware.py:31
↓ 3 callersFunction_make_async_iterator_with_events
(events: list)
tests/unit/responses/test_streaming_iterator_error_events.py:353
↓ 3 callersMethod_make_base_iterator
Build a minimal BaseResponsesAPIStreamingIterator for testing.
tests/unit/litellm_core_utils/test_max_streaming_duration.py:89
↓ 3 callersFunction_make_batch_compress_response
(compressed_contexts: list, status: int = 200)
tests/unit/proxy/guardrails/guardrail_hooks/test_compresr.py:100
↓ 3 callersFunction_make_batch_input_bytes
(n_rows: int, padding: int = 200)
tests/unit/proxy/hooks/test_batch_file_validation.py:1720
↓ 3 callersFunction_make_batch_response
()
tests/unit/proxy/test_batch_expiry.py:53
↓ 3 callersFunction_make_chunk
(delta: Delta, finish_reason: str | None = None)
tests/unit/llms/anthropic/messages/adapters/test_streaming_iterator_sse_stream.py:23
↓ 3 callersMethod_make_chunk
(self, content)
tests/unit/responses/litellm_completion_transformation/test_litellm_completion_responses.py:5648
↓ 3 callersMethod_make_common_sync_call
( self, sync_httpx_client: HTTPHandler, provider_config: BaseConfig, api_base:
litellm/llms/custom_httpx/aiohttp_handler.py:205
↓ 3 callersFunction_make_db_attachment_row
( attachment_id: str = "att-1", policy_name: str = "db-policy", scope: str | None = None, team
tests/unit/proxy/policy_engine/test_attachment_registry.py:664
↓ 3 callersFunction_make_duplicate_tool_result_messages
Return messages where two consecutive tool-role messages reference the same tool_call_id, simulating the duplication scenario.
tests/unit/litellm_core_utils/test_bedrock_converse_dedup_factory.py:22
↓ 3 callersFunction_make_duplicate_tool_use_messages
Return messages where two consecutive assistant messages carry tool_calls with the same id, simulating assistant-side duplication.
tests/unit/litellm_core_utils/test_bedrock_converse_dedup_factory.py:54
↓ 3 callersFunction_make_fake_response
(body: dict)
tests/unit/llms/bedrock_mantle/chat/test_bedrock_mantle_transformation.py:39
↓ 3 callersMethod_make_fake_ws_route
Minimal stand-in for fastapi.routing.APIWebSocketRoute for the helper's purposes.
tests/unit/proxy/test_openapi_schema_validation.py:154
↓ 3 callersFunction_make_group_ctx
The context the `lite` group hands down after it already read the token file once.
tests/unit/proxy/client/cli/test_up_commands.py:243
↓ 3 callersMethod_make_guardrail_cb
(self, name: str = "presidio-pre-guard")
tests/unit/proxy/test_common_request_processing.py:6243
↓ 3 callersFunction_make_history
(n_pairs: int, result_filler: str = "x" * 50)
tests/unit/llms/anthropic/messages/context_management/test_constants.py:28
↓ 3 callersMethod_make_hook
(self)
tests/unit/llms/test_file_search_responses.py:504
↓ 3 callersFunction_make_httpx_response
Build a minimal fake httpx Response object.
tests/unit/proxy/guardrails/test_mcp_jwt_signer.py:896
↓ 3 callersFunction_make_internal_user
(user_id: str = "user-1")
tests/unit/proxy/agent_endpoints/test_agent_rbac.py:20
↓ 3 callersFunction_make_jwt
(payload: dict)
tests/unit/llms/chatgpt/test_chatgpt_authenticator.py:25
↓ 3 callersFunction_make_logging_obj
( test_name: str, async_recorder: _AsyncFailureRecorder, sync_recorder: _SyncFailureRecorder, )
tests/unit/llms/anthropic/messages/adapters/test_streaming_iterator_mid_stream_error.py:267
↓ 3 callersMethod_make_logging_obj
Build a minimal mock logging object.
tests/unit/litellm_core_utils/llm_response_utils/test_response_metadata.py:36
↓ 3 callersMethod_make_logging_obj
( self, llm_api_duration_ms=500.0, message_copy_duration_ms=2.5, api_call_star
tests/unit/litellm_core_utils/llm_response_utils/test_response_metadata.py:445
↓ 3 callersMethod_make_logging_obj
(stream: bool)
tests/unit/proxy/pass_through_endpoints/llm_provider_handlers/test_anthropic_passthrough_logging_handler.py:1972
↓ 3 callersMethod_make_logging_obj
()
tests/unit/proxy/pass_through_endpoints/llm_provider_handlers/test_anthropic_passthrough_logging_handler.py:2459
↓ 3 callersFunction_make_messages
()
tests/unit/llms/bedrock/chat/invoke_transformations/test_twelvelabs_pegasus_transformation.py:13
↓ 3 callersFunction_make_mock_response
(status_code: int, body: bytes, headers: dict = None)
tests/unit/passthrough/test_async_streaming_error_propagation.py:17
↓ 3 callersFunction_make_mock_session
Helper to create a mock aiohttp session
tests/unit/llms/custom_httpx/test_aiohttp_transport.py:669
↓ 3 callersFunction_make_model_response_stream_chunk
Create a minimal OpenAI-compatible chat.completion.chunk object.
tests/unit/proxy/test_response_model_sanitization.py:47
↓ 3 callersFunction_make_plain_capture_logger
(name: str)
tests/unit/test_logging.py:652
↓ 3 callersFunction_make_prisma_with_end_user_row
(spend: float | None)
tests/unit/proxy/proxy_server/test_spend_counters.py:204
↓ 3 callersFunction_make_recording_send
(sent_batches, delivered)
tests/unit/integrations/datadog/test_datadog_logger_batching.py:180
↓ 3 callersFunction_make_request
( method: str, params: Dict[str, Any], *, headers: Optional[Dict[str, str]] = None, reques
tests/unit/proxy/agent_endpoints/test_a2a_version_e2e.py:138
↓ 3 callersMethod_make_response
(self, body: dict, status: int = 200)
tests/unit/llms/oci/chat/test_oci_generic_chat.py:196
↓ 3 callersMethod_make_router
(self, cooldown_time: float = 60.0, store: RouterCooldowns | None = None)
tests/unit/router_utils/test_cooldown_handlers.py:366
↓ 3 callersMethod_make_server
(self, name="test_server")
tests/unit/proxy/mcp_server/test_mcp_hook_extra_headers.py:264
↓ 3 callersFunction_make_sso_callback_request
(query_params: dict)
tests/unit/proxy/management_endpoints/test_ui_sso.py:9548
↓ 3 callersFunction_make_stub_direct_vector_store_config
(response)
tests/unit/llms/custom_httpx/test_llm_http_handler.py:3654
↓ 3 callersFunction_make_team
Build a real Prisma team row. `members_with_roles` is a JSON column, so Prisma deserializes it into plain dicts, not `Member` objects. A stub
tests/unit/proxy/memory/test_memory_endpoints.py:180
↓ 3 callersFunction_make_team
Build a Prisma-compatible team row. `admin_user_ids` are inserted as `members_with_roles[*].role == "admin"` because that's what `is_team_admi
tests/unit/proxy/management_endpoints/test_activity_tenant_scoping.py:27
↓ 3 callersFunction_make_test_images
()
tests/unit/images/test_image_edit_utils.py:23
↓ 3 callersFunction_make_tooluse_before_text_messages
Return messages where the assistant message has a tool_call followed by a separate assistant message with text content. When merged, the toolUse
tests/unit/litellm_core_utils/test_bedrock_converse_dedup_factory.py:458
↓ 3 callersFunction_make_unified_file_id
()
tests/unit/enterprise/proxy/test_deleted_file_returns_403_not_404.py:27
↓ 3 callersFunction_make_user_api_key_dict
(user_id: str)
tests/unit/enterprise/proxy/test_managed_files_access_check.py:25
↓ 3 callersFunction_make_user_api_key_dict
(user_id: str)
tests/unit/enterprise/proxy/test_deleted_file_returns_403_not_404.py:19
↓ 3 callersMethod_make_vs_row
Build a row compatible with get_managed_vector_store_rows_by_uuids (Prisma model_dump).
tests/unit/llms/test_file_search_responses.py:360
↓ 3 callersFunction_make_wildcard_access_group_router
`openai/*` tagged into an access group, plus an untagged `azure/*`, mirroring a proxy that fronts a whole provider behind one wildcard deploy
tests/unit/proxy/auth/test_auth_checks_object_access_and_lookup.py:9833
↓ 3 callersFunction_make_window
(frequency: str = "hourly")
tests/unit/integrations/focus/test_focus_gcs_destination.py:13
↓ 3 callersFunction_managed_fields
( incoming: Mapping[str, object], existing: AgentResponse | None, updated_by: str, client: Pri
litellm/proxy/agent_endpoints/agent_registry.py:169
↓ 3 callersFunction_managed_file
(file_id: str)
tests/unit/proxy/openai_files_endpoint/test_files_endpoint.py:3326
↓ 3 callersFunction_managed_file_lifecycle_provider
( store: str, bearer: str, filename: str, content: bytes, )
tests/integration/management/test_vector_store_file_list_managed_ids.py:235
↓ 3 callersFunction_managed_files_hook
(proxy_logging_obj: "ProxyLogging")
litellm/proxy/response_api_endpoints/endpoints.py:977
↓ 3 callersFunction_managed_id_matches_provider
(unified_id: str, provider: str)
litellm/proxy/pass_through_endpoints/managed_id_rewriter.py:262
↓ 3 callersFunction_managed_identity
( resource: str, hold: _Hold | None, lifetime_seconds: int = _TOKEN_LIFETIME_SECONDS, access_t
tests/integration/providers/test_azure_entra_token_reuse_wire.py:171
↓ 3 callersMethod_manager_with_deepwiki_and_huggingface
()
tests/unit/proxy/mcp_server/test_mcp_server_manager.py:6788
↓ 3 callersFunction_mantle_chat_request
(drop_params: bool, **params: object)
tests/unit/llms/bedrock_mantle/test_bedrock_mantle_transformation.py:90
↓ 3 callersFunction_map
(s,o)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 3 callersMethod_map_audio_format_to_sample_rate
Map OpenAI audio format to sample rate. Args: audio_format: OpenAI audio format (pcm16, g711_ulaw, g711_alaw)
litellm/llms/bedrock/realtime/transformation.py:345
↓ 3 callersMethod_map_error_event_exception
(self, error_obj: object)
litellm/responses/streaming_iterator.py:794
↓ 3 callersMethod_map_finish_reason
Map OpenAI finish reasons to Google GenAI finish reasons
litellm/google_genai/adapters/transformation.py:890
↓ 3 callersMethod_map_openai_params
If any supported_openai_params are in non_default_params, add them to optional_params, so they are use in API call Args:
litellm/llms/openai/chat/gpt_transformation.py:286
↓ 3 callersMethod_map_params
Helper to call map_openai_params with the given thinking value.
tests/unit/llms/bedrock/chat/test_converse_transformation.py:6406
← previousnext →23,901–24,000 of 202,479, ranked by callers