MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 3 callersMethod_safe_log_post_call
( logging_obj: LiteLLMLoggingObj, audio_file: FileTypes | None, api_key: str | None,
litellm/llms/soniox/audio_transcription/handler.py:344
↓ 3 callersMethod_safe_log_pre_call
( logging_obj: LiteLLMLoggingObj, api_key: str | None, api_base: str, body: di
litellm/llms/soniox/audio_transcription/handler.py:322
↓ 3 callersFunction_safe_read_response
Safely read sync response body, falling back to empty bytes on errors.
litellm/llms/custom_httpx/http_handler.py:556
↓ 3 callersFunction_safeguards_request
(config: AnthropicMessagesConfig, litellm_params: GenericLiteLLMParams | None = None)
tests/unit/llms/anthropic/messages/native/test_anthropic_messages_transformation.py:302
↓ 3 callersFunction_sail_model
(scenario: Scenario, wire: Wire)
tests/integration/pricing/test_sail_service_tier_pricing.py:105
↓ 3 callersMethod_same_account_provider
(shared, operator_scope)
tests/unit/integrations/otel/test_otel_v2_destinations.py:2592
↓ 3 callersFunction_same_objects
(rebuilt: Iterable[object], originals: Iterable[object])
litellm/llms/openai/responses/transformation.py:259
↓ 3 callersFunction_sample_agent_card_params_with_backend_url
()
tests/unit/proxy/agent_endpoints/test_endpoints.py:53
↓ 3 callersFunction_sample_cassette
()
tests/unit/test_ws_vcr.py:212
↓ 3 callersFunction_sample_value
(series: frozenset[str], label: str, value: str)
tests/unit/integrations/test_prometheus_series_cardinality.py:74
↓ 3 callersFunction_samples
(candidate: Gateway, model_names: tuple[str, ...])
tests/integration/observability/test_cache_hit_guardrail_metrics_chaos.py:50
↓ 3 callersMethod_sandbox_state
(data: object)
litellm/llms/opensandbox/sandbox/transformation.py:408
↓ 3 callersFunction_sanitize_empty_text_content
Case C: Sanitize empty text content Anthropic rejects empty text blocks, so empty or whitespace-only text must never be forwarded verbat
litellm/litellm_core_utils/prompt_templates/factory.py:2489
↓ 3 callersFunction_sanitize_for_log
Basic log sanitization helper to reduce log-injection risk. Removes newline and carriage-return characters so user-controlled values can
litellm/proxy/litellm_pre_call_utils.py:297
↓ 3 callersFunction_sanitize_mcp_server_for_non_admin
Strip credential-bearing fields for non-admin viewers. Non-admin users may legitimately need to discover MCP servers their team has a
litellm/proxy/management_endpoints/mcp_management_endpoints.py:793
↓ 3 callersMethod_save_data_thread
(self)
litellm/budget_manager.py:203
↓ 3 callersFunction_save_deleted_team_records
Save deleted team records to the database.
litellm/proxy/management_endpoints/team_endpoints.py:5263
↓ 3 callersFunction_save_deleted_verification_token_records
Save deleted verification token records to the database. ``tx`` runs the write on that transaction's connection instead of a fresh one, so a
litellm/proxy/management_endpoints/key_management_endpoints.py:5863
↓ 3 callersFunction_save_health_check_to_db
Helper function to save health check results to database
litellm/proxy/health_endpoints/_health_endpoints.py:767
↓ 3 callersFunction_save_vector_store_to_db_from_rag_ingest
Helper function to save a newly created vector store from RAG ingest to the database. This function: - Extracts vector store ID and conf
litellm/proxy/rag_endpoints/endpoints.py:340
↓ 3 callersFunction_savings_cohort
( turns: int, estimated_turns: int, spend: float, saved_spend: float )
litellm/proxy/management_endpoints/auto_router_endpoints.py:727
↓ 3 callersFunction_scalar
(value: LocalValue | None)
litellm/proxy/hooks/parallel_request_limiter_v3.py:323
↓ 3 callersFunction_scan
(sunk: tuple[Sunk, ...], call_id: JsonValue)
tests/integration/mcp/test_mcp_accounting_guardrails.py:394
↓ 3 callersMethod_scan_and_process_streaming_response
Scan assembled streaming response and apply masking if needed. Returns (content_was_modified, response, scan_result).
litellm/proxy/guardrails/guardrail_hooks/panw_prisma_airs/panw_prisma_airs.py:1361
↓ 3 callersFunction_scan_covered_tables
Read-only classification of every rotation-covered table. No writes.
litellm/proxy/management_endpoints/credential_migration.py:578
↓ 3 callersMethod_scan_request_files
Submit inline document/file attachments to Model Armor and block on any findings. Each attachment is sent through the byte API and a MATCH_FO
litellm/proxy/guardrails/guardrail_hooks/model_armor/model_armor.py:607
↓ 3 callersFunction_scenario_model
(scenario: Scenario)
tests/integration/management/test_team_update_multi_instance.py:92
↓ 3 callersFunction_schedule_team_member_add_audit_logs
Record the membership change, and any user row it created, in the audit log.
litellm/proxy/management_endpoints/team_endpoints.py:3612
↓ 3 callersFunction_scheduled_run
( lock: MagicMock, monkeypatch, *, captured: float, prisma: MagicMock | None = None )
tests/unit/proxy/spend_tracking/test_spend_capture_rate.py:267
↓ 3 callersFunction_scim_active_value
Read the SCIM active flag from a user's metadata dict, if present.
litellm/proxy/management_endpoints/scim/scim_v2.py:1254
↓ 3 callersFunction_scim_admin_group_fixture
( gateway: Gateway, tmp_path: Path, group_name: str, )
tests/integration/management/test_scim_admin_group.py:303
↓ 3 callersFunction_scoped_spend_report_sql
Spend grouped by api_key with a per-model breakdown, cut to one scope column. ``scope_column`` is interpolated into the SQL, so it must come from
litellm/proxy/spend_tracking/spend_management_endpoints.py:1738
↓ 3 callersFunction_scrape
One /metrics body, read once per checkpoint so every counter comes from the same instant.
tests/e2e/perf/test_redis_chaos_e2e.py:219
↓ 3 callersFunction_scrape_pair_concurrently
Issue the second scrape only once the first one's render is parked inside the worker thread.
tests/unit/integrations/test_prometheus_metrics_endpoint.py:184
↓ 3 callersFunction_scripted_error
(status: int, message: str)
tests/integration/providers/test_bedrock_converse_missing_content_wire.py:184
↓ 3 callersFunction_scripted_mcp_stream
( model: str, upstream_url: str, rounds: Sequence[bytes], max_agentic_loops: int | None = None
tests/unit/responses/mcp/test_aresponses_api_with_mcp.py:2382
↓ 3 callersFunction_scripted_realtime
(raw: str)
tests/integration/routing/test_declared_provider_bare_model_routes.py:271
↓ 3 callersFunction_scrub_guardrail_inner
Strip remote-URL entries from a guardrail's ``callbacks`` list and ``guardrail`` (v2 module-path) field. Mutates in place.
litellm/proxy/proxy_server.py:5178
↓ 3 callersFunction_scrub_raw_model_from_error_information
( error_information: StandardLoggingPayloadErrorInformation | None, raw_model: str )
litellm/proxy/spend_tracking/spend_tracking_utils.py:595
↓ 3 callersFunction_sdk
(gateway: Gateway, key: str)
tests/integration/routing/test_declared_provider_bare_model_routes.py:73
↓ 3 callersFunction_sdk_base_url
(gateway: Gateway)
tests/integration/providers/test_databricks_agent_wire.py:104
↓ 3 callersFunction_sdk_inference_call
( gateway: Gateway, handle: ScenarioHandle, provider: _Provider, *, metadata_authorization
tests/integration/providers/test_decisions_wire.py:266
↓ 3 callersFunction_sdk_listing
( plane: ControlPlane, cwd: Path, *, provider: str | None, litellm_params: Mapping[str, Js
tests/integration/sdk/test_bedrock_model_discovery_sdk.py:46
↓ 3 callersFunction_sdk_message
(deployment: _Deployment)
tests/integration/streaming/test_interception_converted_stream_options.py:387
↓ 3 callersFunction_sdk_status
(error: openai.APIStatusError | anthropic.APIStatusError)
tests/integration/management/test_team_delete_member_cache_eviction.py:253
↓ 3 callersFunction_sdk_tool
()
tests/integration/streaming/test_interception_converted_stream_options.py:380
↓ 3 callersFunction_search
(gateway: Gateway, key: str, marker: str)
tests/integration/authorization/test_search_tool_deny_by_default.py:76
↓ 3 callersFunction_search_body
(extra_body: dict[str, object] | None, litellm_params: dict[str, object])
tests/unit/llms/bedrock/vector_stores/test_bedrock_vector_store_transformation.py:165
↓ 3 callersFunction_search_caller
( virtual_key: bool, key_search_tools: list[str] | None = None, team_id: str | None = None, us
tests/unit/proxy/management_endpoints/search_endpoints/test_search_tool_management.py:1095
↓ 3 callersFunction_search_clause
(search: str, token: str)
tests/unit/proxy/management_endpoints/test_key_management_endpoints.py:7561
↓ 3 callersFunction_search_filter_fn
(logs, captured)
tests/unit/proxy/spend_tracking/test_spend_management_endpoints.py:3018
↓ 3 callersFunction_search_items
(marker: str)
tests/integration/providers/test_responses_bridge_tool_search_replay.py:97
↓ 3 callersFunction_search_result
(marker: str)
tests/integration/providers/test_responses_bridge_tool_search_chaos.py:84
↓ 3 callersFunction_search_tool
(gateway: Gateway, scenario: Scenario, provider: str, api_base: str)
tests/integration/providers/test_api_base_trailing_slash_wire.py:92
↓ 3 callersFunction_search_tools
(search: Search)
tests/integration/providers/test_responses_bridge_tool_search_undeferred_wire.py:116
↓ 3 callersFunction_searched_groq_response
(executed_tools: list | None)
tests/unit/llms/groq/chat/test_groq_chat_transformation.py:127
↓ 3 callersFunction_second_block_on_wire
(bridge: _Bridge, marker: str)
tests/integration/providers/test_responses_bridge_prompt_cache_breakpoint_wire.py:217
↓ 3 callersFunction_secrets
(directory: Path)
tests/integration/management/test_credential_federation_values.py:583
↓ 3 callersMethod_secrets
(self)
litellm/harness/endpoint.py:608
↓ 3 callersFunction_seed_account
(user_id: str, email: str)
tests/integration/authorization/test_sso_blank_identity.py:391
↓ 3 callersFunction_seed_alias_keys
(db, prefix: str, actors)
tests/integration/management/test_key_aliases.py:19
↓ 3 callersMethod_seed_identity_baggage
Seed authenticated request-identity Baggage onto ``context`` so the Baggage processor stamps team/key/metadata onto the span. Identity is read
litellm/integrations/otel/logger.py:422
↓ 3 callersFunction_seed_key_with_limits
Raw-seed a resources key with explicit models / tpm / rpm — /key/generate can't set these against a non-throughput team without firing F1's guards
tests/integration/management/test_key_team_change.py:32
↓ 3 callersFunction_seed_old_spend_log
(request_id: str, days_ago: int)
tests/integration/spend/test_daily_tag_spend_retention.py:39
↓ 3 callersFunction_seed_project_scoped_budgets
( key_cache: DualCache, team_member_spend: float, team_member_max_budget: float, project_spend
tests/unit/proxy/test_budget_reservation.py:599
↓ 3 callersFunction_seed_roster
(scenario: Scenario, team_id: str, entries: list[dict[str, JsonValue]])
tests/integration/management/test_team_delete_inputs.py:103
↓ 3 callersFunction_seed_scratch_actor_with_caps
Raw-seed a resources actor + verification token, with the token carrying explicit caps that flow into `user_api_key_dict` at request time. Re
tests/integration/management/test_team_budget_limits.py:35
↓ 3 callersFunction_seed_target
(db, actors, shape: str, team_id: str)
tests/integration/management/test_team_member_add.py:42
↓ 3 callersFunction_seed_team_metadata
(db, team_id: str, metadata: dict[str, object])
tests/integration/management/test_team_update.py:285
↓ 3 callersFunction_seeded_activity
()
tests/unit/proxy/management_endpoints/test_daily_activity_routes.py:122
↓ 3 callersFunction_seen
(deliveries: tuple[str, ...], marker: str)
tests/integration/providers/test_malformed_tools_chaos.py:270
↓ 3 callersFunction_select_priced_tier
(model_info: ModelInfo, usage: Usage)
litellm/litellm_core_utils/llm_cost_calc/utils.py:408
↓ 3 callersFunction_self_signed_server_context
(directory: Path)
tests/unit/integration_support/test_wire.py:31
↓ 3 callersMethod_semantic_request
(self, query: str = "FX")
tests/unit/proxy/mcp_server/test_mcp_tool_search.py:930
↓ 3 callersFunction_send
(rig: Rig, messages: list[dict], stream: bool)
tests/integration/observability/test_presidio_overlapping_spans.py:186
↓ 3 callersFunction_send
( gateway: Gateway, scenario: Scenario, wire_url: str, request_id: str, *, openrouter:
tests/integration/spend/test_openrouter_upstream_provider.py:102
↓ 3 callersFunction_send
(gateway: Gateway, route: _Route, model: str, marker: str)
tests/integration/routing/test_non_chat_model_endpoint_gate.py:322
↓ 3 callersMethod_send
(self, line: bytes)
litellm/proxy/spend_tracking/spend_event_producer.py:266
↓ 3 callersMethod_send
(self, messages: Sequence[str])
tests/unit/proxy/auth/test_auth_checks.py:2271
↓ 3 callersFunction_send_all
(target: _Target, calls: tuple[_Call, ...])
tests/integration/authorization/test_responses_compact_id_ownership_chaos.py:106
↓ 3 callersFunction_send_async
(record: Mapping[str, object])
tests/integration/_support/a2a_denial_probe.py:64
↓ 3 callersFunction_send_burst
( isolated: Gateway, cases: tuple[tuple[str, str, dict[str, JsonValue]], ...], )
tests/integration/spend/test_spend_log_tool_payload_content.py:1595
↓ 3 callersMethod_send_error
(self, message: str, error_type: str = "server_error")
litellm/responses/streaming_iterator.py:3231
↓ 3 callersMethod_send_frame
(self, frame: str)
litellm/responses/streaming_iterator.py:3234
↓ 3 callersFunction_send_request
()
tests/integration/providers/test_a2a_sdk_upstream_wire.py:57
↓ 3 callersMethod_send_request
(self, url, headers, data)
litellm/proxy/guardrails/guardrail_hooks/zscaler_ai_guard/zscaler_ai_guard.py:332
↓ 3 callersMethod_send_setup_before_content
(self, msg_type: str | None)
litellm/litellm_core_utils/realtime_streaming.py:1262
↓ 3 callersFunction_sensitive_field
(key: str)
litellm/proxy/mcp_server/mcp_debug.py:425
↓ 3 callersFunction_sent_body
(response: httpx.Response, end_user: str)
tests/integration/spend/test_end_user_budget_enforcement.py:504
↓ 3 callersFunction_sent_by
(call, **params: str)
tests/unit/vector_stores/test_vector_store_registry.py:255
↓ 3 callersFunction_sent_header
(request: dict[str, object], name: str)
tests/integration/mcp/test_mcp_credentials.py:508
↓ 3 callersFunction_sent_outputs
(route: respx.Route)
tests/unit/llms/openai/responses/count_tokens/test_token_counter.py:524
↓ 3 callersFunction_sent_requests
()
tests/unit/proxy/client/cli/test_keys_commands.py:545
↓ 3 callersFunction_sent_thinking_config
(model: str, thinking_params: dict[str, object])
tests/unit/llms/vertex_ai/gemini/test_vertex_and_google_ai_studio_gemini.py:10910
↓ 3 callersMethod_sentinel
(*, model_id, model_group, flat_cost=480.0)
tests/unit/proxy/management_endpoints/test_common_daily_activity.py:2222
↓ 3 callersFunction_sentinel_row
(row_id, team_id, model)
tests/unit/proxy/spend_tracking/test_ptu_flat_cost_rollup.py:166
↓ 3 callersFunction_serialized_fields
(serialized: object)
litellm/llms/sap/chat/models.py:22
↓ 3 callersFunction_series
(samples: Sequence[Sample], name: str, **labels: str)
tests/integration/observability/test_prometheus_request_metrics.py:105
↓ 3 callersFunction_series
(samples: Sequence[Sample], name: str, **labels: str)
tests/integration/observability/test_prometheus_shared_custom_labels.py:202
↓ 3 callersFunction_serve
One call ``deployment_id`` of group ``gpt`` answered with ``total_tokens``, counted as the router counts it.
tests/unit/test_router/core/test_registry_characterization_model_info.py:40
← previousnext →25,001–25,100 of 202,479, ranked by callers