MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 3 callersFunction_invalid
(detail: str)
litellm/proxy/list_api/list_framework.py:303
↓ 3 callersFunction_invalid_choices_message
(response_object: Mapping[str, object])
litellm/litellm_core_utils/llm_response_utils/convert_dict_to_response.py:288
↓ 3 callersFunction_invalid_model_identifier_reply
(sent: list[httpx.Request])
tests/unit/llms/bedrock/chat/test_converse_transformation.py:9588
↓ 3 callersFunction_invalid_param
(param: str, value: object, expected: str, model: str)
litellm/llms/minimax/videos/transformation.py:230
↓ 3 callersFunction_invalidate_budget_reservation_counters
( budget_reservation: dict | None, )
litellm/proxy/hooks/proxy_track_cost_callback.py:1465
↓ 3 callersFunction_invalidate_byok_cred_cache
Drop a stored-or-deleted BYOK credential from this worker's cache and from every peer worker's.
litellm/proxy/mcp_server/operations.py:230
↓ 3 callersMethod_invalidate_caches
Batch twin of ``_invalidate_spend_counter`` and ``_invalidate_user_api_key_cache_entry``, after the commit like both: one round trip p
litellm/proxy/common_utils/reset_budget_job.py:665
↓ 3 callersFunction_invoke
(core: RouterCore, endpoint: str)
tests/unit/test_router/core/test_endpoints.py:63
↓ 3 callersMethod_invoke
(self, data: dict[str, object])
tests/unit/proxy/test_common_request_processing.py:12541
↓ 3 callersFunction_invoke_body
(marker: str)
tests/integration/providers/test_bedrock_passthrough_request_metadata_wire.py:67
↓ 3 callersFunction_invoke_body_betas
(request: Request)
tests/integration/providers/test_bedrock_invoke_dangerous_tool_use_beta_wire.py:43
↓ 3 callersFunction_invoke_chat_params
( model: str, model_info: Mapping[str, object] | None, non_default_params: Mapping[str, object] )
tests/unit/llms/bedrock/chat/invoke_transformations/test_bedrock_chat_invoke_transformations_anthropic_claude_transformation.py:2037
↓ 3 callersFunction_invoke_chunk
(payload: dict[str, JsonValue])
tests/integration/spend/test_disconnected_bedrock_messages_stream_billing.py:21
↓ 3 callersFunction_invoke_connector_factory
Drive the lambda factory installed on the transport so TCPConnector is actually constructed. create_aiohttp_transport returns a transport who
tests/unit/llms/custom_httpx/test_aiohttp_so_keepalive.py:8
↓ 3 callersFunction_invoke_rejected
( monkeypatch: pytest.MonkeyPatch, *, registered: bool, proxy_logging_obj: object, request
tests/unit/proxy/agent_endpoints/test_a2a_endpoints.py:3151
↓ 3 callersFunction_invoke_request_with_tools
( tools: list[dict[str, object]], headers: dict[str, str] | None = None )
tests/unit/llms/bedrock/messages/invoke_transformations/test_anthropic_claude_transformation.py:3586
↓ 3 callersFunction_is_a_response_read
(spend_log: "SpendLogsPayload")
litellm/responses/litellm_completion_transformation/session_handler.py:97
↓ 3 callersMethod_is_async_callable
Check if a callback is async. Used to auto-route callbacks to the correct list.
litellm/litellm_core_utils/logging_callback_manager.py:39
↓ 3 callersMethod_is_audio_only_live_model
(model: str)
litellm/llms/gemini/realtime/transformation.py:544
↓ 3 callersMethod_is_authoritative_no_pods
(error: socket.gaierror)
litellm/router_utils/kubernetes_pod_discovery.py:396
↓ 3 callersMethod_is_batch_gone_at_provider
A 404 naming the batch means the provider dropped its record of it, so no later retrieve can ever succeed. A 404 about anything else,
enterprise/litellm_enterprise/proxy/common_utils/check_batch_cost.py:384
↓ 3 callersFunction_is_bedrock_agent_runtime_route
Return True, if the endpoint should be routed to the `bedrock-agent-runtime` endpoint.
litellm/proxy/pass_through_endpoints/llm_passthrough_endpoints.py:2202
↓ 3 callersMethod_is_call_type_supported_by_cache
Helper function to determine if the call type is supported by the cache. call types are acompletion, aembedding, atext_completion, a
litellm/caching/caching_handler.py:1353
↓ 3 callersMethod_is_caller_admission_key
(value: str | None, admitted_credential: str | None)
litellm/proxy/mcp_server/auth/user_api_key_auth_mcp.py:942
↓ 3 callersFunction_is_chat_inference_translated_tool
(tool: Mapping[str, object])
litellm/llms/anthropic/count_tokens/transformation.py:202
↓ 3 callersFunction_is_claude
(model: str)
litellm/llms/bedrock/common_utils.py:1616
↓ 3 callersFunction_is_cli_session_key
(api_key: str)
litellm/proxy/spend_tracking/key_metadata_recovery.py:297
↓ 3 callersMethod_is_combined
True if ``chunk`` carries response content AND a finish_reason.
litellm/llms/anthropic/messages/adapters/streaming_iterator.py:293
↓ 3 callersFunction_is_credential_exchange_request
(request)
tests/_vcr_conftest_common.py:456
↓ 3 callersFunction_is_dashboard_session
(valid_token: UserAPIKeyAuth | None)
litellm/proxy/auth/auth_checks.py:6497
↓ 3 callersFunction_is_data_url
(s: str)
litellm/llms/vertex_ai/gemini_embeddings/batch_embed_content_transformation.py:140
↓ 3 callersFunction_is_decisions_model
(model: str, custom_llm_provider: str)
litellm/llms/base_llm/decisions/transformation.py:515
↓ 3 callersMethod_is_deepseek_model
(self, model: str, base_model: str)
litellm/llms/bedrock/chat/converse_transformation.py:654
↓ 3 callersFunction_is_done
(events: tuple[Event, ...])
tests/integration/providers/test_bedrock_nova_sonic_realtime_tool_calls.py:255
↓ 3 callersFunction_is_event_stream
(response: httpx.Response)
tests/integration/observability/test_signoz_delivery.py:795
↓ 3 callersMethod_is_expired
(self, token: OAuthToken)
litellm/proxy/mcp_server/outbound_credentials/oauth_token_store.py:274
↓ 3 callersMethod_is_expired
(self, auth_data: XAIOAuthRecord)
litellm/llms/xai/oauth.py:256
↓ 3 callersFunction_is_fallback_target_within_budget
( ctx: "RoutingContext", fallback_entry: str | Mapping[str, object], original_model_group: str,
litellm/router_utils/fallback_event_handlers.py:734
↓ 3 callersFunction_is_forwardable
(key: str, value: str)
litellm/llms/bedrock/request_metadata.py:49
↓ 3 callersFunction_is_ga_protocol
(protocol: str | None)
litellm/llms/azure/realtime/handler.py:67
↓ 3 callersFunction_is_gated
(spec: "ExporterSpec")
litellm/litellm_core_utils/litellm_logging.py:6548
↓ 3 callersMethod_is_gateway_admission_credential
True when a header value is a gateway admission credential — a session bearer or bridge envelope. It proves who signed in to the GATEWAY, neve
litellm/proxy/mcp_server/auth/user_api_key_auth_mcp.py:935
↓ 3 callersFunction_is_global_env_var_scope
``scope="user"`` entries are placeholders the user fills in; everything else (including a missing scope) is an admin-supplied global value.
litellm/proxy/mcp_server/db.py:265
↓ 3 callersFunction_is_gone
(process: psutil.Process)
tests/integration/_support/process.py:187
↓ 3 callersFunction_is_image_fetch
(request: Request)
tests/integration/providers/test_cloudflare_clef_images_chaos.py:82
↓ 3 callersMethod_is_input_item_function_call
Check if the input item is a function call or custom tool call. Both need to be reconstructed as assistant tool_calls for Chat
litellm/responses/litellm_completion_transformation/transformation.py:2587
↓ 3 callersMethod_is_input_item_tool_call_output
Check if the input item is a tool call output
litellm/responses/litellm_completion_transformation/transformation.py:2580
↓ 3 callersFunction_is_json_array
(value: object)
litellm/litellm_core_utils/prompt_templates/tpm_media_utils.py:217
↓ 3 callersFunction_is_listed_non_chat_model
(model: str)
litellm/litellm_core_utils/token_counter.py:1267
↓ 3 callersFunction_is_litellm_auth_admission_error
(exc: Exception)
litellm/proxy/mcp_server/auth/user_api_key_auth_mcp.py:372
↓ 3 callersFunction_is_litellm_router_call
Router completion uses metadata. Async generic calls retry with litellm_metadata; sync generic calls need SDK retries.
litellm/utils.py:2051
↓ 3 callersFunction_is_live_call_host
(host: str)
tests/_vcr_conftest_common.py:1656
↓ 3 callersMethod_is_logging_only_scan
(self)
litellm/proxy/guardrails/guardrail_hooks/litellm_content_filter/content_filter.py:1340
↓ 3 callersFunction_is_mock_url
(url)
litellm/integrations/mock_client_factory.py:128
↓ 3 callersFunction_is_multimodal_element
Check if a single element is multimodal.
litellm/llms/vertex_ai/gemini_embeddings/batch_embed_content_transformation.py:340
↓ 3 callersFunction_is_non_secret_key_value
(value: str, *, key_alias: object = None)
litellm/proxy/spend_tracking/spend_tracking_utils.py:165
↓ 3 callersFunction_is_none_string
(node: ast.expr | None)
tests/code_coverage_tests/check_no_none_string_error_fields.py:14
↓ 3 callersFunction_is_openai_chat_model
(model: str)
litellm/litellm_core_utils/token_counter.py:841
↓ 3 callersMethod_is_openai_gpt_reasoning_model
(model: str)
litellm/llms/bedrock/chat/converse_transformation.py:428
↓ 3 callersMethod_is_openai_style_model
OpenAI image models routed through AI/ML API (e.g. ``openai/gpt-image-2``) use the upstream OpenAI request schema, not the flux-style
litellm/llms/aiml/image_generation/transformation.py:40
↓ 3 callersFunction_is_per_user_provider_request
(request_kwargs: Mapping[str, object])
litellm/router_utils/cooldown_handlers.py:325
↓ 3 callersFunction_is_probe
(request: Request)
tests/integration/routing/test_deployment_mode_routing_wire.py:129
↓ 3 callersFunction_is_proxy_admin
(user_api_key_dict: UserAPIKeyAuth)
litellm/proxy/vector_store_endpoints/utils.py:42
↓ 3 callersFunction_is_redundant_scan
(scan_key: "StreamingScanKey | None", last_scan_key: "StreamingScanKey | None")
litellm/proxy/guardrails/guardrail_hooks/unified_guardrail/unified_guardrail.py:173
↓ 3 callersFunction_is_rejection
(served: _Served, message: str)
tests/integration/providers/test_bedrock_converse_stream_event_frames_wire.py:736
↓ 3 callersMethod_is_respx_mock_attr
(self, node: ast.expr)
tests/_vcr_conftest_common.py:1301
↓ 3 callersMethod_is_same_authority_metadata_url
Whether ``url`` shares scheme, host, and port with ``server_url``. Same-authority metadata URLs are produced by our well-known disco
litellm/proxy/mcp_server/mcp_server_manager.py:5137
↓ 3 callersFunction_is_session_committed
(scope: Mapping[str, object])
litellm/llms/bedrock/realtime/handler.py:213
↓ 3 callersFunction_is_session_header_trace
(trace_id: object, session_id: object, proxy_server_request: object)
litellm/integrations/langfuse/langfuse.py:74
↓ 3 callersFunction_is_strategy_router_deployment
True for strategy-router deployments.
litellm/proxy/health_check.py:388
↓ 3 callersMethod_is_supported_openai_endpoint
(self, url_route: str)
litellm/proxy/pass_through_endpoints/success_handler.py:709
↓ 3 callersFunction_is_system
(message: Mapping[str, object])
litellm/llms/databricks/chat/transformation.py:149
↓ 3 callersFunction_is_terminal
True only for object-specific, unrecoverable rejections (400/403 with a terminal XML code). Unknown codes, empty or non-XML bodies, and every othe
litellm/integrations/s3_v2.py:108
↓ 3 callersFunction_is_tool_search_call
(tool_call: object)
litellm/responses/litellm_completion_transformation/tool_search.py:283
↓ 3 callersFunction_is_unified_responses_url
(api_base: str)
litellm/llms/databricks/agent/transformation.py:67
↓ 3 callersFunction_is_utf8_text
(content: bytes)
litellm/proxy/rag_endpoints/upload_security.py:170
↓ 3 callersMethod_is_valid_response_type
Check if result is a valid LLMResponseTypes instance. Safely handles TypedDict types which don't support isinstance checks.
litellm/integrations/custom_guardrail.py:941
↓ 3 callersFunction_isolated_deployments
(upstream_url: str)
tests/integration/providers/test_voyage_mongodb_host_wire.py:76
↓ 3 callersFunction_issuer_signing_key
()
tests/unit/llms/anthropic/test_anthropic_wif.py:913
↓ 3 callersFunction_item
(value: JsonValue, index: int)
tests/integration/observability/test_callback_delivery.py:417
↓ 3 callersFunction_item_of
(event: Mapping[str, JsonValue])
tests/integration/providers/test_responses_bridge_tool_search_wire.py:434
↓ 3 callersFunction_items
(marker: str, mark: JsonValue = EPHEMERAL)
tests/integration/providers/test_responses_bridge_item_marks_guardrail_wire.py:129
↓ 3 callersFunction_iter_header_values
(headers, name: str)
tests/_vcr_conftest_common.py:734
↓ 3 callersFunction_iter_messages
(plan)
tests/unit/integrations/code_interpreter_interception/test_handler.py:106
↓ 3 callersFunction_iter_text_parts_in_content
Yield text fragments from a ``message.content`` value (string or multimodal list). Non-text parts (images, audio, …) are skipped.
litellm/proxy/guardrails/_content_utils.py:251
↓ 3 callersFunction_iter_upstream_responses
Yield every upstream ``httpx``/``httpx2`` ``Response`` in the exception tree, in the shared traversal's deliberate order (explicit causes first, E
litellm/proxy/mcp_server/faults/list_outcomes.py:96
↓ 3 callersMethod_job
(self, input_file_id: str)
tests/unit/proxy/common_utils/test_check_batch_cost.py:2280
↓ 3 callersFunction_job_env
(tmp_path: Path, upstream: _Upstream)
tests/unit/test_circleci_checkout.py:180
↓ 3 callersFunction_job_with_expired_budget
A job with one due tier and a linked tag, so cache invalidation has something to invalidate and its absence is a real signal.
tests/unit/proxy/common_utils/test_reset_budget_job.py:2036
↓ 3 callersFunction_jobs
(tier: _Tier)
tests/code_coverage_tests/test_unit_passed_gate.py:19
↓ 3 callersFunction_join_url_paths
Properly joins a base URL with a path, preserving any existing path in the base URL.
litellm/proxy/pass_through_endpoints/llm_passthrough_endpoints.py:3419
↓ 3 callersFunction_joined_content
(chunks: tuple[ModelResponseStream, ...])
tests/unit/llms/anthropic/chat/test_anthropic_chat_handler.py:3390
↓ 3 callersFunction_json
Serialize a Python value for prisma-client-py Json fields (must be a string).
litellm/proxy/management_endpoints/workflow_management_endpoints.py:46
↓ 3 callersFunction_json
(response: httpx.Response)
tests/integration/security/test_files_batches_access.py:106
↓ 3 callersFunction_json
(value: object)
tests/integration/observability/test_guardrail_stream_scope_chaos.py:40
↓ 3 callersFunction_json
(request: Request)
tests/integration/messages_endpoint/test_tool_result_text_wire.py:178
↓ 3 callersFunction_json
(body: Mapping[str, JsonValue])
tests/integration/sdk/test_openai_sdk_client_sessions_wire.py:46
↓ 3 callersFunction_json
( payload: Mapping[str, JsonValue], *, status: int = 200, headers: Mapping[str, str] = MappingProxyType({}
tests/integration/compatibility/test_openai_sdk_client_paths.py:104
↓ 3 callersFunction_json_array_or_empty
Narrow a JSON payload entry that the caller iterates, tolerating a missing or malformed value.
litellm/responses/streaming_iterator.py:134
↓ 3 callersFunction_json_body
(response: httpx.Response)
litellm/llms/microsoft_365_copilot/chat/handler.py:269
← previousnext →23,701–23,800 of 202,479, ranked by callers