MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 5 callersFunction_assert_billed_at_agent_prices
( spend: _LoggedSpend, recorder: _A2ASpendRecorder, expected_cost: _ExpectedCost, reply: str )
tests/unit/a2a_protocol/test_main.py:909
↓ 5 callersFunction_assert_budget_refusal
(status_code: int, body: str, route: str = "chat")
tests/integration/authorization/test_hidden_alias_budget_bypass.py:832
↓ 5 callersFunction_assert_budget_refusal
(response: httpx.Response, end_user: str)
tests/integration/spend/test_end_user_spend_without_proxy_user.py:112
↓ 5 callersFunction_assert_call
( response: httpx.Response, received: list[Request], destination: Wire, targets: list[str],
tests/integration/observability/test_langfuse_delivery.py:854
↓ 5 callersFunction_assert_carries_the_search_call
(served: _Served)
tests/integration/providers/test_responses_bridge_tool_search_chaos.py:301
↓ 5 callersFunction_assert_checked_both_ways
(calls: tuple[AktoCall, ...], marker: str)
tests/integration/observability/test_akto_logging_only.py:287
↓ 5 callersFunction_assert_denied
(response: httpx.Response, wire: Wire, marker: str, tool: str)
tests/integration/authorization/test_tool_search_replay_allowlist.py:58
↓ 5 callersFunction_assert_each_answer_sent_its_own_token_once
(received: Sequence[Request], calls: Sequence[Call])
tests/integration/providers/test_gemini_long_decode_chaos.py:229
↓ 5 callersFunction_assert_each_attempted_once_renamed
(attempts: tuple[_Attempt, ...], calls: tuple[_Call, ...], value: int)
tests/integration/providers/test_bedrock_mantle_output_limit_wire.py:862
↓ 5 callersFunction_assert_each_billed_once_as_background_cost
(key: str, count: int)
tests/integration/spend/test_background_response_billing_proxies.py:157
↓ 5 callersFunction_assert_each_in_its_own_form
(received: tuple[Request, ...], calls: Sequence[_Call])
tests/integration/providers/test_gemini_tool_result_part_reference_chaos.py:225
↓ 5 callersFunction_assert_embedded
(served: _Served)
tests/integration/providers/test_sagemaker_embedding_chaos.py:116
↓ 5 callersFunction_assert_embedding_vector
( proxy: ProxyClient, resources: ResourceManager, sdk: SdkClients, prefix: str, params: Li
tests/e2e/llm_translation/test_embeddings_endpoint_e2e.py:113
↓ 5 callersFunction_assert_every_ledger_row_is_finished
(database_url: str)
tests/integration/database/migrations/test_request_log_indexes.py:271
↓ 5 callersFunction_assert_evicted_after_write
Exactly the two keys, in order, after the DB write. Deliberately not a tail slice: what has to hold is that the eviction follows the write, not th
tests/unit/proxy/management_endpoints/test_access_group_management.py:925
↓ 5 callersFunction_assert_failed_over
( rig: _Rig, checked: _Checked, response: httpx.Response, marker: str, names: tuple[str, ...] )
tests/integration/providers/test_malformed_tools_wire.py:2084
↓ 5 callersFunction_assert_fails_closed
(outcome: tuple[int, str], shape: _Misconfiguration)
tests/integration/management/test_credential_federation_values.py:1033
↓ 5 callersFunction_assert_failure_logged
(response: httpx.Response)
tests/integration/providers/test_bedrock_mantle_output_limit_wire.py:312
↓ 5 callersFunction_assert_failure_logged
(call_id: str, logged_code: str, provider_message: str)
tests/integration/streaming/test_responses_top_level_error_events.py:76
↓ 5 callersFunction_assert_fallback_answered
( upstream: _Upstream, response: httpx.Response, marker: str, target: str = "/v1/chat/completions" )
tests/integration/routing/test_non_chat_model_endpoint_gate.py:622
↓ 5 callersFunction_assert_field_rejection
(gateway: Gateway, path: str, body: Mapping[str, JsonValue], **headers: str)
tests/integration/messages_endpoint/test_tool_result_text_wire.py:220
↓ 5 callersFunction_assert_filtered
(row: Mapping[str, JsonValue], *kept: str)
tests/integration/spend/test_spend_logs_metadata_fields.py:321
↓ 5 callersFunction_assert_generic_refusal
(response: httpx.Response, *secrets: str)
tests/integration/authorization/test_unknown_key_generic_401.py:135
↓ 5 callersFunction_assert_get_api_key_with_custom_litellm_key_header
(custom_litellm_key_header, api_key, passed_in_key)
tests/unit/proxy/auth/test_user_api_key_auth_request_flow.py:905
↓ 5 callersFunction_assert_joined
(served: Served)
tests/integration/providers/test_gemini_long_decode_chaos.py:207
↓ 5 callersFunction_assert_key_deleted
(client: ManagementClient, key: str)
tests/e2e/management/test_management_e2e.py:1063
↓ 5 callersFunction_assert_landed_once
(model: str, joined: Sequence[Served], cut_off_early: Sequence[Served] = ())
tests/integration/providers/test_gemini_long_decode_chaos.py:258
↓ 5 callersFunction_assert_latency_metrics
(expected: str | None, stream: bool = True, queue_time: float = 0)
tests/unit/integrations/test_prometheus_input_sequence_length_label.py:85
↓ 5 callersFunction_assert_minted_token_and_no_virtual_key
(upstream: Request, key: str)
tests/integration/providers/test_vertex_passthrough_wire.py:268
↓ 5 callersFunction_assert_never_dispatched
(rig: _Rig, scenario: Scenario, denied_message: str)
tests/integration/authorization/test_agent_denial_logging.py:343
↓ 5 callersFunction_assert_no_pending_migrations
(database_url: str)
tests/integration/database/migrations/test_request_log_indexes.py:266
↓ 5 callersFunction_assert_one_row_bills_round_one_and_the_partial_answer
( recorder: _ChatRoundRecorder, respx_mock: respx.MockRouter )
tests/unit/responses/mcp/test_chat_completions_handler.py:2252
↓ 5 callersFunction_assert_one_upstream_image_call
(wire: Wire, *, prompt: str = _PROMPT)
tests/integration/spend/test_vertex_image_regional_uplift.py:172
↓ 5 callersFunction_assert_openai_overloaded
(response: httpx.Response)
tests/integration/messages_endpoint/providers/anthropic/test_anthropic_messages_overloaded_wire.py:143
↓ 5 callersFunction_assert_operator_exactly_once
(rig: Rig, served: tuple[Sent, ...], cursors: Cursors)
tests/integration/observability/test_otel_excluded_services_matrix.py:627
↓ 5 callersFunction_assert_output_tool_call
(attributes: dict[str, str], marker: str)
tests/integration/observability/test_arize_otel_v2_openinference_modes.py:75
↓ 5 callersFunction_assert_peer_saw
(received: tuple[Request, ...], texts: tuple[str, ...])
tests/integration/providers/test_sagemaker_embedding_chaos.py:122
↓ 5 callersFunction_assert_raw_call
( rig: MatrixRig, marker: str, response: httpx.Response, streamed: bool, expected_scans: i
tests/integration/observability/test_guardrail_stream_scope_matrix.py:958
↓ 5 callersFunction_assert_refused
(response: httpx.Response, wire: Wire, marker: str, message: str, tool: str)
tests/integration/authorization/test_tool_search_replay_guardrails.py:152
↓ 5 callersFunction_assert_refused_before_any_upstream_call
(response: httpx.Response, fragment: str, wire_received: int)
tests/integration/providers/test_cloudflare_clef_omni_media_wire.py:514
↓ 5 callersFunction_assert_refused_before_the_wire
(answer: Answer, wire: Wire, *, hint: str | None, model: str)
tests/integration/providers/test_chat_completions_tool_search_wire.py:516
↓ 5 callersFunction_assert_refused_like_target
(rig: AliasRig, candidate: Gateway, key: str, shadow: str, target: str)
tests/integration/authorization/test_hidden_alias_budget_bypass.py:597
↓ 5 callersFunction_assert_served
(response: httpx.Response, marker: str, stream: bool)
tests/integration/providers/test_responses_bridge_tool_search_replay_wire.py:217
↓ 5 callersFunction_assert_served_after_retry
(resp: StreamingResponse)
tests/e2e/router/test_reliability_retries_e2e.py:57
↓ 5 callersFunction_assert_single_deleted_row
(page: AuditLogPage, token_hash: str)
tests/e2e/management/test_management_e2e.py:1054
↓ 5 callersFunction_assert_speech_logged
(call_id: str)
tests/integration/providers/test_gemini_tts_voice_mapping_owned_proxy.py:98
↓ 5 callersFunction_assert_spend
(request_id: str, response_text: str)
tests/integration/observability/test_azure_content_safety_dispatch_resilience.py:60
↓ 5 callersFunction_assert_spend
(call_id: str, rig: Rig, api_provider: str = "openai")
tests/integration/observability/test_cache_hit_guardrail_metrics.py:319
↓ 5 callersFunction_assert_spend_rows
(model: str, response_ids: Sequence[str])
tests/integration/providers/test_responses_bridge_tool_search_wire.py:544
↓ 5 callersFunction_assert_surfaces_the_provider_exception
(raised: RateLimitError, wire: Wire, marker: str)
tests/integration/sdk/test_responses_bridge_stream_errors_sdk.py:59
↓ 5 callersFunction_assert_team_attrs
(span, where)
tests/unit/integrations/test_otel_team_attributes_matrix.py:126
↓ 5 callersFunction_assert_timed_out
(served: _Served, seconds: float = _TIMEOUT_SECONDS)
tests/integration/providers/test_bedrock_stream_timeout_chaos.py:181
↓ 5 callersFunction_assert_tool_call_relayed
(endpoint: Endpoint, response: httpx.Response)
tests/integration/providers/test_bedrock_converse_lookaround_regex_wire.py:252
↓ 5 callersFunction_assert_tool_results_reach_the_model
( client: PassthroughClient, key: str, model: str, *, thinking: ThinkingParam | None, tool_choice: str | N
tests/e2e/llm_translation/test_chat_tool_round_trip_e2e.py:89
↓ 5 callersFunction_assert_undeferred_wire
(call: _Call, request: Request, body: Mapping[str, JsonValue])
tests/integration/providers/test_responses_bridge_tool_search_undeferred_wire.py:384
↓ 5 callersFunction_assert_unmapped
(response: httpx.Response, client_id: str)
tests/integration/authorization/test_jwt_key_mapping_lifecycle.py:397
↓ 5 callersFunction_assert_upstream
(wire: Wire, marker: str, expected: int)
tests/integration/authorization/test_customer_model_allowlist.py:86
↓ 5 callersFunction_assert_upstream_call
(call: Mapping[str, object], name: str, arguments: Mapping[str, object])
tests/integration/mcp/test_mcp_transports.py:105
↓ 5 callersFunction_assert_weather_call
(response: Response)
tests/e2e/llm_translation/test_responses_e2e.py:152
↓ 5 callersFunction_assert_weather_tool_call
The model, forced to call the tool, must return a get_weather call whose arguments parse as JSON and carry a location. A regression that drops too
tests/e2e/llm_translation/test_chat_completions_regression_e2e.py:210
↓ 5 callersFunction_assert_withheld
(rig: Rig, sent: Sent, cursors: Cursors)
tests/integration/observability/test_otel_excluded_services_matrix.py:410
↓ 5 callersFunction_assistant_config
(tmp_path: Path, api_base: str)
tests/integration/providers/test_assistants_evals_wire.py:124
↓ 5 callersFunction_assistant_config
(tmp_path: Path, api_base: str)
tests/integration/streaming/test_assistants_evals_stream.py:94
↓ 5 callersFunction_assistant_line
(model: str, **extra: object)
tests/unit/proxy/client/cli/test_statusline_script.py:43
↓ 5 callersMethod_async
(self, timeout: float | httpx.Timeout)
litellm/llms/xai/batches/handler.py:70
↓ 5 callersMethod_async_log_cache_hit_on_callbacks
Helper function to log the success of a cached result on callbacks Args: logging_obj (LiteLLMLoggingObj): The logging ob
litellm/caching/caching_handler.py:885
↓ 5 callersMethod_async_success_handler_body
Implementing async callbacks, to handle asyncio event loop issues when custom integrations need to use async functions.
litellm/litellm_core_utils/litellm_logging.py:4180
↓ 5 callersFunction_audit_sink
()
tests/integration/observability/test_langfuse_delivery.py:740
↓ 5 callersFunction_authorize_and_fetch_mcp_server
Resolve the MCP server a caller may manage their own per-user state for. Looks the server up in the DB, then the in-memory registry, so a
litellm/proxy/management_endpoints/mcp_management_endpoints.py:2961
↓ 5 callersFunction_authorize_through_gateway
( gateway: Gateway, auth: AuthorizationServer, alias: str, key: str, client_id: str, p
tests/integration/mcp/test_mcp_oauth_flows.py:396
↓ 5 callersFunction_auto_add_team_members_to_organization
When moving a team to an org, ensure all team members are also org members. For SSO/Entra setups without SCIM, users join teams automaticall
litellm/proxy/management_endpoints/team_endpoints.py:2224
↓ 5 callersFunction_auto_caching_messages
A prompt over the model minimum that carries no client cache_control.
tests/unit/router_utils/pre_call_checks/test_prompt_caching_deployment_check.py:480
↓ 5 callersFunction_await_deleted_audit_rows
(client: ManagementClient, token_hash: str)
tests/e2e/management/test_management_e2e.py:1042
↓ 5 callersFunction_await_logged
Wait until every call of ``sent`` has its model span in the operator's unsampled copy.
tests/integration/observability/test_otel_team_sampling_across_pods.py:257
↓ 5 callersFunction_azure_ai_response
(response_model: str, litellm_model_name: str | None = None)
tests/unit/llms/azure_ai/test_azure_ai_cost_calculator.py:109
↓ 5 callersFunction_azure_error_response
(status_code: int, error: Mapping[str, object])
tests/unit/llms/azure/test_azure_exception_mapping.py:517
↓ 5 callersFunction_backend
(repo: Path)
tests/unit/llms/deepagents/harness/test_sandbox_backend_symlinks.py:29
↓ 5 callersFunction_backup_keys
()
tests/unit/litellm_core_utils/test_get_model_cost_map.py:1022
↓ 5 callersFunction_backup_row
(model_id: str, model: str = "openai/gpt-backup")
tests/unit/proxy/common_utils/test_registry_read_through.py:511
↓ 5 callersMethod_base_url
(self, api_base: str | None)
litellm/llms/gemini/agents/transformation.py:53
↓ 5 callersFunction_batch
(batch_id: str, status: str)
tests/unit/proxy/hooks/test_model_max_budget_limiter.py:44
↓ 5 callersFunction_batch_deployment_id
(custom_pricing: dict[str, float])
tests/unit/litellm_core_utils/test_litellm_logging.py:10482
↓ 5 callersFunction_batch_line_error
(line_number: int, problem: str)
litellm/llms/bedrock/files/transformation.py:381
↓ 5 callersFunction_batch_line_items_payload
()
tests/unit/integrations/test_s3_v2.py:5924
↓ 5 callersFunction_batch_response
(batch_id, output_file_id=None, is_create=False)
tests/unit/enterprise/proxy/hooks/test_managed_files.py:5437
↓ 5 callersFunction_bearer
(request: Request)
tests/integration/compatibility/test_fine_tuning_jobs.py:104
↓ 5 callersFunction_bedrock
(handler: Callable[[httpx.Request], httpx.Response])
tests/unit/llms/bedrock/test_bedrock_model_listing.py:120
↓ 5 callersFunction_bedrock
(model: str)
tests/e2e/llm_translation/test_count_tokens_source_e2e.py:93
↓ 5 callersFunction_bedrock_deployment
(scenario: Scenario, wire: Wire, route: str = "converse")
tests/integration/providers/test_responses_bridge_message_cache_control_wire.py:174
↓ 5 callersFunction_bedrock_model
(scenario: Scenario, endpoint: BedrockEndpoint, api_base: str)
tests/integration/observability/test_bedrock_error_request_id.py:481
↓ 5 callersFunction_bedrock_model_supports
(model: str, key: str, custom_llm_provider: str = "bedrock")
litellm/llms/bedrock/common_utils.py:294
↓ 5 callersFunction_bedrock_native_output_opt_in
( model: str, custom_llm_provider: str, model_info: Mapping[str, object] | None )
litellm/llms/bedrock/common_utils.py:324
↓ 5 callersFunction_beta_headers
(value: str | None)
tests/integration/providers/test_vertex_anthropic_inline_tools_beta_wire.py:157
↓ 5 callersFunction_billed_end_user
(response: httpx.Response)
tests/integration/authorization/test_jwt_key_mapping_lifecycle.py:1045
↓ 5 callersFunction_bills_at_least
(expected: float)
tests/integration/mcp/test_mcp_llm_endpoints.py:1403
↓ 5 callersFunction_block_detail
(node: JsonValue)
tests/integration/observability/test_panw_airs_block_masked_response.py:160
↓ 5 callersFunction_block_every_request_with_a_guardrail
( monkeypatch: pytest.MonkeyPatch, event_hook: GuardrailEventHooks = GuardrailEventHooks.pre_call )
tests/unit/realtime_api/test_main.py:2103
↓ 5 callersFunction_block_types
(response: dict)
tests/unit/integrations/websearch_interception/test_websearch_agentic_loop_cap.py:99
↓ 5 callersFunction_blocked
(reason: str)
litellm/proxy/mcp_server/guardrail_translation/handler.py:55
↓ 5 callersMethod_blocked_call_details
(self)
tests/unit/integrations/test_rubrik.py:1839
← previousnext →13,901–14,000 of 202,479, ranked by callers