MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 3 callersFunction_content_to_text
Convert OpenAI/Anthropic message content blocks to plain text. Text extraction policy: - Include text-bearing fields only (`text` blocks
litellm/compression/compress.py:69
↓ 3 callersFunction_contents
()
tests/integration/sdk/test_google_genai_adapter_stream_usage_sdk.py:115
↓ 3 callersFunction_context_fallback_precedence_router
(context_key: str | None, ordered: bool)
tests/unit/test_router/test_router_fallbacks.py:1212
↓ 3 callersFunction_context_window_stream_fallback_error
( error: "MidStreamFallbackError | litellm_exceptions.ContextWindowExceededError", model: object,
litellm/router_rust/invoke/streaming.py:525
↓ 3 callersFunction_continuing
(call: _Call, arguments: str)
tests/integration/messages_endpoint/chat_bridge/test_chat_bridge_multi_tool_call_blocks_wire.py:176
↓ 3 callersFunction_control_error
(response: httpx.Response)
tests/integration/authorization/test_unknown_key_generic_401.py:294
↓ 3 callersFunction_converge
( pollers: Mapping[str, Poller[Result[KeyInfoResponse]]], clock: FakeClock )
tests/e2e_harness/test_proxy_client.py:267
↓ 3 callersFunction_converse_document
(source: dict, **fields: str)
tests/unit/llms/bedrock/test_guardrail_attachments.py:567
↓ 3 callersFunction_converse_params
( model: str, model_info: Mapping[str, object] | None, non_default_params: Mapping[str, object] )
tests/unit/llms/bedrock/chat/test_converse_transformation.py:11663
↓ 3 callersFunction_converse_request_for_tools
( model: str, non_default_params: Mapping[str, object], drop_params: bool )
tests/unit/llms/bedrock/chat/test_converse_transformation.py:11939
↓ 3 callersMethod_converse_response
(self, text: str = "Model reply")
tests/unit/llms/bedrock/passthrough/guardrail_translation/test_handler.py:656
↓ 3 callersFunction_converse_stream_collector
()
tests/unit/llms/bedrock/passthrough/test_bedrock_passthrough_transformation.py:627
↓ 3 callersFunction_converse_stream_wrapper
(events, model=CONVERSE_MODEL)
tests/unit/llms/bedrock/chat/test_invoke_handler.py:383
↓ 3 callersFunction_converse_streaming_kwargs
()
tests/unit/llms/bedrock/chat/test_bedrock_converse_handler.py:293
↓ 3 callersFunction_converse_text_document
(source: Mapping[str, JsonValue])
tests/integration/observability/test_bedrock_guardrail_attachments.py:407
↓ 3 callersFunction_converse_tool_turn
(*result_parts: dict[str, object])
tests/unit/llms/bedrock/chat/test_converse_transformation.py:10434
↓ 3 callersFunction_converse_tools
()
tests/integration/providers/test_chat_completions_tool_search_wire.py:721
↓ 3 callersFunction_converse_tools
(model, tools, litellm_params=None)
tests/unit/llms/bedrock/chat/test_converse_transformation.py:1158
↓ 3 callersFunction_converse_with_a_strict_tools_limit_rejection_first
( asynchronous: bool, stream: Literal["off", "fake", "real"], drop_params: bool | None, tool:
tests/unit/test_main.py:11575
↓ 3 callersMethod_convert_cbf_to_api_format
Convert CBF row to CloudZero API format - keeping CBF field names as CloudZero expects them.
litellm/integrations/cloudzero/cz_stream_api.py:213
↓ 3 callersFunction_convert_image_to_vertex_format
Convert image file to Vertex AI format with base64 encoding and MIME type. Args: image_file: File-like object opened in binary mode
litellm/llms/vertex_ai/videos/transformation.py:108
↓ 3 callersMethod_convert_messages_to_prompt
Convert OpenAI messages format to Qwen3 prompt format Supports tool calls, multimodal content, and various message types
litellm/llms/bedrock/chat/invoke_transformations/amazon_qwen3_transformation.py:122
↓ 3 callersMethod_convert_tools_to_api_format
Convert OpenAI-format tools to Qualifire API format. Returns a list of dicts matching the API's ModelInvocationToolDefinition schema
litellm/proxy/guardrails/guardrail_hooks/qualifire/qualifire.py:213
↓ 3 callersFunction_converted_stream_replay
( response: object, *, kwargs: Mapping[str, object], depth: int, model: str, custom_ll
litellm/litellm_core_utils/chat_completion_agentic_loop.py:139
↓ 3 callersFunction_cooled
(core: RouterCore, *ids: str)
tests/unit/test_router/core/test_parity_rulings_2026_11.py:37
↓ 3 callersMethod_core_deployment_usable_by_team
(model: Mapping[str, object] | Deployment, team_id: str | None)
litellm/router_rust/surface/registry.py:1694
↓ 3 callersMethod_core_deployments_named
(self, model_name: str)
litellm/router_rust/surface/registry.py:1580
↓ 3 callersMethod_core_get_all_deployments
( self, model_name: str, model_alias: str | None = None, team_id: str | None = None )
litellm/router_rust/surface/registry.py:1731
↓ 3 callersMethod_core_get_model_group_usage
Current (tpm, rpm) usage of ``model_group``.
litellm/router_rust/surface/model_info.py:813
↓ 3 callersMethod_core_get_remaining_model_group_usage
( self, model_group: str )
litellm/router_rust/surface/model_info.py:870
↓ 3 callersFunction_corpus
(tmp_path: Path, count: int)
tests/unit/test_check_type_discipline.py:1008
↓ 3 callersFunction_corpus
(tmp_path: Path, count: int)
tests/unit/test_check_test_quality.py:564
↓ 3 callersMethod_correlation_id
The id that joins a blocked request's two S3 logs by filename: the moderation (``_blocking``) log and the failure (response) log. Alw
litellm/integrations/rubrik.py:705
↓ 3 callersFunction_corrupt_signature
(token: str)
tests/unit/proxy/mcp_server/outbound_credentials/test_session_token.py:70
↓ 3 callersFunction_cost_map_entry
(model: str)
litellm/litellm_core_utils/token_counter.py:861
↓ 3 callersFunction_count
(schema: str, condition: sql.Composable)
tests/integration/database/test_chunked_in_lists.py:96
↓ 3 callersFunction_count
(samples: tuple, name: str, model_id: str)
tests/integration/observability/test_cache_hit_guardrail_metrics.py:250
↓ 3 callersMethod_count
(self)
litellm/router_rust/steps/precall.py:345
↓ 3 callersFunction_count_and_bill
(client: Anthropic, model: str, shape: PromptShape)
tests/e2e/llm_translation/test_count_tokens_source_e2e.py:178
↓ 3 callersMethod_count_attempts
(self, *, global_num_retries, request_num_retries)
tests/unit/test_router_per_deployment_num_retries.py:404
↓ 3 callersFunction_count_error
(model_to_use: str, request_model: str, message: str, status_code: int)
litellm/llms/openai/responses/count_tokens/token_counter.py:91
↓ 3 callersMethod_count_flag_reads
(records)
tests/unit/proxy/management_endpoints/test_common_daily_activity.py:2454
↓ 3 callersFunction_count_locally
(cache: DualCache, key: str, delta: int)
litellm/router_strategy/least_busy.py:269
↓ 3 callersFunction_count_model_entries
Count actual model entries, excluding reserved meta keys.
litellm/litellm_core_utils/get_model_cost_map.py:60
↓ 3 callersFunction_count_model_source
(model: str)
tests/integration/providers/test_bedrock_mantle_count_tokens_wire.py:82
↓ 3 callersFunction_count_on_a_model_without_a_count_api
( monkeypatch: pytest.MonkeyPatch, body: Mapping[str, object], router_defaults: dict[str, JsonValue] | Non
tests/unit/proxy/test_proxy_token_counter.py:1576
↓ 3 callersFunction_count_on_claude
( monkeypatch: pytest.MonkeyPatch, peer: Callable[[httpx.Request], httpx.Response], headers: Mappi
tests/unit/proxy/anthropic_endpoints/test_endpoints.py:1150
↓ 3 callersMethod_count_remaining
Count expired rows still outstanding, stopping at a cap. An uncapped COUNT(*) over an expired backlog would itself be the kind of
litellm/proxy/db/db_transaction_queue/spend_log_cleanup.py:784
↓ 3 callersFunction_count_requests
(requests: tuple[Request, ...])
tests/integration/sdk/test_vertex_partner_count_tokens_sdk.py:43
↓ 3 callersFunction_count_text_tokens
(model: str, text: str, count_response_tokens: bool = False)
litellm/llms/openai_like/passthrough/transformation.py:31
↓ 3 callersFunction_count_tokens
( model: str, messages: Sequence[Mapping[str, object]], tools: Sequence[Mapping[str, object]] | None )
litellm/llms/anthropic/messages/context_management/editors/clear_tool_uses.py:242
↓ 3 callersFunction_count_tool_result_turns
( monkeypatch: pytest.MonkeyPatch, text_block: Mapping[str, object], litellm_params: dict[str, object] )
tests/unit/llms/openai/responses/count_tokens/test_token_counter.py:429
↓ 3 callersFunction_counted
(_request: Request)
tests/integration/providers/test_vertex_partner_count_tokens_wire.py:133
↓ 3 callersFunction_counted
(tokens: int)
tests/integration/providers/test_count_tokens_error_shapes_wire.py:284
↓ 3 callersFunction_counted
(verdict: MasterKeyBootVerdict, count: int | None)
tests/unit/proxy/auth/test_master_key_boot_check.py:174
↓ 3 callersFunction_counted_model
(request: Request)
tests/integration/providers/test_count_tokens_model_wire.py:144
↓ 3 callersFunction_counted_on
(client: httpx.Client, key: str, body: Mapping[str, JsonValue])
tests/integration/providers/test_vertex_partner_count_tokens_wire.py:328
↓ 3 callersFunction_counter_values
(counters: SpendCounterStore)
tests/unit/proxy/hooks/test_proxy_track_cost_callback.py:2800
↓ 3 callersFunction_create
(guarded: _Guarded, name: str, model_info: Mapping[str, JsonValue])
tests/integration/management/test_ptu_share_guards.py:185
↓ 3 callersFunction_create
(rig: Rig)
tests/integration/compatibility/test_fine_tuning_managed_files_chaos.py:182
↓ 3 callersMethod_create_agent_with_protocol_version
(self, protocol_version: str)
tests/unit/proxy/agent_endpoints/test_endpoints.py:859
↓ 3 callersMethod_create_batch_rate_limit_descriptors
Build the standard key/user/team/model descriptor list a batch is charged against. Deliberately excludes the project-scoped ITPM/OTPM descrip
litellm/proxy/hooks/batch_rate_limiter.py:260
↓ 3 callersMethod_create_callback_task
(self, task: LoggingTask)
litellm/litellm_core_utils/logging_worker.py:130
↓ 3 callersMethod_create_cost
(model: str, image_count: int, router_model_id: str | None = None)
tests/unit/llms/minimax/videos/test_minimax_video_transformation.py:1220
↓ 3 callersFunction_create_customer
( client: ManagementClient, resources: ResourceManager, route: str, body: CustomerNewBody )
tests/e2e/management/test_budget_customer_user_org_e2e.py:466
↓ 3 callersFunction_create_db_model
(client: ManagementClient, resources: ResourceManager, model_name: str)
tests/e2e/management/test_model_tag_accessgroup_e2e.py:168
↓ 3 callersMethod_create_during_hook_task
Create and return a during hook task for MCP tool calls. ``litellm_logging_obj`` is the request's logger; see ``pre_call_tool_check``.
litellm/proxy/mcp_server/mcp_server_manager.py:6351
↓ 3 callersMethod_create_empty_search_result
Create an empty search result for tool calls without queries
litellm/integrations/websearch_interception/handler.py:1983
↓ 3 callersMethod_create_error_message
Create a detailed error message from processed guardrail results. Args: processed_result: Processed response with detect
litellm/proxy/guardrails/guardrail_hooks/dynamoai/dynamoai.py:255
↓ 3 callersMethod_create_error_message_detector_server
Create a detailed error message from detector server response. Args: detections_list: List of lists of detections
litellm/proxy/guardrails/guardrail_hooks/ibm_guardrails/ibm_detector.py:357
↓ 3 callersMethod_create_error_message_orchestrator
Create a detailed error message from orchestrator response. Args: detections: List of detections Returns:
litellm/proxy/guardrails/guardrail_hooks/ibm_guardrails/ibm_detector.py:388
↓ 3 callersMethod_create_file
Helper method to create the file resource
litellm/integrations/azure_storage/azure_storage.py:252
↓ 3 callersMethod_create_final_chunk
Create a final ModelResponseStream chunk with finish_reason.
litellm/llms/langgraph/chat/sse_iterator.py:161
↓ 3 callersFunction_create_guardrail
( gateway: Gateway, cleanups: ExitStack, name: str, params: dict[str, JsonValue], )
tests/integration/observability/test_apply_guardrail_endpoint.py:61
↓ 3 callersMethod_create_initial_response_iterator
Create the initial response iterator by making the first LLM call
litellm/responses/mcp/mcp_streaming_iterator.py:795
↓ 3 callersFunction_create_interaction
( proxy: ProxyClient, key: str, request: InteractionRequest, )
tests/e2e/llm_translation/test_google_interactions_e2e.py:84
↓ 3 callersMethod_create_json_tool_call_for_response_format
Handles creating a tool call for getting responses in JSON format. Args: json_schema (Optional[dict]): The JSON schema t
litellm/llms/anthropic/chat/transformation.py:2188
↓ 3 callersMethod_create_langfuse_logger_from_credentials
This function is used to 1. create a LangFuseLogger from the credentials 2. cache the LangFuseLogger to prevent re-creating i
litellm/integrations/langfuse/langfuse_handler.py:98
↓ 3 callersMethod_create_mock_logging_obj
Create a mock logging object with optional model in model_call_details
tests/unit/proxy/pass_through_endpoints/llm_provider_handlers/test_anthropic_passthrough_logging_handler.py:148
↓ 3 callersMethod_create_posthog_payload
(self, events: Sequence[PostHogEventPayload], api_key: str)
litellm/integrations/posthog.py:412
↓ 3 callersFunction_create_prometheus_logger_with_custom_labels
(monkeypatch: pytest.MonkeyPatch)
tests/unit/integrations/test_prometheus_custom_metadata_label_counts.py:17
↓ 3 callersFunction_create_published_version
( gateway: Gateway, cleanups: ExitStack, policy_name: str, source_policy_id: str, guardrai
tests/integration/management/test_policy_attachment_runtime.py:137
↓ 3 callersFunction_create_smtp_connection
(smtp_host: str, smtp_port: int, timeout: float)
litellm/proxy/utils.py:8372
↓ 3 callersFunction_create_stored_rail
( gateway: Gateway, name: str, sink_url: str, stream_scope: Literal["streaming"] | None = "str
tests/integration/observability/test_guardrail_stream_scope_chaos.py:668
↓ 3 callersMethod_create_stream_wrapper
Helper to create OCIStreamWrapper with required parameters
tests/unit/llms/oci/chat/test_oci_cohere_tool_calls.py:959
↓ 3 callersFunction_create_team
(proxy: Gateway, team_id: str)
tests/integration/routing/test_ptu_shares.py:247
↓ 3 callersMethod_create_tool_call_chunk
Create a ChatCompletionToolCallChunk from tool_use_definition.
litellm/responses/litellm_completion_transformation/transformation.py:2135
↓ 3 callersFunction_create_valid_token
Create a UserAPIKeyAuth with team_id and user_id set.
tests/unit/proxy/auth/test_auth_hot_path_network_requests.py:92
↓ 3 callersMethod_create_vertex_response_logging_payload_for_generate_content
Create the standard logging object for Vertex passthrough generateContent (streaming and non-streaming)
litellm/proxy/pass_through_endpoints/llm_provider_handlers/vertex_passthrough_logging_handler.py:818
↓ 3 callersFunction_created_chunk
(response_id: str)
tests/unit/responses/mcp/test_mcp_streaming_iterator.py:50
↓ 3 callersFunction_creator_user_id
(created_by: str | None)
enterprise/litellm_enterprise/proxy/common_utils/managed_object_attribution.py:86
↓ 3 callersFunction_credential
(name: str, api_key: str, api_base: str)
tests/integration/security/test_api_key_secret_reference.py:244
↓ 3 callersFunction_credential
(name: str, api_key: str)
tests/unit/proxy/pass_through_endpoints/test_passthrough_endpoint_router.py:29
↓ 3 callersMethod_credentials_from_identity_pool
(self, json_obj, scopes)
litellm/llms/vertex_ai/vertex_llm_base.py:254
↓ 3 callersMethod_credentials_from_pluggable
(self, json_obj, scopes)
litellm/llms/vertex_ai/vertex_llm_base.py:265
↓ 3 callersFunction_cue_start
(ws: Sequence[_Word])
litellm/litellm_core_utils/audio_utils/subtitle_utils.py:111
↓ 3 callersMethod_current
(self, where: Mapping[str, object])
tests/unit/proxy/common_utils/test_check_responses_cost.py:108
↓ 3 callersFunction_current_coordination_redis_settings
The coordination_redis block the proxy would boot with. The persisted row wins over the yaml-loaded config state because startup applies the
litellm/proxy/management_endpoints/coordination_redis_endpoints.py:188
↓ 3 callersMethod_current_user_item_id
Item id shared by all events of one user utterance (speech boundaries and transcript).
litellm/llms/bedrock/realtime/transformation.py:1059
↓ 3 callersFunction_curry1
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
← previousnext →22,901–23,000 of 202,479, ranked by callers