MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 6 callersFunction_new_customer
(gateway: Gateway, user_id: str, **fields: JsonValue)
tests/integration/spend/test_end_user_spend_without_proxy_user.py:83
↓ 6 callersFunction_next_turn
( gateway: Gateway, model: str, prompt: str, tools: Sequence[dict[str, JsonValue]], messag
tests/integration/providers/test_responses_bridge_history_replay_wire.py:96
↓ 6 callersFunction_non_json_lines
(log: str)
tests/integration/configuration/test_json_logs_startup.py:144
↓ 6 callersFunction_non_stream_response
(case: _Case)
tests/unit/llms/base_llm/chat/test_provider_chat_thinking.py:172
↓ 6 callersFunction_normalize_escaped_newlines
Replace literal escaped newlines (backslash + n or backslash + r) with real newlines. API/JSON payloads sometimes deliver newlines as the two
litellm/proxy/guardrails/guardrail_hooks/block_code_execution/block_code_execution.py:251
↓ 6 callersMethod_normalize_tool_calls
Convert tool_calls from inputs to ChatCompletionMessageToolCall objects.
litellm/integrations/rubrik.py:504
↓ 6 callersMethod_oauth2_server
(self, **overrides)
tests/unit/proxy/mcp_server/test_mcp_server_manager.py:12829
↓ 6 callersFunction_object
(value: JsonValue)
tests/integration/providers/test_responses_websocket_session_limit.py:261
↓ 6 callersFunction_object_permission_table_rows
()
tests/integration/management/test_project_lifecycle.py:104
↓ 6 callersFunction_object_table
(prisma_client: PrismaClient)
litellm/proxy/pass_through_endpoints/managed_id_rewriter.py:304
↓ 6 callersFunction_observation_with
(statements: tuple[StatementCalls, ...])
tests/e2e_harness/perf/setup/test_observe.py:89
↓ 6 callersFunction_observed
(upstream: httpx.Client)
tests/integration/spend/test_end_user_spend_without_proxy_user.py:65
↓ 6 callersFunction_ocr_payload
( kwargs: _LoggingKwargs, response_obj: _OcrResponseDict | _CompletionResponseDict | OCRResponse )
tests/unit/proxy/spend_tracking/test_spend_tracking_utils.py:7000
↓ 6 callersFunction_of_request
Spans of ``sent``'s trace at ``url``, narrowed to one account's export requests when ``credential`` is set.
tests/integration/observability/test_otel_team_capture_message_content.py:275
↓ 6 callersFunction_only_request
(wire: Wire, marker: str)
tests/integration/providers/test_bedrock_runtime_chat_completions_sad_wire.py:99
↓ 6 callersFunction_open
(tag: str, attrs: Iterable[tuple[str, str]] = ())
litellm/llms/bedrock/count_tokens/kimi_k3.py:291
↓ 6 callersFunction_open_stream_auto_execute
(logging_obj: Logging)
tests/unit/responses/mcp/test_aresponses_api_with_mcp.py:2512
↓ 6 callersFunction_openai
(model: str)
tests/e2e/logging/test_otel_v2_langfuse_generation_output_e2e.py:148
↓ 6 callersFunction_openai_model
(scenario: Scenario, wire: Wire, **parameters: JsonValue)
tests/integration/messages_endpoint/test_tool_result_text_wire.py:148
↓ 6 callersFunction_openai_params
()
tests/e2e/llm_translation/test_responses_e2e.py:106
↓ 6 callersFunction_openai_passthrough_stream_chunks
()
tests/unit/proxy/pass_through_endpoints/test_streaming_handler_interrupt.py:389
↓ 6 callersFunction_openai_text_model
(scenario, wire)
tests/integration/providers/test_google_genai_adapter_wire.py:828
↓ 6 callersFunction_openai_tool_search_with_deferred_functions
( search_tools: tuple[dict[str, object], ...] = ({"type": "tool_search", "execution": "server"},), )
tests/unit/llms/anthropic/chat/test_anthropic_chat_transformation.py:10241
↓ 6 callersFunction_operation
(model: str)
litellm/llms/scaledown/chat/transformation.py:257
↓ 6 callersFunction_otlp_http_otel
(endpoint: str)
tests/unit/integrations/test_opentelemetry.py:2428
↓ 6 callersFunction_output_types
(payload: Mapping[str, JsonValue])
tests/integration/providers/test_responses_bridge_tool_search_wire.py:402
↓ 6 callersFunction_over_budget_token
(**overrides)
tests/unit/proxy/auth/test_auth_checks_object_access_and_lookup.py:5620
↓ 6 callersFunction_overlay
(args)
tests/unit/proxy/client/cli/test_agents.py:229
↓ 6 callersFunction_override_auth_user_with_token
Return a non-admin caller whose hashed token equals `token`.
tests/unit/proxy/management_endpoints/test_workflow_management_endpoints.py:137
↓ 6 callersFunction_owned_proxy
( rig: ChaosRig, directory: Path, rails: Sequence[dict[str, JsonValue]], *, workers: int =
tests/integration/observability/test_guardrail_stream_scope_chaos.py:447
↓ 6 callersFunction_owner
(user_id: str, email: str | None, alias: str | None)
tests/integration/management/test_tool_policy_user.py:196
↓ 6 callersFunction_panw_config
(tmp_path: Path, identity: str, policy_url: str, **flags: bool)
tests/integration/observability/test_guardrail_effects.py:505
↓ 6 callersFunction_parse
(adapter: TypeAdapter[T], value: object)
litellm/llms/anthropic/messages/context_management/editors/clear_tool_uses.py:100
↓ 6 callersFunction_parse
(adapter: TypeAdapter[_ParsedT], raw_response: httpx.Response)
litellm/llms/volcengine/videos/transformation.py:190
↓ 6 callersMethod_parseAsync
(e)
litellm/proxy/_experimental/out/_next/static/chunks/2j7hjtph8n74b.js:1
↓ 6 callersMethod_parse_and_convert_timestamp
Parse timestamp string and convert to UTC.
litellm/integrations/cloudzero/cz_stream_api.py:107
↓ 6 callersMethod_parse_date
Parse date string from daily spend tables (e.g., '2025-04-19').
litellm/integrations/cloudzero/transform.py:205
↓ 6 callersMethod_parse_message_from_event
(self, event: _EventStreamMessage)
litellm/llms/sagemaker/common_utils.py:377
↓ 6 callersFunction_parse_metrics_marker
Parse metricsMarker from Mavvrik register response into a UTC datetime. Handles both formats Mavvrik may return: - Unix timestamp (int/float)
litellm/integrations/mavvrik_focus/mavvrik_focus_logger.py:42
↓ 6 callersFunction_parse_sse_events
Return a list of (event_type, parsed_data_dict) from raw SSE bytes.
litellm/llms/anthropic/messages/native/agentic_streaming_iterator.py:67
↓ 6 callersFunction_parse_stored_settings
Normalize a stored cache_settings blob to a dict. The prisma column comes back as either a JSON string or an already-parsed dict depending on
litellm/proxy/management_endpoints/cache_settings_endpoints.py:109
↓ 6 callersFunction_parse_token_response
Parse OAuth token response.
litellm/llms/gigachat/authenticator.py:244
↓ 6 callersFunction_partition_logger
( monkeypatch: pytest.MonkeyPatch, callback_params: dict[str, object], **kwargs: object )
tests/unit/integrations/test_s3_v2.py:2847
↓ 6 callersFunction_partition_payload
(response_id: str = _PARTITION_ID)
tests/unit/integrations/test_s3_v2.py:2839
↓ 6 callersFunction_parts
(content_type: str, body: bytes)
tests/integration/providers/test_openai_passthrough_multipart_wire.py:94
↓ 6 callersFunction_parts_copy
()
tests/unit/proxy/guardrails/guardrail_hooks/test_headroom.py:1884
↓ 6 callersFunction_pass_through_key_limits
()
tests/unit/proxy/agent_endpoints/test_agent_search.py:242
↓ 6 callersFunction_passthrough_provider_marker
(provider: str)
litellm/proxy/pass_through_endpoints/managed_id_rewriter.py:258
↓ 6 callersFunction_passthrough_router
()
tests/unit/proxy/openai_files_endpoint/test_files_endpoint.py:6055
↓ 6 callersFunction_patch
( gateway: Gateway, name: str, values: Mapping[str, JsonValue], delete: Sequence[str] = (),
tests/integration/management/test_credential_federation_values.py:174
↓ 6 callersFunction_patch_apply_guardrail_env
(mocker, guardrail_result)
tests/unit/proxy/guardrails/test_guardrail_endpoints.py:2172
↓ 6 callersFunction_patch_member_me_helpers
Patch the three auth helpers used by team_member_me with AsyncMocks.
tests/unit/proxy/management_endpoints/test_team_endpoints.py:12448
↓ 6 callersMethod_patch_org_lookup
(self, monkeypatch, **mock_kwargs)
tests/unit/proxy/management_endpoints/test_team_default_params.py:176
↓ 6 callersFunction_patch_sso_configured
(stack: ExitStack, *, configured: bool)
tests/unit/proxy/auth/test_login_utils.py:1740
↓ 6 callersMethod_patch_user_reload
Patch the user-subject reload path an interactively-minted envelope takes: the ``get_user_object`` lookup ``reload_admitted_user`` runs (which
tests/unit/proxy/mcp_server/auth/test_user_api_key_auth_mcp.py:6693
↓ 6 callersMethod_patched_proxy
Patch everything /model/new touches except the PTU gate, and hand back the DB writers.
tests/unit/proxy/management_endpoints/test_ptu_model_settings.py:666
↓ 6 callersFunction_payload
()
tests/unit/proxy/telemetry/test_attempt_logger.py:51
↓ 6 callersFunction_payload
(**overrides: Any)
tests/unit/proxy/db/test_model_usage_rollup.py:42
↓ 6 callersFunction_payload
()
tests/unit/batches/test_batch_line_items.py:91
↓ 6 callersFunction_payload_with_guardrail_record
(guardrail_information: object)
tests/unit/integrations/datadog/test_datadog_llm_obs.py:850
↓ 6 callersFunction_peer
()
tests/integration/providers/test_bedrock_stream_timeout_chaos.py:95
↓ 6 callersFunction_per_user_env
(monkeypatch, credential_names=("copilot-cred",))
tests/unit/proxy/test_litellm_pre_call_utils.py:11098
↓ 6 callersFunction_persist_dcr_client_registration
Persist the dynamically registered OAuth client (RFC 7591) to its single home: the server's ``LiteLLM_MCPServerTable`` row when it has one, otherw
litellm/proxy/mcp_server/discoverable_endpoints.py:1847
↓ 6 callersFunction_phoenix_cache
(kind="otlp_http")
tests/unit/integrations/otel/test_otel_v2_dynamic.py:194
↓ 6 callersFunction_picks
(core: RouterCore, deployment_id: object)
tests/unit/test_router/core/test_parity_pick_count_and_fallback_log.py:59
↓ 6 callersMethod_pin_patches
(stored, store_mock, manager)
tests/unit/proxy/management_endpoints/test_mcp_management_endpoints.py:8949
↓ 6 callersFunction_pinned
(gateway: Gateway)
tests/integration/mcp/test_mcp_accounting_guardrails.py:368
↓ 6 callersFunction_pinned_guardrail
(**overrides)
tests/unit/proxy/guardrails/guardrail_hooks/test_ovalix.py:1149
↓ 6 callersFunction_pipeline_step_guardrail_names
(pipelines: Sequence[tuple[str, "GuardrailPipeline"]])
litellm/proxy/utils.py:726
↓ 6 callersFunction_plain_model_response
(content: str = "The answer is 42")
tests/unit/litellm_core_utils/test_chat_completion_agentic_loop.py:135
↓ 6 callersFunction_pod_lock
(acquired: bool)
tests/unit/proxy/spend_tracking/test_spend_capture_rate.py:257
↓ 6 callersMethod_points
(self, enable_prompt_caching, model="claude-sonnet-4-5", provider="anthropic", messages=None)
tests/unit/integrations/test_anthropic_cache_control_hook.py:3054
↓ 6 callersFunction_poll_for_authentication
Poll the server for authentication completion and handle team selection. Returns: Dictionary with authentication data if successful,
litellm/proxy/client/cli/commands/auth.py:672
↓ 6 callersFunction_post
(gateway: Gateway, body: Mapping[str, JsonValue], *, beta: str | None = None)
tests/integration/providers/test_rust_anthropic_safeguards_beta_wire.py:130
↓ 6 callersFunction_post
(gateway: Gateway, path: str, body: Mapping[str, JsonValue])
tests/integration/streaming/test_stream_clean_eof_without_finish_reason.py:188
↓ 6 callersFunction_post
(gateway: Gateway, path: str, body: dict[str, JsonValue])
tests/integration/compatibility/test_status_code_followups.py:134
↓ 6 callersMethod_post
( self, monkeypatch: pytest.MonkeyPatch, path: str, headers: Mapping[str, str]
tests/unit/proxy/pass_through_endpoints/test_llm_pass_through_endpoints.py:8766
↓ 6 callersFunction_post_call_statuses
(data: Dict[str, Any])
tests/unit/proxy/utils/proxy_logging/test_guardrail_pipeline.py:4031
↓ 6 callersMethod_pre_call_hook_already_ran
(self, data: Mapping[str, object], *, raised: bool = False)
litellm/integrations/custom_guardrail.py:1018
↓ 6 callersFunction_prefix
(body: Mapping[str, JsonValue])
tests/unit/proxy/management_endpoints/test_prompt_cache_prediction.py:60
↓ 6 callersFunction_prefixed_discovery_client
(prefixes)
tests/unit/proxy/mcp_server/test_discoverable_endpoints.py:11797
↓ 6 callersMethod_prepare
(self, request_metadata)
tests/unit/integrations/test_langsmith_init.py:568
↓ 6 callersFunction_prepare_key_update_object_permission
( object_permission_data: object, existing_key_row: LiteLLM_VerificationToken, prisma_client: Pris
litellm/proxy/management_endpoints/key_management_endpoints.py:3116
↓ 6 callersMethod_prepare_payload
Prepare the payload for the Lasso API request. Args: messages: List of message objects (may contain tool_use/tool_result
litellm/proxy/guardrails/guardrail_hooks/lasso/lasso.py:770
↓ 6 callersFunction_prepare_registry_credentials
( *, vector_store_id: str, kwargs: dict[str, object], )
litellm/vector_store_files/main.py:39
↓ 6 callersMethod_prepare_request
( self, credentials, model: str, data: dict, messages: list[AllMessage
litellm/llms/sagemaker/completion/handler.py:92
↓ 6 callersFunction_prepare_spend_counter_increment
Initialize counter from the authoritative DB spend value if not yet set, then return the pending increment for the caller to apply in one
litellm/proxy/proxy_server.py:4207
↓ 6 callersFunction_priced_dates
(table)
tests/unit/proxy/spend_tracking/test_ptu_flat_cost_rollup.py:1145
↓ 6 callersFunction_prisma
(rows)
tests/unit/proxy/mcp_server/test_oauth_issuer_stamp_backfill.py:34
↓ 6 callersFunction_prisma
(batch_: MagicMock)
tests/unit/proxy/db/test_model_usage_rollup.py:36
↓ 6 callersFunction_prisma_returning
(rows: Sequence[Mapping[str, str | int | None]] | None)
tests/unit/proxy/management_endpoints/test_gateway_request_endpoints.py:63
↓ 6 callersFunction_prisma_with_attachment_rows
(rows: list[MagicMock])
tests/unit/proxy/policy_engine/test_attachment_registry.py:689
↓ 6 callersFunction_probe
(update: JsonValue = GA_TRANSCRIPTION_UPDATE)
tests/integration/providers/test_realtime_transcription_guardrail_session_update.py:548
↓ 6 callersFunction_problem
(slug: str, title: str, status: int, detail: str, allowed: tuple[str, ...] | None = None)
litellm/proxy/list_api/list_framework.py:293
↓ 6 callersMethod_process_guardrail_callback
Process a guardrail callback during pre-call hook. Supports load balancing when multiple guardrail deployments exist. Args:
litellm/proxy/utils.py:2724
↓ 6 callersMethod_process_prompt_template
Process prompt template if applicable.
litellm/proxy/utils.py:2900
↓ 6 callersMethod_process_success
Core logic for processing successful LLM calls. Used by both sync and async success event handlers.
litellm/integrations/newrelic/newrelic.py:729
↓ 6 callersFunction_prompt
(marker: str, label: str)
tests/integration/providers/_responses_bridge_prompt_cache_breakpoint.py:141
↓ 6 callersFunction_prompt
(*blocks: dict[str, JsonValue], role: str = "user", **options: JsonValue)
tests/unit/llms/anthropic/test_anthropic_prompt_cache_prediction.py:298
↓ 6 callersFunction_prompt
()
tests/e2e/llm_translation/test_bedrock_provider_matrix_e2e.py:93
← previousnext →12,101–12,200 of 202,479, ranked by callers