MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 3 callersMethod_apply_post_stream_processing
Apply provider-specific post-stream processing if available.
litellm/completion_extras/litellm_responses_transformation/handler.py:412
↓ 3 callersFunction_apply_soft_budget_update
( data: UpdateKeyRequest, non_default_values: Mapping[str, object], db: _KeyUpdateTx, existing
litellm/proxy/management_endpoints/key_management_endpoints.py:2815
↓ 3 callersFunction_apply_ssrf_general_settings
(settings: Mapping[str, object])
litellm/proxy/proxy_server.py:5306
↓ 3 callersFunction_apply_streaming_chunk_hooks
( *, chunk: Any, user_api_key_dict: UserAPIKeyAuth, request_data: dict, str_so_far: str, )
litellm/proxy/proxy_server.py:10533
↓ 3 callersFunction_apply_time_of_day
Set the wall-clock time of `dt` to `reset_time_of_day`, keeping its date and tzinfo.
litellm/litellm_core_utils/duration_parser.py:231
↓ 3 callersMethod_apply_user_server_ceiling
Narrow a resolved server list by the internal user's own entitlement. Returns the capped list and whether this human restricted it at all; th
litellm/proxy/mcp_server/auth/user_api_key_auth_mcp.py:4233
↓ 3 callersMethod_apply_user_tool_ceiling
Narrow a key/team tool allowlist by the internal user's own tool entitlement. The human's entitlement can only ever narrow: a user naming too
litellm/proxy/mcp_server/auth/user_api_key_auth_mcp.py:4327
↓ 3 callersMethod_apply_variables
Apply variables to the prompt template. This performs simple string substitution using {variable_name} syntax. Args:
litellm/integrations/generic_prompt_management/generic_prompt_manager.py:350
↓ 3 callersFunction_approx_equal
Within 1% or 1e-9 absolute - spend math, not exact float identity.
tests/e2e/quota_management/spend_tracking/test_spend_tracking_e2e.py:48
↓ 3 callersFunction_approximate_input_size
Length of the request's input text, a cheap stand-in for tokenizing cost. Every field count_input_tokens_for_model hands the tokenizer is sized h
litellm/proxy/spend_tracking/input_tokens.py:55
↓ 3 callersFunction_aread_first_chunk
Read the first chunk while the attempt still holds the request, so a stream that fails before any token fails the attempt. Iterates the way ``asyn
litellm/router_rust/invoke/streaming.py:421
↓ 3 callersFunction_areported
``items``, reporting the attempt's stream once they end: a success with the tokens ``total_tokens`` reads off the last item, or the failure they r
litellm/router_rust/invoke/streaming.py:295
↓ 3 callersFunction_aresponses_and_get_request_headers
(**request_kwargs)
tests/unit/responses/test_responses_api_request_body.py:610
↓ 3 callersFunction_arguments
(arguments: str | None)
tests/integration/providers/test_databricks_chat_wire.py:2004
↓ 3 callersFunction_arguments_sent_upstream
(arguments: dict)
tests/unit/proxy/mcp_server/guardrail_translation/test_mcp_guardrail_handler.py:447
↓ 3 callersFunction_argv_recorded
(runner: Runner, tool: str)
tests/unit/test_lint_workflow_diff_gates.py:358
↓ 3 callersFunction_arity
(s,o)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 3 callersMethod_arm_detached_stream_failure_hook
Let a stream that fails after the client left still reach ``post_call_failure_hook``. The client-facing generator reports a mid-stream failur
litellm/proxy/common_request_processing.py:3903
↓ 3 callersFunction_armed_store
()
tests/unit/router_utils/test_routing_read_batch.py:206
↓ 3 callersFunction_artifact
( global_successes: tuple[float, float, float, float] = (4.0, 5.0, 6.0, 7.0), threshold: float = 0.75,
tests/unit/router_strategy/test_complexity_tier_predictor.py:17
↓ 3 callersFunction_artifact_event
(text: str, append: bool | None, artifact_id: str = "a1")
tests/unit/a2a_protocol/test_a2a_streaming_iterator.py:205
↓ 3 callersMethod_as_array
(node: JsonValue)
litellm/proxy/common_utils/custom_openapi_spec.py:41
↓ 3 callersFunction_as_chat_reasoning_items
( reasoning_items: Sequence[_BuiltReasoningItem | ChatCompletionReasoningItem], )
litellm/completion_extras/litellm_responses_transformation/transformation.py:505
↓ 3 callersFunction_as_counts
(values: Sequence[float | None])
litellm/router_strategy/least_busy.py:168
↓ 3 callersFunction_as_datetime
(value: str)
tests/e2e/quota_management/budgets/test_budget_reset_advances_e2e.py:57
↓ 3 callersFunction_as_dict
(value: object)
litellm/llms/opencode/harness/transformation.py:273
↓ 3 callersFunction_as_json_array
(value: object)
litellm/proxy/guardrails/guardrail_registry.py:101
↓ 3 callersFunction_as_list
Widen a read-only allowlist back to the mutable list the resolver's own contract returns, preserving the ``None`` that means "no restriction".
litellm/proxy/mcp_server/auth/user_api_key_auth_mcp.py:130
↓ 3 callersFunction_as_list
(value: object)
tests/e2e/perf/setup/locustfile.py:51
↓ 3 callersFunction_as_mapping
(value: object)
litellm/router_rust/surface/indexes.py:62
↓ 3 callersFunction_as_mutable_mapping
``value`` when it is a dict, else ``None``.
litellm/router_utils/pre_call_checks/io_token_rate_limit_check.py:440
↓ 3 callersFunction_as_object
`value` as a JSON object, or None. States the key type once so the checker does not see `dict[Unknown, Unknown]` at every read.
litellm/proxy/guardrails/guardrail_hooks/airia/airia.py:91
↓ 3 callersFunction_as_role
(role: LitellmUserRoles)
tests/unit/proxy/management_endpoints/management_v1/test_budgets.py:97
↓ 3 callersMethod_as_str_dict
(value: object)
litellm/llms/opensandbox/sandbox/transformation.py:418
↓ 3 callersFunction_as_str_mapping
(value: Mapping[str, object])
litellm/llms/anthropic/chat/guardrail_translation/handler.py:141
↓ 3 callersFunction_asked_audiences
(rig: _Rig)
tests/integration/security/test_api_key_secret_reference.py:838
↓ 3 callersFunction_aspeech_vertex
( respx_mock: respx.MockRouter, speech_input: str, voice_params: Mapping[str, object] )
tests/unit/llms/vertex_ai/text_to_speech/test_transformation.py:1471
↓ 3 callersFunction_assembled_round
(parked: Parked | None)
litellm/responses/mcp/chat_stream_round_billing.py:83
↓ 3 callersFunction_assertThisInitialized
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 3 callersFunction_assert_a2a_calls_are_billed
( gateway: Gateway, pricing: dict[str, JsonValue], cost: float, calls: tuple[tuple[str, str],
tests/integration/spend/test_agent_spend.py:94
↓ 3 callersFunction_assert_all_answered_with_content
(outcomes: Sequence[Answer])
tests/integration/caching/test_response_cache_chaos.py:259
↓ 3 callersFunction_assert_answered
(served: _Served)
tests/integration/providers/test_bedrock_stream_timeout_chaos.py:187
↓ 3 callersFunction_assert_answered_in_its_own_shape
(served: _Served)
tests/integration/providers/test_chatgpt_responses_caller_stream_chaos.py:153
↓ 3 callersFunction_assert_answered_in_its_own_shape
(served: _Served)
tests/integration/streaming/test_responses_bridge_stream_chaos.py:237
↓ 3 callersFunction_assert_answered_with_its_own_marker
(served: _Served)
tests/integration/providers/test_bedrock_converse_lookaround_regex_chaos.py:245
↓ 3 callersFunction_assert_answered_with_its_own_marker
(served: _Served)
tests/integration/providers/test_responses_minted_reasoning_replay_chaos.py:183
↓ 3 callersFunction_assert_answered_with_its_own_marker
(served: _Served)
tests/integration/providers/test_gemini_thinking_replay_chaos.py:231
↓ 3 callersFunction_assert_api_error
(response: httpx.Response, *, status: int, message: str)
tests/integration/messages_endpoint/providers/anthropic/test_anthropic_messages_overloaded_wire.py:129
↓ 3 callersFunction_assert_billed
(gateway: Gateway, response: httpx.Response, model: str, route: Route)
tests/integration/providers/test_cloudflare_clef_omni_media_wire.py:214
↓ 3 callersFunction_assert_billed_once_at_720p
(key: str, provider: str)
tests/integration/providers/test_dashscope_video_wire.py:68
↓ 3 callersFunction_assert_breakdown_agrees_with_the_billed_cost
(row: StandardLoggingPayload)
tests/unit/responses/mcp/test_aresponses_api_with_mcp.py:2562
↓ 3 callersFunction_assert_budget_refusal
(response: httpx.Response, end_user: str, budget: float)
tests/integration/spend/test_end_user_budget_enforcement.py:529
↓ 3 callersFunction_assert_burst_row
( row: dict[str, JsonValue], kind: str, marker: str, *, require_chat_logprobs: bool = True
tests/integration/spend/test_spend_log_tool_payload_content.py:1608
↓ 3 callersFunction_assert_cache_read_billed
(row: CostRow)
tests/e2e/quota_management/spend_tracking/test_cache_cost_accounting_e2e.py:113
↓ 3 callersFunction_assert_caller_id
(endpoint: Endpoint, stream: bool, caller_id: str, response_id: str)
tests/integration/providers/test_gemini_tool_result_part_reference_wire.py:494
↓ 3 callersFunction_assert_capped
(served: Sequence[_Sent], received: Sequence[Request])
tests/integration/providers/test_cache_control_tool_call_marks_owned_proxy.py:120
↓ 3 callersFunction_assert_carries_the_upstream_rejection
(rejected: litellm.BadRequestError)
tests/unit/llms/openai/completion/test_completion_handler.py:110
↓ 3 callersFunction_assert_chat_refused
(gateway: Gateway, upstream: Wire, model: str, key: str, tool_name: str)
tests/integration/management/test_tool_policy_user.py:570
↓ 3 callersFunction_assert_chat_response
(response: httpx.Response)
tests/integration/management/test_prompt_management.py:105
↓ 3 callersFunction_assert_chat_served
(gateway: Gateway, upstream: Wire, model: str, key: str, tool_name: str)
tests/integration/management/test_tool_policy_user.py:578
↓ 3 callersFunction_assert_child_parented_to_root
(exporter, root_span, where)
tests/unit/integrations/open_telemetry/test_passthrough_parent_span.py:166
↓ 3 callersFunction_assert_classified
( source: str, names: frozenset[str], mapping: Mapping[str, Classification], mapping_name: str )
tests/unit/proxy/test_credential_slot_registry.py:184
↓ 3 callersFunction_assert_clean_block_termination
(raw: str)
tests/unit/proxy/guardrails/guardrail_hooks/unified_guardrails/test_anthropic_streaming_block.py:146
↓ 3 callersFunction_assert_client_frames_signed_once
(events: tuple[Event, ...], marker: str)
tests/integration/providers/test_anthropic_thinking_signature_logging_wire.py:111
↓ 3 callersFunction_assert_completed
(status: Mapping[str, JsonValue], video_id: str)
tests/integration/providers/test_dashscope_video_wire.py:59
↓ 3 callersFunction_assert_completion
(response: ChatResponse)
tests/e2e/llm_translation/test_bedrock_provider_matrix_e2e.py:69
↓ 3 callersFunction_assert_content_twin
(rig: Rig, sent: Sent, cursors: Cursors)
tests/integration/observability/test_otel_team_capture_message_content.py:355
↓ 3 callersFunction_assert_copilot_cache_empty
(cache: Cache)
tests/unit/caching/test_caching_handler.py:154
↓ 3 callersFunction_assert_crafted_failure
(timed: _Timed, expected_status: int = 400)
tests/integration/spend/test_normalized_error_long_message.py:87
↓ 3 callersFunction_assert_derived
(span: SpanRecord, call_type: str)
tests/integration/observability/test_langfuse_otel_trace_fields.py:342
↓ 3 callersFunction_assert_dropped_on_wire
(body: Mapping[str, JsonValue], names: Sequence[str])
tests/integration/providers/test_responses_bridge_tool_search_wire.py:528
↓ 3 callersFunction_assert_each_bad_file_names_its_own_line
(answers: tuple[_Answer, ...])
tests/integration/providers/test_vertex_batch_row_line_errors_chaos.py:97
↓ 3 callersFunction_assert_each_good_file_landed_once
(answers: tuple[_Answer, ...], requests: tuple[Request, ...])
tests/integration/providers/test_vertex_batch_row_line_errors_chaos.py:102
↓ 3 callersFunction_assert_each_lands_once
( rows: list[dict[str, JsonValue]], failed: tuple[_Served, ...], served: tuple[_Served, ...] )
tests/integration/providers/test_responses_bridge_tool_search_chaos.py:332
↓ 3 callersFunction_assert_each_lands_once
( spend: pcb.SpendLogs, model: str, failed: Sequence[_Served], served: Sequence[_Served] )
tests/integration/providers/test_responses_bridge_prompt_cache_breakpoint_wire_chaos.py:194
↓ 3 callersFunction_assert_each_lands_once
( spend: pcb.SpendLogs, model: str, failed: Sequence[_Served], served: Sequence[_Served] )
tests/integration/providers/test_responses_bridge_message_cache_control_wire_chaos.py:220
↓ 3 callersFunction_assert_each_lands_once
(served: tuple[_Served, ...])
tests/integration/streaming/test_responses_bridge_stream_chaos.py:291
↓ 3 callersFunction_assert_each_logged_once
(served: Sequence[_Served])
tests/integration/streaming/test_faked_responses_stream_chaos.py:290
↓ 3 callersFunction_assert_each_logged_once
(rows: Sequence[Mapping[str, JsonValue]], served: Sequence[_Served])
tests/integration/routing/test_complexity_router_databricks_classifier.py:428
↓ 3 callersFunction_assert_each_names_its_own_span
(rig: Rig, responses: Sequence[httpx.Response])
tests/integration/observability/test_otel_trace_response_header.py:695
↓ 3 callersFunction_assert_each_request_sent_the_token_before_it
(wire: Wire, provider: Provider, stream: bool)
tests/integration/providers/test_gemini_long_decode_wire.py:512
↓ 3 callersFunction_assert_each_send_billed
(key: str, sends: int)
tests/integration/streaming/test_openai_like_stream_usage_wire.py:134
↓ 3 callersFunction_assert_each_value_once
(served: _Served)
tests/integration/streaming/test_faked_responses_stream_chaos.py:259
↓ 3 callersFunction_assert_empty_answer_reaches_upstream_again
Through ``target`` after the outage: the scripted empty answer is never served again once the upstream answers for real, and the real answer is th
tests/integration/caching/test_response_cache_chaos.py:293
↓ 3 callersFunction_assert_eval_sdk_paths
(gateway: Gateway, suffix: str, spelling: str, calls: tuple[_EvalCall, ...])
tests/integration/providers/test_provider_lookup_status.py:470
↓ 3 callersFunction_assert_every_burst_request_landed_once
(key: str, outcomes: Sequence[Answer])
tests/integration/caching/test_response_cache_chaos.py:281
↓ 3 callersFunction_assert_every_call_forwarded
(wire: Wire, calls: tuple[_Call, ...])
tests/integration/providers/test_chat_completions_tool_search_chaos.py:186
↓ 3 callersFunction_assert_every_pick
( client: ComplexityRouterClient, key: str, group: str, strategy: RoutingStrategy, expecte
tests/e2e/router/test_reliability_routing_strategies_e2e.py:119
↓ 3 callersFunction_assert_every_request_carried_the_beta
(received: tuple[Request, ...], markers: frozenset[str])
tests/integration/messages_endpoint/providers/anthropic/test_anthropic_safeguards_beta_chaos.py:105
↓ 3 callersFunction_assert_every_team_fully_deleted
Every team: row, memberships, ``teams`` references and key gone; tombstones one per attempt.
tests/integration/management/test_team_delete_chaos.py:321
↓ 3 callersFunction_assert_every_tool_message_follows_tool_calls
(messages)
tests/unit/llms/databricks/chat/test_databricks_chat_transformation.py:969
↓ 3 callersFunction_assert_exactly_once
(rig: Rig, expected: Mapping[str, str], landed: Mapping[str, tuple[str, ...]])
tests/integration/observability/test_otel_conversation_id.py:688
↓ 3 callersFunction_assert_exactly_once
(rig: Rig, identities: Sequence[str])
tests/integration/observability/test_signoz_delivery.py:856
↓ 3 callersFunction_assert_failure_row_names_its_provider_request
(call_id: str, marker: str)
tests/integration/streaming/test_stream_open_error_provider_headers_proxy.py:178
↓ 3 callersFunction_assert_first_call_billed
(logging_obj: Logging, *, input_tokens: int, output_tokens: int)
tests/unit/integrations/websearch_interception/test_websearch_agentic_loop_cap.py:658
↓ 3 callersFunction_assert_forwarded
(forwarded: Mapping[str, Request], calls: tuple[_Call, ...])
tests/integration/providers/test_chatgpt_responses_caller_stream_chaos.py:168
↓ 3 callersFunction_assert_forwarded
(received: tuple[Request, ...], calls: Sequence[_Call])
tests/integration/streaming/test_faked_responses_stream_chaos.py:272
↓ 3 callersFunction_assert_forwarded
(received: tuple[Request, ...], calls: tuple[_Call, ...])
tests/integration/streaming/test_responses_bridge_stream_chaos.py:274
↓ 3 callersFunction_assert_forwarded_without_a_minted_item
(request: Request, marker: str)
tests/integration/providers/test_responses_minted_reasoning_replay_chaos.py:188
↓ 3 callersFunction_assert_gateway_accepted
(request: dict, auth_kwargs: dict)
tests/unit/llms/bedrock/test_claude_platform_provider.py:651
← previousnext →22,201–22,300 of 202,479, ranked by callers