MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 3 callersFunction_canned_response
(case: _Case, text: str)
tests/unit/llms/base_llm/chat/test_provider_chat_translation.py:307
↓ 3 callersFunction_canonical_bytes
(value: object)
litellm/router_utils/prompt_caching_cache.py:69
↓ 3 callersFunction_canonicalize_scim_model_data
( value: Mapping[str, object], model_fields: Mapping[str, FieldInfo], )
litellm/proxy/management_endpoints/scim/scim_v2.py:2340
↓ 3 callersFunction_capture
( mode: Literal["sync", "async"], chunks: tuple[object, ...], error: Exception | None = None )
tests/rust-python-harness/shared/parity/test_stream.py:106
↓ 3 callersFunction_capture_completion_request
(model: str, **completion_kwargs)
tests/unit/llms/together_ai/chat/test_together_ai_chat_transformation.py:701
↓ 3 callersMethod_capture_in_event
(self)
litellm/integrations/opentelemetry.py:694
↓ 3 callersMethod_capture_list_subject_token
Run _get_tools_from_server and return the subject_token it threaded to _create_mcp_client.
tests/unit/proxy/mcp_server/test_mcp_server_manager.py:2391
↓ 3 callersFunction_capture_proxy_warnings
Run ``_warn_on_misplaced_jwt_keys`` and return (result, warning messages). Uses a dedicated handler rather than caplog because caplog is unreliab
tests/unit/proxy/proxy_server/test_proxy_config.py:3372
↓ 3 callersFunction_card_on_file_data
()
tests/unit/llms/bedrock/passthrough/guardrail_translation/test_handler.py:1969
↓ 3 callersFunction_card_rows_masked
(inputs: GenericGuardrailAPIInputs)
tests/unit/llms/bedrock/passthrough/guardrail_translation/test_handler.py:1978
↓ 3 callersFunction_carried
(endpoint: Endpoint, stream: bool, response: httpx.Response)
tests/integration/providers/test_gemini_long_decode_wire.py:1745
↓ 3 callersFunction_carried_spend
(spend: float | None, cap: float | None)
litellm/proxy/common_utils/reset_budget_job.py:158
↓ 3 callersMethod_cause_error
The error the ``cause`` of a ``retry_logged`` or ``retry_policy_raised`` event names.
litellm/router_rust/core.py:4571
↓ 3 callersFunction_chain
(first_id: str)
tests/integration/sdk/test_gemini_long_decode_sync_sdk.py:153
↓ 3 callersMethod_chain
()
tests/unit/proxy/policy_engine/test_policy_matcher.py:382
↓ 3 callersMethod_chain_for
(credential_type)
tests/unit/secret_managers/test_get_azure_ad_token_provider.py:31
↓ 3 callersFunction_chain_override_router
(*model_infos: dict)
tests/unit/router_strategy/test_router_tag_routing.py:1170
↓ 3 callersMethod_chain_to_hop_first
A retry's failure is raised while the hop's first failure is handled (the retry loop runs in its ``except`` block), so it chains to it.
litellm/router_rust/core.py:5097
↓ 3 callersFunction_change
(record: BaselineAccountingRecord, old: BaselinePublication | None, new: BaselinePublication)
litellm/proxy/db/baseline_accounting.py:344
↓ 3 callersFunction_change_group_membership
( gateway: Gateway, group_id: str, group_name: str, user_id: str, member_display: str,
tests/integration/management/test_scim_admin_group.py:253
↓ 3 callersFunction_changed_files_selected_by
(tmp_path: Path, pathspecs: tuple[str, ...], files: tuple[str, ...])
tests/unit/test_lint_workflow_diff_gates.py:210
↓ 3 callersFunction_changelog_page
(folder: str)
tests/unit/proxy/ui_crud_endpoints/test_latest_release_endpoints.py:55
↓ 3 callersFunction_channel_count
(value: object)
litellm/llms/deepgram/common_utils.py:118
↓ 3 callersFunction_chaos_config
(tmp_path: Path, identity: str, vendor_url: str, *, fail_open: bool = True)
tests/integration/observability/test_grayswan_wire_chaos.py:19
↓ 3 callersFunction_charge_request_cost
What the request charged, since a poll of a job an earlier poll charged still pays for its own guardrails.
litellm/proxy/hooks/proxy_track_cost_callback.py:1222
↓ 3 callersFunction_chat
(gateway: Gateway, model: str, marker: str)
tests/integration/providers/test_api_base_trailing_slash_owned_proxy.py:70
↓ 3 callersFunction_chat
(base_url: str, key: str, model: str, marker: str, seconds: float = 60)
tests/integration/providers/test_device_code_login_guard_boot.py:104
↓ 3 callersFunction_chat
(gateway: Gateway, model: str, marker: str, breakpoint: JsonValue)
tests/integration/providers/test_responses_bridge_prompt_cache_breakpoint_wire_chaos.py:216
↓ 3 callersFunction_chat
(gateway: Gateway, wire: Wire, scenario: Scenario, stream: bool, **extra: JsonValue)
tests/integration/providers/test_vertex_partner_labels_wire.py:71
↓ 3 callersFunction_chat
(isolated: Gateway, model: str)
tests/integration/providers/test_api_base_url_join_host_owned_proxy.py:111
↓ 3 callersFunction_chat
(gateway: Gateway, model: str, marker: str)
tests/integration/providers/test_api_base_trailing_slash_wire.py:80
↓ 3 callersFunction_chat
(rig: Rig, guardrail: str, text: str)
tests/integration/observability/test_wingback_guardrail.py:99
↓ 3 callersFunction_chat
(gateway: Gateway, group: _Group, text: str, max_tokens: int, spelling: str = "json")
tests/integration/authorization/test_access_group_budget.py:247
↓ 3 callersFunction_chat
(gateway: Gateway, model: str, key: str, end_user: str)
tests/integration/authorization/test_end_user_block.py:43
↓ 3 callersFunction_chat
(gateway: Gateway, body: Mapping[str, JsonValue])
tests/integration/streaming/test_fake_stream_reasoning_wire.py:269
↓ 3 callersFunction_chat
(gateway: Gateway, model: str, key: str, content: str | None = None)
tests/integration/spend/test_global_spend_reset.py:12
↓ 3 callersFunction_chat
(gateway: Gateway, model: str, key: str)
tests/integration/spend/test_team_budget_enforcement.py:23
↓ 3 callersFunction_chat
(gateway: Gateway, model: str, key: str, end_user: str, *, stream: bool = False)
tests/integration/spend/test_end_user_budget_enforcement.py:475
↓ 3 callersFunction_chat
(proxy: Gateway, model: str, key: str)
tests/integration/management/test_team_update_multi_instance.py:75
↓ 3 callersFunction_chat
(proxy: Gateway, model: str, key: str, text: str)
tests/integration/management/test_user_delete_revokes_keys.py:32
↓ 3 callersFunction_chat
( limiter: PROXY_VirtualKeyModelMaxBudgetLimiter, team_member_model_max_budget: Mapping[str, object] |
tests/unit/proxy/hooks/test_model_max_budget_limiter.py:104
↓ 3 callersFunction_chat
(proxy: ProxyClient, key: str, body: ChatBody)
tests/e2e/llm_translation/test_bedrock_converse_redacted_thinking_e2e.py:232
↓ 3 callersFunction_chat
(client: QuotaClient, key: str, model: str)
tests/e2e/quota_management/ratelimit/test_dynamic_rate_limit_priority_e2e.py:122
↓ 3 callersMethod_chat
( self, custom_llm_provider: str | None, api_base: str, model: str = MODEL )
tests/unit/integrations/test_anthropic_cache_control_hook.py:4141
↓ 3 callersFunction_chat_assert_completion
(client: AccessControlClient, key: str, model: str)
tests/e2e/access_control/test_project_all_team_models_e2e.py:35
↓ 3 callersFunction_chat_body
(model: str, marker: str, stream: bool = False)
tests/integration/providers/test_vertex_anthropic_inline_tools_beta_wire.py:149
↓ 3 callersFunction_chat_body
(model: str, stream: bool)
tests/integration/providers/test_bedrock_native_guardrail_trace_spend.py:300
↓ 3 callersFunction_chat_body
(model: str)
tests/integration/management/test_auto_router_databricks_classifier_writes.py:155
↓ 3 callersFunction_chat_body
(model: str, **extra: JsonValue)
tests/integration/routing/test_vllm_passthrough_stream_usage_settings.py:136
↓ 3 callersFunction_chat_body
(marker: str, **extra: JsonValue)
tests/integration/routing/test_azure_passthrough_spend_row.py:148
↓ 3 callersFunction_chat_body
( model: str, content: str, *, max_tokens: int | None = None, tags: list[str] | None = Non
tests/e2e/quota_management/spend_tracking/spend_e2e_client.py:243
↓ 3 callersFunction_chat_body
( model: str, content: str, *, stream: bool = False, reasoning_effort: str | None = None )
tests/e2e/quota_management/spend_tracking/test_cache_cost_accounting_e2e.py:95
↓ 3 callersFunction_chat_call_ids
(messages: Sequence[Mapping[str, JsonValue]])
tests/integration/providers/test_chat_completions_tool_search_history_wire.py:220
↓ 3 callersFunction_chat_choice
(index: int, delta: dict[str, JsonValue], finish: str | None = None)
tests/integration/observability/test_guardrail_effects.py:2183
↓ 3 callersFunction_chat_completions_call
(call_id: str, name: str, arguments_json: str)
tests/unit/router_strategy/test_stall_detector.py:19
↓ 3 callersFunction_chat_create
(client: openai.OpenAI, model: str, messages: Sequence[Mapping[str, JsonValue]], stream: bool)
tests/integration/providers/test_responses_minted_reasoning_replay_wire.py:643
↓ 3 callersFunction_chat_deployment
(gateway: Gateway, scenario: Scenario, wire: Wire)
tests/integration/spend/test_vertex_image_regional_uplift.py:118
↓ 3 callersFunction_chat_errors
(events: tuple[SseEvent, ...])
tests/integration/providers/test_hosted_vllm_stream_stall_wire.py:153
↓ 3 callersFunction_chat_history
(prompt: str)
tests/e2e/llm_translation/conversational_matrix.py:437
↓ 3 callersFunction_chat_httpx
(rig: _Rig, marker: str, stream: bool)
tests/integration/observability/test_langtrace_delivery.py:270
↓ 3 callersFunction_chat_invoke_request_with_tools
( tools: list[dict[str, object]], headers: dict[str, str] | None = None )
tests/unit/llms/bedrock/chat/invoke_transformations/test_bedrock_chat_invoke_transformations_anthropic_claude_transformation.py:1260
↓ 3 callersFunction_chat_messages
()
tests/integration/providers/test_custom_prompt_template_wire.py:121
↓ 3 callersFunction_chat_openai_stream_until_error
( gateway: Gateway, model: str, prompt: str, extra: Mapping[str, JsonValue] = MappingProxyType({}) )
tests/integration/providers/test_sagemaker_chat_wire.py:491
↓ 3 callersFunction_chat_path
(model: str, route: str)
tests/integration/routing/test_azure_passthrough_spend_row.py:140
↓ 3 callersFunction_chat_poller
(transport: Transport, key: str, model: str)
tests/e2e/management/test_key_lifecycle_e2e.py:96
↓ 3 callersFunction_chat_reply
(marker: str, stream: bool, abort_after: int | None = None, pause: float = 0)
tests/integration/providers/test_hosted_vllm_reasoning_content_chaos.py:114
↓ 3 callersFunction_chat_request
(text: str)
tests/unit/proxy/guardrails/guardrail_hooks/test_wingback.py:218
↓ 3 callersMethod_chat_request
(self, model: str, optional_params: dict)
tests/unit/llms/oci/chat/test_oci_chat_transformation.py:1025
↓ 3 callersFunction_chat_response_with_no_completion_tokens
()
tests/unit/router_strategy/test_lowest_cost.py:24
↓ 3 callersFunction_chat_rounds_router
()
tests/unit/responses/mcp/test_chat_completions_handler.py:2304
↓ 3 callersFunction_chat_stream
(identity: str, with_usage: bool)
tests/integration/routing/test_azure_passthrough_spend_row.py:41
↓ 3 callersFunction_chat_texts
(response: ModelResponse)
litellm/litellm_core_utils/served_output_texts.py:74
↓ 3 callersFunction_chat_turns
(session: Session)
tests/e2e/perf/setup/corpus/session.py:125
↓ 3 callersFunction_chat_usage_counts
(chunks: Sequence[Mapping[str, JsonValue]])
tests/integration/providers/test_anthropic_refusal_stop_details_wire.py:1059
↓ 3 callersMethod_check_and_reload_anthropic_beta_headers
Check if anthropic beta headers config needs to be reloaded based on database configuration. This function runs every 10 seconds as p
litellm/proxy/proxy_server.py:9479
↓ 3 callersMethod_check_blocked_words
Check text for blocked keywords. Args: text: Text to check Returns: Tuple of (keyword, action, desc
litellm/proxy/guardrails/guardrail_hooks/litellm_content_filter/content_filter.py:1304
↓ 3 callersMethod_check_decorators
(self, decs: list[ast.expr])
tests/_vcr_conftest_common.py:1271
↓ 3 callersMethod_check_finish_reason
( chat_completion_message: ChatCompletionResponseMessage | None, finish_reason: str | None,
litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py:2692
↓ 3 callersFunction_check_key_admin_access
Check that the caller has admin privileges for the target key. Allowed callers: - Proxy admin - Team admin for the key's team -
litellm/proxy/management_endpoints/key_management_endpoints.py:7978
↓ 3 callersFunction_check_key_project_team
( project_id: str, key_team_id: str | None, prisma_client: PrismaClient, )
litellm/proxy/management_endpoints/key_management_endpoints.py:2135
↓ 3 callersFunction_check_model_host_route_as
(valid_token: UserAPIKeyAuth, team_allowed_routes: list[str])
tests/unit/proxy/auth/test_route_checks.py:1470
↓ 3 callersFunction_check_size
(value: object, remaining: int, depth: int = 0)
litellm/tracing/exporter.py:49
↓ 3 callersMethod_check_streaming_has_ended
True once any relayed chunk carries a non-null ``finish_reason``. The unified guardrail's ``end_of_stream_only`` streaming path prob
litellm/llms/openai/chat/guardrail_translation/handler.py:1410
↓ 3 callersFunction_check_valid_ip
Returns if ip is allowed or not
litellm/proxy/auth/auth_utils.py:120
↓ 3 callersFunction_checkpoint_calls
(body, url) of every tracker call the guardrail made.
tests/unit/proxy/guardrails/guardrail_hooks/test_ovalix.py:661
↓ 3 callersFunction_child
( protocol: Literal["chat", "messages"] = "chat", forged: bool = False, parent_model: str | None = None )
tests/unit/proxy/test_native_compaction.py:34
↓ 3 callersFunction_chunk
(delta: Mapping[str, object], finish_reason: str | None)
tests/integration/sdk/test_router_tool_call_stream_fallback_budget_wire.py:38
↓ 3 callersFunction_chunks
()
tests/unit/proxy/pass_through_endpoints/test_streaming_handler.py:63
↓ 3 callersFunction_cited_metadata
(text: str, sources: Sequence[_Source], spelling: Spelling)
tests/integration/providers/test_gemini_long_decode_wire.py:1643
↓ 3 callersFunction_citing
(response_id: str, hop: Hop, metadata: Mapping[str, JsonValue], thought: str | None)
tests/integration/providers/test_gemini_long_decode_wire.py:1681
↓ 3 callersFunction_claimed_calls
(tool_calls: object)
litellm/litellm_core_utils/agentic_loop_refusal.py:22
↓ 3 callersFunction_classifier_router
(cost_per_token: float)
tests/unit/llms/anthropic/messages/test_caller_model_checks.py:346
↓ 3 callersFunction_classify_base64
(mime: object, encoded: object, label: str)
litellm/llms/bedrock/guardrail_attachments.py:339
↓ 3 callersFunction_classify_upstream_lifetime
Classify an upstream ``expires_in`` into a positive number of seconds, ``"unspecified"`` (absent or unparseable, so the envelope uses its fallback
litellm/proxy/mcp_server/bridge_token_flow.py:583
↓ 3 callersMethod_classify_with_heuristic_v2
(self, prompt: str)
litellm/router_strategy/complexity_router/complexity_router.py:2128
↓ 3 callersFunction_claude_code_auto_mode_request
Shapes are what Claude Code 2.1.278 sends and Bedrock Invoke / Vertex rawPredict return, captured 2026-09-21.
tests/unit/llms/anthropic/messages/native/test_anthropic_messages_handler.py:1951
↓ 3 callersFunction_claude_code_user_id
(session_id: str)
tests/unit/llms/anthropic/messages/adapters/test_anthropic_messages_adapters_transformation.py:1294
↓ 3 callersFunction_claude_count
( monkeypatch: pytest.MonkeyPatch, deployment_params: Mapping[str, JsonValue], responses_request:
tests/unit/proxy/test_proxy_token_counter.py:5076
↓ 3 callersFunction_claude_message
(marker: str)
tests/integration/providers/test_responses_bridge_tool_search_undeferred_wire.py:178
↓ 3 callersFunction_claude_on_converse
(scenario: Scenario, wire: Wire)
tests/integration/providers/test_bedrock_converse_redacted_thinking_wire.py:508
← previousnext →22,701–22,800 of 202,479, ranked by callers