Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BerriAI/litellm
/ functions
Functions
202,479 in github.com/BerriAI/litellm
⨍
Functions
202,479
◇
Types & classes
26,341
↳
Endpoints
5,595
↓ 4 callers
Function
_tool_call_delta_chunk
(tool_call: dict[str, object] | ChatCompletionDeltaToolCall)
tests/unit/litellm_core_utils/test_streaming_chunk_builder_utils.py:1384
↓ 4 callers
Function
_tool_call_opening
(index: int, name: str, arguments: str)
tests/unit/llms/databricks/chat/test_databricks_chat_transformation.py:2855
↓ 4 callers
Method
_tool_call_upstream
()
tests/unit/proxy/guardrails/guardrail_hooks/unified_guardrails/test_unified_guardrail.py:2608
↓ 4 callers
Function
_tool_items
(marker: str, *, output_mark: JsonValue = None, call_mark: JsonValue = None)
tests/integration/providers/test_responses_bridge_message_cache_control_wire.py:106
↓ 4 callers
Method
_tool_loop_turns
(self)
tests/unit/router_strategy/test_complexity_router.py:7814
↓ 4 callers
Function
_tool_name_matches
Check if a tool name matches any name in the filter list. Reads the same owner the server-level permission checks use, so discovery hides
litellm/proxy/mcp_server/operations.py:779
↓ 4 callers
Function
_tool_names
(body: Mapping[str, JsonValue])
tests/integration/providers/test_vertex_anthropic_structured_output_wire.py:507
↓ 4 callers
Function
_tool_result_messages
(tool_output: str)
tests/unit/litellm_core_utils/test_logging_utils.py:274
↓ 4 callers
Function
_tool_result_with_text_blocks
(text_block: Mapping[str, object])
tests/unit/llms/anthropic/messages/adapters/test_anthropic_messages_adapters_transformation.py:5665
↓ 4 callers
Function
_tool_spec
(tool: object)
litellm/responses/litellm_completion_transformation/client_tool_search.py:131
↓ 4 callers
Method
_tool_use_conversation
(system: str)
tests/unit/llms/anthropic/chat/guardrail_translation/test_anthropic_guardrail_handler.py:2747
↓ 4 callers
Function
_tools
(request: NativeCall)
litellm/rust_bridge/responses/detectors.py:64
↓ 4 callers
Method
_tools
(count: int, cached: bool)
tests/unit/integrations/test_anthropic_cache_control_hook.py:2654
↓ 4 callers
Function
_tools_payload
(case: _Case, body: Mapping[str, JsonValue])
tests/unit/llms/base_llm/chat/test_provider_chat_translation.py:678
↓ 4 callers
Function
_tools_payload
A request declaring ``count`` tools, in the chat-completion shape.
tests/unit/integrations/otel/test_otel_v2_emitter.py:358
↓ 4 callers
Function
_toolset_everywhere
( client: ManagementClient, toolset_id: str, *, settled: Callable[[ToolsetRow], bool] )
tests/e2e/management/test_mcp_lifecycle_e2e.py:225
↓ 4 callers
Function
_total_queued_spend_transactions
Pending entries across every request-time spend queue, sized under each queue's lock. Every drain trigger reads this one owner, so a queue added l
litellm/proxy/utils.py:8965
↓ 4 callers
Function
_tpm_image_part
(url: str, detail: object = "auto")
litellm/litellm_core_utils/prompt_templates/tpm_media_utils.py:17
↓ 4 callers
Function
_tpm_key
(router: Router, deployment_id: str)
tests/unit/caching/test_request_redis_batch_pre_call.py:346
↓ 4 callers
Function
_trace_id_from_traceparent
Extract the trace-id from a W3C Trace Context traceparent header, e.g. "00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01" -> the 32-hex
litellm/proxy/litellm_pre_call_utils.py:138
↓ 4 callers
Function
_transcript_event
(transcript: JsonValue)
tests/integration/providers/test_realtime_transcription_guardrail_session_update.py:287
↓ 4 callers
Function
_transform
(body: object)
tests/unit/llms/bedrock/chat/invoke_transformations/test_amazon_qwen3_transformation.py:16
↓ 4 callers
Function
_transform
(payload: object)
tests/unit/llms/infinity/embedding/test_infinity_embedding_transformation.py:14
↓ 4 callers
Function
_transform
(payload: object)
tests/unit/llms/cometapi/embed/test_cometapi_embed_transformation.py:14
↓ 4 callers
Function
_transform
(payload: object)
tests/unit/llms/elevenlabs/audio_transcription/test_transformation.py:39
↓ 4 callers
Function
_transform
(payload: object)
tests/unit/llms/ovhcloud/test_ovhcloud_embeddings_transformation.py:52
↓ 4 callers
Function
_transform
(payload: object, model_response: ImageResponse | None = None)
tests/unit/llms/fal_ai/image_generation/test_fal_ai_image_generation_transformation.py:10
↓ 4 callers
Function
_transform
(payload: object)
tests/unit/llms/recraft/image_generation/test_recraft_image_gen_transformation.py:262
↓ 4 callers
Function
_transform
(payload: object)
tests/unit/llms/watsonx/rerank/test_watsonx_rerank.py:266
↓ 4 callers
Function
_transform
(raw_response: httpx.Response)
tests/unit/llms/clarifai/chat/test_transformation.py:12
↓ 4 callers
Function
_transform
(payload: object)
tests/unit/llms/voyage/embedding/test_voyage_embedding_transformation.py:14
↓ 4 callers
Function
_transform
(payload: object)
tests/unit/llms/voyage/embedding/test_transformation_contextual.py:487
↓ 4 callers
Function
_transform
(payload: object)
tests/unit/llms/voyage/embedding/test_transformation_multimodal.py:14
↓ 4 callers
Function
_transform
(payload: object)
tests/unit/llms/cohere/rerank/test_transformation.py:14
↓ 4 callers
Function
_transform
(payload: object)
tests/unit/llms/sambanova/embedding/test_sambanova_embedding_transformation.py:14
↓ 4 callers
Method
_transform
(self, optional_params: dict)
tests/unit/llms/openai/transcriptions/test_whisper_transformation.py:20
↓ 4 callers
Method
_transform
(self, custom_llm_provider, api_base, optional_params=None)
tests/unit/llms/openai/chat/test_openai_gpt_transformation.py:825
↓ 4 callers
Method
_transform
( self, model: str, litellm_params: GenericLiteLLMParams, cache_control: dict[
tests/unit/llms/openai/responses/test_openai_responses_transformation.py:3010
↓ 4 callers
Function
_transform_generation_response
(payload: object, status_code: int = 200)
tests/unit/llms/modelscope/image_generation/test_modelscope_image_gen_transformation.py:457
↓ 4 callers
Function
_transform_image_request
(image_base64: str, mime_subtype: str)
tests/unit/llms/ollama/test_ollama_completion_transformation.py:831
↓ 4 callers
Method
_transform_reasoning_content
Extract the reasoning text from the reasoning content blocks Ensures deepseek reasoning content compatible output.
litellm/llms/bedrock/chat/converse_transformation.py:2534
↓ 4 callers
Function
_transform_request
(messages, optional_params, litellm_params=None)
tests/unit/llms/bedrock/chat/invoke_transformations/test_amazon_nova_transformation.py:38
↓ 4 callers
Method
_transform_response_anthropic
Parse Anthropic Messages response into OpenAI format.
litellm/llms/snowflake/chat/transformation.py:591
↓ 4 callers
Function
_transform_verification_tokens_to_deleted_records
Transform verification tokens into deleted token records ready for persistence.
litellm/proxy/management_endpoints/key_management_endpoints.py:5807
↓ 4 callers
Function
_translation_session_cost
( deployment_id: str, session_model: str | None = "gpt-realtime-translate", model: str = "gpt-real
tests/unit/test_cost_calculator.py:10775
↓ 4 callers
Function
_truncate
Cap text at limit characters, keeping both ends and eliding the middle. A chat turn states its ask at the end, so cutting the tail keeps the prea
litellm/router_strategy/complexity_router/complexity_router.py:949
↓ 4 callers
Function
_trusted_only_pool
( healthy_deployments: _DeploymentPool, excluded_set: frozenset[str], required_set: frozenset[str]
litellm/router_strategy/tag_based_routing.py:301
↓ 4 callers
Method
_try_pidfd_watch
Watch engine PID via pidfd_open + asyncio event loop reader. Returns True if pidfd watch was set up, False if unavailable or failed.
litellm/proxy/utils.py:7318
↓ 4 callers
Function
_turn
(connection: websockets.ClientConnection, frame: str)
tests/integration/providers/test_responses_websocket_session_limit.py:452
↓ 4 callers
Function
_turn
( rig: Rig, marker: str, previous: str | None = None, *, key: str | None = None, heade
tests/integration/spend/test_spend_log_caller_session.py:602
↓ 4 callers
Method
_turn
(self, turn_id: str)
litellm/llms/meta/realtime/transformation.py:353
↓ 4 callers
Function
_turn_result
( connection: websockets.ClientConnection, frame: str, )
tests/integration/providers/test_responses_websocket_session_limit.py:662
↓ 4 callers
Function
_turns_finish_at
(monkeypatch: pytest.MonkeyPatch, finished_at: datetime)
tests/unit/responses/test_responses_websocket_all_providers.py:1739
↓ 4 callers
Method
_two_choice_stream_chunks
()
tests/unit/llms/openai/chat/guardrail_translation/test_openai_guardrail_handler.py:1450
↓ 4 callers
Function
_two_per_group
(make_core: MakeCore)
tests/unit/test_router/core/test_registry_characterization_writes.py:528
↓ 4 callers
Function
_two_tools
(gateway: Gateway, scenario: Scenario, wire: Wire)
tests/integration/authorization/test_search_tool_allowlist.py:57
↓ 4 callers
Function
_two_turn_body
(guarded: _Guarded, marker: str, **fields: JsonValue)
tests/integration/authorization/test_tool_search_replay_guardrails.py:135
↓ 4 callers
Function
_type_of
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 4 callers
Function
_typed_model_list
()
tests/unit/test_router/core/test_parity_failure_logging.py:521
↓ 4 callers
Function
_typed_table
(repo: DailyToolSpendRepository)
litellm/proxy/management_endpoints/tool_management_endpoints.py:106
↓ 4 callers
Function
_types
(events: list[dict[str, object]])
tests/unit/llms/vertex_ai/audio_transcription/test_vertex_ai_realtime_transformation.py:103
↓ 4 callers
Method
_ui_session_auth
(self, user_role: LitellmUserRoles = LitellmUserRoles.PROXY_ADMIN)
tests/unit/proxy/management_endpoints/test_mcp_management_endpoints.py:8000
↓ 4 callers
Function
_ui_session_cookie
(scenario: Scenario, user_id: str)
tests/integration/mcp/test_mcp_oauth_flows.py:789
↓ 4 callers
Function
_unavailable
(model: str, reason: str)
litellm/router_strategy/complexity_router/context_compaction.py:180
↓ 4 callers
Function
_unhealthy
(*ids: str)
tests/unit/test_router/core/test_gaps_l14000_selection.py:35
↓ 4 callers
Function
_unified_batch_id
(model_id: str = "azure/gpt-4o", batch_id: str = "batch-provider-id")
tests/unit/proxy/batches_endpoints/test_endpoints.py:3087
↓ 4 callers
Method
_unpack_cached_credentials
Return (credentials, project_id) from the cache, or (None, None) if not cached. Handles both tuple and legacy cache formats.
litellm/llms/vertex_ai/vertex_llm_base.py:493
↓ 4 callers
Function
_unpack_uint32
(buffer: bytes)
litellm/llms/bedrock/passthrough/guardrail_translation/handler.py:627
↓ 4 callers
Function
_unread_bedrock_stream_error_response
(status_code: int, request_id: str)
tests/unit/llms/bedrock/chat/test_invoke_handler.py:762
↓ 4 callers
Method
_unregister
(self, selectors: Sequence[object])
litellm/router_rust/steps/selection.py:130
↓ 4 callers
Method
_unstarted_dequeued_tasks
(self)
litellm/litellm_core_utils/logging_worker.py:101
↓ 4 callers
Function
_unsupported
(model: str, message: str)
litellm/llms/volcengine/videos/transformation.py:197
↓ 4 callers
Method
_unsupported
(model: str, message: str)
litellm/llms/azure_ai/image_generation/mai_transformation.py:255
↓ 4 callers
Function
_unsupported_value
(model: str, message: str)
litellm/llms/dashscope/videos/transformation.py:270
↓ 4 callers
Function
_until
(rig: _Rig, name: str, **labels: str)
tests/integration/observability/test_prometheus_request_metrics.py:113
↓ 4 callers
Function
_until
(read: Callable[[], float], satisfied: Callable[[float], bool])
tests/integration/routing/test_responses_websocket_turn_admission.py:274
↓ 4 callers
Function
_until
(condition: Callable[[], bool])
tests/unit/llms/custom_httpx/test_http2_connection_spread.py:96
↓ 4 callers
Method
_untrack_dequeued
(self, task: LoggingTask)
litellm/litellm_core_utils/logging_worker.py:98
↓ 4 callers
Function
_untracked_tag
(tag: str)
tests/integration/spend/test_tag_budget_enforcement.py:15
↓ 4 callers
Method
_update_agent_db
( self, response_cost: float | None, agent_id: str | None, prisma_client: Pris
litellm/proxy/db/db_spend_update_writer.py:1606
↓ 4 callers
Method
_update_encrypted_content_item_ids_in_response
Rewrite item IDs for output items that contain ``encrypted_content``. Encodes ``model_id`` into the item ID so that follow-up requests can be
litellm/responses/utils.py:575
↓ 4 callers
Function
_update_existing_team_model_assignment
Update an existing team model if the public name changed. Note on DB scan: Prisma's JSON filtering does not support compound AND conditions a
litellm/proxy/management_endpoints/model_management_endpoints.py:2575
↓ 4 callers
Function
_update_logging
(kwargs: dict, provider: str, operation: str)
litellm/sandbox/main.py:51
↓ 4 callers
Function
_update_metadata_with_tags_in_header
If tags are in the request headers, add them to the metadata Used for google and vertex JS SDKs, and Azure passthrough Checks both 'tags
litellm/proxy/pass_through_endpoints/pass_through_endpoints.py:2218
↓ 4 callers
Function
_upgrade_hosts
(observed: tuple[dict[str, JsonValue], ...])
tests/integration/providers/test_vertex_realtime_multi_region_host.py:231
↓ 4 callers
Function
_upgrades
(observed: tuple[dict[str, JsonValue], ...])
tests/integration/providers/test_realtime_unguarded_voice_turns.py:407
↓ 4 callers
Function
_upload
(gateway: Gateway, route: UploadRoute, model: str, content: bytes)
tests/integration/providers/test_vertex_batch_row_line_errors_owned_proxy.py:108
↓ 4 callers
Function
_upload_stream
Pull the streaming body out of the upload transform result.
tests/unit/llms/vertex_ai/files/test_vertex_ai_files_streaming.py:58
↓ 4 callers
Function
_upload_then_delete
( router: _FakeFilesRouter, target_model_names: list[str], content_type: str = "text/plain" )
tests/unit/enterprise/proxy/test_managed_files_hook.py:2465
↓ 4 callers
Method
_upload_url
(self, config, litellm_params, file, purpose="batch")
tests/unit/llms/vertex_ai/files/test_transformation.py:88
↓ 4 callers
Function
_upload_url_body
(**overrides: Any)
tests/unit/integrations/focus/test_ternary_destination.py:54
↓ 4 callers
Function
_uploaded_body
(mock_s3_client: MagicMock)
tests/unit/integrations/test_s3.py:197
↓ 4 callers
Function
_upstream
(bridge: _Bridge, marker: str, kind: FirstAttempt, attempts: Attempts)
tests/integration/messages_endpoint/chat_bridge/test_chat_bridge_pre_content_retry_wire.py:66
↓ 4 callers
Function
_upstream
(status: int = 200)
tests/rust-python-harness/shared/parity/fixtures/test_pipeline.py:63
↓ 4 callers
Function
_upstream_client
The HTTP client for one upstream call, guarded when a credential rides a custom slot. A resolved credential outside ``Authorization`` is not stri
litellm/proxy/mcp_server/openapi_to_mcp_generator.py:522
↓ 4 callers
Method
_upstream_headers
(self, monkeypatch, headers: list[tuple[bytes, bytes]])
tests/unit/proxy/pass_through_endpoints/test_llm_pass_through_endpoints.py:2333
↓ 4 callers
Function
_upstream_paths
(gateway: Gateway, scenario_id: str)
tests/integration/providers/test_xai_batch_output_file_wire.py:146
↓ 4 callers
Function
_upstream_reply
(backend: str, stream: bool)
tests/integration/providers/test_databricks_chat_wire.py:1036
↓ 4 callers
Function
_url
(request: Request, route: str)
litellm/proxy/discovery_endpoints/skill_hub_endpoints.py:100
↓ 4 callers
Method
_usable
(self)
litellm/llms/base_llm/auth/shared_token_store.py:103
← previous
next →
19,301–19,400 of 202,479, ranked by callers