MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 3 callersFunction_fail_one_proxy_shaped_request
The proxy hands the router a metadata dict and a proxy_server_request whose body is a shallow copy of the request, so body["metadata"] is the very
tests/unit/test_router/test_router.py:9895
↓ 3 callersFunction_failed
(phase: Literal["creation", "iteration"], error: Exception)
tests/rust-python-harness/shared/parity/stream.py:76
↓ 3 callersFunction_failed_requests_api_provider_labels
( request_data: dict[str, object], original_exception: Exception, )
tests/unit/integrations/test_prometheus_labels.py:870
↓ 3 callersFunction_failing_after_one_delta
()
tests/unit/llms/anthropic/messages/responses_adapters/test_responses_adapters_streaming_iterator.py:677
↓ 3 callersMethod_failure
(self, reason: str)
litellm/utils.py:2988
↓ 3 callersMethod_failure_call
The Rust call recording a logged failure, or None when it records nothing: one the Python router does not hold against the deployment is still
litellm/router_rust/surface/health.py:448
↓ 3 callersFunction_failure_callbacks_blocked_logging_object
(kwargs: Mapping[str, object])
litellm/router_utils/fallback_event_handlers.py:469
↓ 3 callersFunction_failure_hook_count_logging_obj
( call_type: str, recorder: _FailureHookRecorder, *, async_failure_listed: bool )
tests/unit/litellm_core_utils/test_litellm_logging.py:8959
↓ 3 callersMethod_failure_logged
(self, error: BaseException)
litellm/router_rust/invoke/streaming.py:194
↓ 3 callersFunction_failure_row
(gateway: Gateway, query: str, groups: tuple[str, ...])
tests/integration/providers/test_hosted_vllm_stream_stall_wire.py:161
↓ 3 callersFunction_failure_with_billed_attempts
()
tests/unit/proxy/hooks/test_proxy_track_cost_callback.py:2754
↓ 3 callersFunction_failures
(router: Router, model_id: str)
tests/unit/router_utils/test_health_check_allowed_fails_integration.py:30
↓ 3 callersFunction_fake_chatgpt_oauth_token
(account_id: str)
tests/unit/llms/chatgpt/responses/test_chatgpt_responses_transformation.py:429
↓ 3 callersFunction_fake_datalake_module
()
tests/unit/integrations/azure_storage/test_azure_storage.py:383
↓ 3 callersFunction_fake_idp
(subject: str)
tests/integration/authorization/test_cli_sso_login_ui_disabled.py:144
↓ 3 callersFunction_fake_pooler
(tmp_path: Path)
tests/unit/gateway/test_launch.py:55
↓ 3 callersFunction_fake_prisma_jwt_key_mapping_table
A ``find_first`` whose result depends on the ``where`` clause, like a real table. Matches a row when every key present in ``where`` equals that k
tests/unit/proxy/auth/test_user_api_key_auth_request_flow.py:12174
↓ 3 callersFunction_fake_server
(name: str = "my_server", server_id: str = "server-id-1")
tests/unit/proxy/test_dynamic_mcp_route.py:61
↓ 3 callersMethod_fallback
( self, reason: FallbackReason, messages: Sequence[Mapping[str, object]] | None )
litellm/router_strategy/switchyard_router/switchyard_router.py:111
↓ 3 callersFunction_fallback_after_a_failed_follow_up
( cache_hit: bool, request_params: Mapping[str, object] = MappingProxyType({}) )
tests/unit/proxy/spend_tracking/test_spend_tracking_utils.py:4600
↓ 3 callersFunction_fallback_models
(response: httpx.Response)
tests/integration/management/test_fallback_management_public_names.py:94
↓ 3 callersFunction_fallback_trigger
The error the fallback walk dispatches on: the provider's own for the kinds with a list of their own.
litellm/router_rust/invoke/streaming.py:548
↓ 3 callersFunction_family_deployment
(gateway: Gateway, scenario: Scenario, api_base: str, member: str)
tests/integration/providers/test_vertex_anthropic_structured_output_wire.py:836
↓ 3 callersMethod_fan_out
()
tests/unit/integrations/otel/test_otel_v2_destinations.py:5809
↓ 3 callersFunction_fee_body
(account_id: str, monthly_fee: float = _MONTHLY_FEE)
tests/integration/spend/test_chatgpt_subscription_usage.py:198
↓ 3 callersFunction_feed
(*folders: str)
tests/unit/proxy/ui_crud_endpoints/test_latest_release_endpoints.py:59
↓ 3 callersFunction_fetch_limits
(client, table_name)
tests/unit/proxy/common_utils/test_reset_budget_job.py:2324
↓ 3 callersFunction_fetch_page
( client: httpx.AsyncClient, path: str, adapter: TypeAdapter[tuple[_T, ...]], params: Mapping[
litellm/proxy/roi_calculator/github.py:272
↓ 3 callersMethod_fetch_unbilled
(self, target: _PollTarget)
enterprise/litellm_enterprise/proxy/common_utils/check_responses_cost.py:302
↓ 3 callersFunction_fetch_user_team_objects
Fetch team objects for all teams a user belongs to (single DB query).
litellm/proxy/management_endpoints/key_management_endpoints.py:7128
↓ 3 callersFunction_fetched
(described: str)
tests/integration/mcp/test_mcp_access_matrix.py:223
↓ 3 callersFunction_field_group
(rig: _Rig, groups: _FieldGroups, family: _Family)
tests/integration/providers/test_malformed_tools_wire.py:1268
↓ 3 callersFunction_field_values
(lines: Sequence[str], name: str)
litellm/proxy/common_utils/responses_stream_errors.py:261
↓ 3 callersFunction_fields
(value: object)
litellm/llms/base_llm/videos/async_task_utils.py:110
↓ 3 callersFunction_fields_with_cache_control
(fields: Mapping[str, object], rewrite: _CacheControlRewrite)
litellm/integrations/anthropic_cache_control_hook.py:181
↓ 3 callersFunction_file_block_source
(block: _EmbeddingFileBlock)
litellm/llms/vertex_ai/gemini_embeddings/batch_embed_content_transformation.py:228
↓ 3 callersFunction_file_content_page
(content: bytes)
tests/integration/management/test_vector_store_file_list_managed_ids.py:131
↓ 3 callersFunction_file_id_ingest
(gateway: Gateway, key: str, vector_store: Mapping[str, JsonValue])
tests/integration/authorization/test_rag_team_provider_credentials.py:1613
↓ 3 callersFunction_file_search
(store_ids: JsonValue)
tests/integration/providers/test_malformed_tools_wire.py:906
↓ 3 callersMethod_file_url
(self, file_id: str, litellm_params: Mapping[str, object], suffix: str = "")
litellm/llms/mistral/files/transformation.py:137
↓ 3 callersMethod_file_url
(self, file_id: str, litellm_params: Mapping[str, object], suffix: str = "")
litellm/llms/xai/files/transformation.py:108
↓ 3 callersFunction_filename
The client's name, else the URL's, with an extension from the media type when it has none.
litellm/proxy/guardrails/guardrail_hooks/akto/akto_attachments.py:341
↓ 3 callersMethod_fill_reasoning_content
DeepSeek thinking mode requires `reasoning_content` to be passed back on every assistant message in multi-turn conversations. If it i
litellm/llms/deepseek/chat/transformation.py:91
↓ 3 callersFunction_filter_logs_by_date_range
Filter logs by startTime gte/lte from where conditions.
tests/unit/proxy/spend_tracking/test_spend_management_endpoints.py:39
↓ 3 callersMethod_filter_metric_attributes
(self, attrs: Mapping[str, str | None])
litellm/integrations/opentelemetry.py:1709
↓ 3 callersMethod_filter_migration_job_owned_drift
The drift script without the indexes the migration job builds (the schema declares them, the migrations deliberately do not) and, when LiteLLM
litellm-proxy-extras/litellm_proxy_extras/utils.py:487
↓ 3 callersMethod_filter_params
(params: Mapping[str, object], model: type[object])
litellm/vector_store_files/utils.py:15
↓ 3 callersMethod_filter_result_items
Every filter result in a scan response. filterResults is a dict of named filters on most templates and a list on some, so both shapes
litellm/proxy/guardrails/guardrail_hooks/model_armor/model_armor.py:496
↓ 3 callersFunction_finalize_loaded_model_cost_map
(loaded: ModelCostMapReloaded)
litellm/litellm_core_utils/get_model_cost_map.py:670
↓ 3 callersMethod_finalize_presidio_anonymize_numbered_tokens
( self, text: str, analyze_results: Any, request_data: dict | None, ma
litellm/proxy/guardrails/guardrail_hooks/presidio.py:874
↓ 3 callersFunction_find_callback
(name)
tests/unit/proxy/guardrails/guardrail_hooks/_cisco_ai_defense_test_utils.py:247
↓ 3 callersFunction_find_endpoint_by_id
Find an endpoint by ID. Args: endpoints_data: List of endpoint data (dicts or PassThroughGenericEndpoint objects) endpoint_i
litellm/proxy/pass_through_endpoints/pass_through_endpoints.py:4902
↓ 3 callersFunction_find_memory_for_caller
Look up a memory row by key, scoped to the caller's visibility.
litellm/proxy/memory/memory_endpoints.py:388
↓ 3 callersFunction_fingerprint
(owned: OwnedValue)
litellm/proxy/client/cli/commands/claude_settings.py:427
↓ 3 callersMethod_finish
(self, op: str, call: Call, outcome: object)
tests/unit/test_router/core/scripted_host.py:404
↓ 3 callersMethod_finished_function_call
(sequence_number: int, item_id: str, city: str)
tests/unit/llms/openai/responses/test_openai_responses_guardrail_handler.py:5069
↓ 3 callersMethod_finished_task
(coro)
tests/unit/proxy/pass_through_endpoints/llm_provider_handlers/test_batch_attribution.py:126
↓ 3 callersFunction_fire
(owned_url: str, key: str, *, tolerate_transport_errors: bool = False)
tests/integration/providers/test_cache_control_tool_call_marks_owned_proxy.py:79
↓ 3 callersFunction_fire
(candidate: Gateway, model: str, marker: str, stream: bool)
tests/integration/observability/test_grayswan_wire_chaos.py:85
↓ 3 callersFunction_fire
(gateway: Gateway, models: Models, shot: Shot)
tests/integration/routing/test_reasoning_effort_levels_chaos.py:96
↓ 3 callersFunction_fire_times
The fire times APScheduler would produce, each computed from the one before it
tests/unit/proxy/common_utils/test_scheduled_job_stagger.py:71
↓ 3 callersFunction_first_choice
(payload: Mapping[str, JsonValue])
tests/integration/providers/test_chat_completions_tool_search_wire.py:351
↓ 3 callersFunction_first_message
(response: ModelResponse)
tests/unit/integrations/vector_store_integrations/test_vector_store_pre_call_hook.py:59
↓ 3 callersMethod_first_positive_prompt_tokens_detail_value
(cls, usage: Usage, field_names: tuple[str, ...])
litellm/llms/anthropic/messages/adapters/transformation.py:1669
↓ 3 callersFunction_first_sign_in
(table: _UserTable, **join: object)
tests/unit/proxy/management_endpoints/test_ui_sso.py:1533
↓ 3 callersFunction_fix_enum_types
Make `enum` fields acceptable to Gemini / Vertex. Gemini / Vertex APIs only accept string enum values. With `send_integer_enums`, an integer
litellm/llms/vertex_ai/common_utils.py:776
↓ 3 callersFunction_flag_model_as_no_sampling
(monkeypatch: pytest.MonkeyPatch, model: str)
tests/unit/llms/vertex_ai/files/test_vertex_ai_files_transformation.py:2420
↓ 3 callersFunction_flaky_chunk_router
Decisions call raises on inputs containing BOOM, flags prompt_injection on inputs containing marker.
tests/unit/proxy/guardrails/guardrail_hooks/test_decision_model.py:991
↓ 3 callersFunction_flat
(model: BaseModel)
tests/e2e/e2e_http.py:278
↓ 3 callersFunction_fleet
24 teams created through ``candidate``, each verified intact: row, key, both members' membership rows and ``teams`` entries present, so the invari
tests/integration/management/test_team_delete_chaos.py:199
↓ 3 callersFunction_fleet_config
(wire: Wire, tmp_path: Path)
tests/integration/providers/test_bedrock_converse_lookaround_regex_chaos.py:250
↓ 3 callersFunction_flow
()
tests/unit/integrations/otel/test_otel_v2_logger.py:1771
↓ 3 callersFunction_flow_cookie_name
(handle: str)
litellm/proxy/mcp_server/gateway_dcr_flow.py:587
↓ 3 callersFunction_flow_target
( user_id: str, server_id: str | None, lookup_server_reachability: LookupServerReachability )
litellm/proxy/mcp_server/gateway_dcr_flow.py:990
↓ 3 callersMethod_flush
One synthetic delta frame carrying whatever `index`'s window still holds.
litellm/proxy/guardrails/guardrail_hooks/llm_shield_proxy/stream_restorers.py:231
↓ 3 callersFunction_flush_and_record_service_events
( cache: FakeRedisCache, *results: Awaitable[object] )
tests/unit/caching/test_redis_batch.py:537
↓ 3 callersMethod_flush_data
Helper method to flush the data
litellm/integrations/azure_storage/azure_storage.py:288
↓ 3 callersMethod_flush_on_exit
Flush remaining events from internal log_queue before process exit. Called automatically via atexit handler. This works in c
litellm/integrations/posthog.py:420
↓ 3 callersFunction_forbidden
(detail: str)
litellm/proxy/management_helpers/bulk_user_deletion.py:147
↓ 3 callersFunction_force_load
Import + register a lazy feature exactly once per (app, module). Shared by the middleware and the /lazy/warm endpoint.
litellm/proxy/_lazy_features.py:482
↓ 3 callersFunction_foreign_refresh_token
(principal: SessionPrincipal)
tests/unit/proxy/anthropic_endpoints/test_gateway_endpoints.py:254
↓ 3 callersFunction_foreign_signatures
(body: Mapping[str, object], placeholder: str)
litellm/llms/vertex_ai/gemini/rejected_thought_signature_retry.py:40
↓ 3 callersFunction_form_fields
(request: Request)
tests/integration/routing/test_declared_provider_bare_model_routes.py:86
↓ 3 callersMethod_format_key_budget
Format the key budget to be displayed in the email
enterprise/litellm_enterprise/enterprise_callbacks/send_emails/base_email.py:829
↓ 3 callersFunction_format_pdf_links
(mode, messages)
tests/unit/litellm_core_utils/test_image_handling.py:791
↓ 3 callersMethod_format_violation_message
Format detection info into a user-friendly violation message. Args: detection_info: Can be either: - A s
litellm/proxy/guardrails/guardrail_hooks/grayswan/grayswan.py:737
↓ 3 callersFunction_forward_jsonrpc_sse
( agent_url: str, body: Mapping[str, object], request_id: str | int | None = None, extra_heade
litellm/proxy/agent_endpoints/a2a_endpoints.py:483
↓ 3 callersFunction_forwarded
(rig: Rig)
tests/integration/observability/test_presidio_overlapping_spans.py:206
↓ 3 callersFunction_forwarded_chat_turns
(wire: Wire)
tests/integration/messages_endpoint/test_tool_result_text_wire.py:732
↓ 3 callersFunction_forwarded_ingest
(rig: RagRig, vector_store: Mapping[str, JsonValue])
tests/integration/authorization/test_rag_team_provider_credentials.py:2252
↓ 3 callersFunction_forwarded_ip_call
(client: httpx.Client, key: str, forwarded: str, server_id: str)
tests/integration/mcp/test_mcp_access_matrix.py:616
↓ 3 callersFunction_forwarded_ip_headers
(key: str, forwarded: str)
tests/integration/mcp/test_mcp_access_matrix.py:602
↓ 3 callersFunction_forwarded_ip_listing
( client: httpx.Client, key: str, forwarded: str, server_id: str | None = None )
tests/integration/mcp/test_mcp_access_matrix.py:606
↓ 3 callersFunction_forwarded_ip_rig
(gateway: Gateway, tmp_path: Path, settings: Mapping[str, JsonValue])
tests/integration/mcp/test_mcp_access_matrix.py:553
↓ 3 callersFunction_forwarded_ip_rpc
( client: httpx.Client, key: str, forwarded: str, path: str, method: str, params: JsonRpc )
tests/integration/mcp/test_mcp_access_matrix.py:640
↓ 3 callersFunction_foundry_deployment
(rig: _Rig, scenario: Scenario, *, bare: bool)
tests/integration/providers/test_openai_dialect_prompt_cache_breakpoint_owned_proxy.py:135
↓ 3 callersFunction_fragment_count
(shape: str, marker_hex: str)
tests/integration/providers/test_vertex_anthropic_structured_output_wire.py:403
↓ 3 callersFunction_frame
(event_type: str, payload: Mapping[str, JsonValue])
tests/integration/providers/test_bedrock_kimi_k3_cache_point_wire.py:109
↓ 3 callersFunction_frame_counts
(frames: Iterator[dict[str, JsonValue]] | tuple[dict[str, JsonValue], ...])
tests/integration/providers/test_realtime_unguarded_voice_turns.py:416
↓ 3 callersFunction_frame_lane
(frame: Mapping[str, object])
litellm/proxy/pass_through_endpoints/pass_through_endpoints.py:2763
← previousnext →23,301–23,400 of 202,479, ranked by callers