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
_chat
(messages: Sequence[JsonValue])
tests/integration/providers/test_anthropic_empty_user_turn_wire.py:131
↓ 4 callers
Function
_chat
(gateway: Gateway, model: str, prompt: str, caller: Mapping[str, JsonValue])
tests/integration/providers/test_sagemaker_chat_wire.py:78
↓ 4 callers
Function
_chat
(rig: Rig, guardrail: str)
tests/integration/observability/test_generic_guardrail_num_retries.py:130
↓ 4 callers
Function
_chat
(gateway: Gateway, model: str, key: str)
tests/integration/authorization/test_team_scoped_models.py:67
↓ 4 callers
Function
_chat
(proxy: Gateway, model: str, key: str, text: str)
tests/integration/authorization/test_access_group_model_listing.py:86
↓ 4 callers
Function
_chat
( gateway: Gateway, model: str, prompt_id: str, environment: str | None, version: int | No
tests/integration/management/test_prompt_management.py:84
↓ 4 callers
Function
_chat
(gateway: Gateway, model: str, marker: str)
tests/integration/management/test_credential_federation_values.py:279
↓ 4 callers
Function
_chat
(proxy: Gateway, model: str, key: str, text: str)
tests/integration/management/test_team_delete_member_cache_eviction.py:98
↓ 4 callers
Function
_chat
(gateway: Gateway, model: str, key: str)
tests/integration/management/test_team_delete_large_membership.py:258
↓ 4 callers
Function
_chat
(client: QuotaClient, key: str)
tests/e2e/quota_management/ratelimit/test_rate_limit_e2e.py:140
↓ 4 callers
Function
_chat_body
(model: str, prompt: str)
tests/integration/authorization/test_jwt_key_mapping_lifecycle.py:239
↓ 4 callers
Function
_chat_body
(model: str, text: str, stream: bool = False)
tests/integration/management/test_team_delete_member_cache_eviction.py:91
↓ 4 callers
Function
_chat_bridge_route
(respx_mock: respx.MockRouter)
tests/unit/llms/anthropic/messages/adapters/test_anthropic_messages_adapters_transformation.py:5674
↓ 4 callers
Function
_chat_caller_stream
(reply: Reply, model: str)
tests/integration/observability/_openinference_support.py:258
↓ 4 callers
Function
_chat_completion
(identity: str, model: str)
tests/integration/messages_endpoint/chat_bridge/test_anthropic_messages_pdf_document_wire.py:29
↓ 4 callers
Function
_chat_completion
(message: Mapping[str, object], finish_reason: str = "stop")
tests/unit/llms/together_ai/chat/test_together_ai_chat_transformation.py:781
↓ 4 callers
Function
_chat_completion_body
(usage: dict[str, object])
tests/unit/llms/openai_like/test_inferenceapis_provider.py:18
↓ 4 callers
Function
_chat_completion_chunks
The chat-completions surface: typed ModelResponseStream chunks.
tests/unit/proxy/guardrails/guardrail_hooks/test_model_armor.py:3845
↓ 4 callers
Function
_chat_dict
(*texts: str)
tests/unit/litellm_core_utils/test_served_output_texts.py:33
↓ 4 callers
Function
_chat_entry
(model: str, knobs: Mapping[str, object])
tests/unit/llms/vertex_ai/files/test_vertex_ai_files_transformation.py:2404
↓ 4 callers
Function
_chat_frame
(identity: str, choices: tuple[dict[str, JsonValue], ...])
tests/integration/observability/test_guardrail_effects.py:2172
↓ 4 callers
Function
_chat_history
(marker: str, reasoning_items: Sequence[Mapping[str, JsonValue]])
tests/integration/providers/test_responses_minted_reasoning_replay_wire.py:635
↓ 4 callers
Function
_chat_id
(chunks: Iterable[dict[str, JsonValue]])
tests/integration/providers/test_bedrock_converse_stream_event_frames_wire.py:255
↓ 4 callers
Function
_chat_message
(response: httpx.Response)
tests/integration/providers/test_vertex_anthropic_structured_output_wire.py:677
↓ 4 callers
Function
_chat_observation
(text: str)
tests/integration/management/test_user_updates_wedged_coordination_redis.py:381
↓ 4 callers
Function
_chat_payload
(model: str, *, stream: bool = False)
tests/integration/test_oci_proxy_integration.py:181
↓ 4 callers
Function
_chat_plain_response
(identity: str, content: str)
tests/integration/observability/_openinference_support.py:900
↓ 4 callers
Function
_chat_request_marker
(request: Request)
tests/integration/observability/_openinference_support.py:121
↓ 4 callers
Function
_chat_response_with_tool_search_call
( search_arguments: str, search_call_id: str = "srvtoolu_01Search" )
tests/unit/responses/litellm_completion_transformation/test_litellm_completion_responses.py:1666
↓ 4 callers
Function
_chat_stream
(end: bool)
tests/unit/proxy/guardrails/guardrail_hooks/unified_guardrails/test_openai_streaming_block.py:78
↓ 4 callers
Function
_chat_stream_events
(body: Mapping[str, object])
tests/unit/responses/mcp/test_chat_completions_handler.py:1761
↓ 4 callers
Function
_chat_with_message_mark
(model: str, marker: str, mark: JsonValue = EPHEMERAL)
tests/integration/providers/test_responses_bridge_message_cache_control_wire.py:553
↓ 4 callers
Method
_check
( self, data: dict, user_api_key_dict: UserAPIKeyAuth, call_type: Literal[
litellm/proxy/guardrails/guardrail_hooks/lakera_ai.py:116
↓ 4 callers
Method
_check_agentic_loop_safety
Evaluate agentic-loop safety guards (fingerprint cycle / max depth). Raises AgenticLoopSafetyError on abort. Returns the current fi
litellm/llms/custom_httpx/llm_http_handler.py:6032
↓ 4 callers
Method
_check_and_mark_scanned
Check if request has already been scanned and mark it as scanned. Args: data: Request data dictionary scan_t
litellm/proxy/guardrails/guardrail_hooks/panw_prisma_airs/panw_prisma_airs.py:1064
↓ 4 callers
Method
_check_if_flagged
Check if the Qualifire evaluation result indicates flagged content. Returns True only if there are explicitly flagged items in the e
litellm/proxy/guardrails/guardrail_hooks/qualifire/qualifire.py:252
↓ 4 callers
Function
_check_team_exists
Check if team exists and return team, raise 404 if not found.
litellm/proxy/management_endpoints/scim/scim_v2.py:324
↓ 4 callers
Method
_check_user_message_background
Check user message in background for monitor mode - non-blocking
litellm/proxy/guardrails/guardrail_hooks/noma/noma.py:515
↓ 4 callers
Function
_check_valid_arg
(supported_params)
litellm/utils.py:4565
↓ 4 callers
Function
_checkpoint_actors
(rig: Rig)
tests/integration/observability/test_ovalix_guardrail.py:227
↓ 4 callers
Function
_checks
(wire: Wire)
tests/integration/observability/test_generic_guardrail_num_retries.py:138
↓ 4 callers
Function
_child_of
(parent: Span)
tests/unit/integrations/test_langfuse_otel.py:1376
↓ 4 callers
Function
_choice_index
(choice: TextChoices)
litellm/llms/openai/completion/guardrail_translation/handler.py:368
↓ 4 callers
Function
_chunk
(delta: Delta, finish_reason: str | None = None)
tests/unit/test_stream_chunk_builder_citations.py:24
↓ 4 callers
Function
_chunk_creator_calls
( wrapper: CustomStreamWrapper, chunks: Sequence[ChatCompletionChunk | ModelResponseStream], codes
tests/unit/litellm_core_utils/test_streaming_handler.py:6574
↓ 4 callers
Function
_cited_spans
(citation_metadata: Sequence[Mapping[str, object]], citation_key: str)
tests/unit/llms/vertex_ai/gemini/test_long_decode.py:299
↓ 4 callers
Method
_claim
(self)
litellm/router_rust/invoke/streaming.py:208
↓ 4 callers
Function
_claim_refusal
A claim that is not the first caller's is refused, but the two reasons must stay apart on the wire: a replay is the grant's own 4xx, while a share
litellm/proxy/mcp_server/gateway_dcr_flow.py:1324
↓ 4 callers
Function
_claim_reservation_from_kwargs
Take the stashed reservation so nothing else settles it. Under a routed attempt only that attempt's own reservation is taken, unless ``any_at
litellm/router_utils/pre_call_checks/io_token_rate_limit_check.py:468
↓ 4 callers
Function
_claimer_pid
(row: Mapping[str, JsonValue])
tests/integration/spend/test_background_interaction_settlement.py:418
↓ 4 callers
Function
_claims
(token: str)
tests/e2e/other/test_jwt_auth_e2e.py:32
↓ 4 callers
Method
_clamp
Cut every doc to `max_input_chars`, keeping the head, or return them whole when unset. The head carries the ask often enough to place it agai
litellm/router_strategy/auto_router/litellm_encoder.py:84
↓ 4 callers
Function
_class_descriptor
(cls: type, name: str)
litellm/router.py:229
↓ 4 callers
Method
_classifier_failure_outcome
The outcome when the LLM classifier or classifier plugin produced no usable tier: fallback_tier on a custom tier set, classifier_fallback othe
litellm/router_strategy/complexity_router/complexity_router.py:2509
↓ 4 callers
Function
_classify
(days_until: int, warn_within_days: int)
litellm/proxy/common_utils/model_deprecation.py:166
↓ 4 callers
Method
_classify_locally
(self, prompt: str, system_prompt: str | None)
litellm/router_strategy/complexity_router/complexity_router.py:2106
↓ 4 callers
Function
_claude_baseline
()
tests/unit/litellm_core_utils/test_fallback_generalizations.py:994
↓ 4 callers
Method
_claude_code_tool_search_turns
(tool_result_content, tool_use_id="toolu_01")
tests/unit/llms/anthropic/chat/guardrail_translation/test_anthropic_guardrail_handler.py:2914
↓ 4 callers
Function
_claude_message
()
tests/unit/proxy/pass_through_endpoints/llm_provider_handlers/test_vertex_passthrough_logging_handler.py:366
↓ 4 callers
Function
_claude_tool_use
(tool_id: str, name: str, tool_input: Mapping[str, object])
tests/unit/responses/litellm_completion_transformation/test_anthropic_responses_bridge.py:1289
↓ 4 callers
Method
_clean_contents_for_gemini_api
Clean up contents to remove unsupported fields for the Gemini API. The Google Gemini API doesn't recognize the 'id' field in functio
litellm/llms/gemini/count_tokens/handler.py:67
↓ 4 callers
Function
_cleanup_router_callbacks
(router)
tests/unit/router_utils/pre_call_checks/test_session_id_affinity.py:578
↓ 4 callers
Function
_clear_prometheus_registry
()
tests/unit/integrations/test_prometheus_zero_cost_metric.py:20
↓ 4 callers
Method
_clear_vertex_env
(self, monkeypatch)
tests/unit/proxy/pass_through_endpoints/test_llm_pass_through_endpoints.py:6324
↓ 4 callers
Function
_clear_with_keep_two
(messages: list[dict[str, object]])
tests/unit/llms/anthropic/messages/context_management/test_clear_tool_uses.py:471
↓ 4 callers
Function
_clef_omni_request
(endpoint: str)
tests/unit/proxy/decisions_endpoints/test_endpoints.py:806
↓ 4 callers
Function
_cli_context
(view: _CliContextView)
litellm/proxy/client/cli/commands/keys.py:36
↓ 4 callers
Function
_cli_report
(proxy: Gateway, browser: httpx.Client, callback: httpx.Response, session: CliSession)
tests/integration/authorization/test_sso_blank_identity.py:510
↓ 4 callers
Function
_cli_session_token
( user_id: str, team_id: str | None, *, monkeypatch: pytest.MonkeyPatch, max_budget: float
tests/integration/management/test_project_lifecycle.py:150
↓ 4 callers
Function
_cli_sso_verification_uri_complete_enabled
()
litellm/proxy/management_endpoints/ui_sso.py:332
↓ 4 callers
Function
_client
(gateway: Gateway, key: str, base_path: str = "/v1")
tests/integration/compatibility/test_prompt_management_routes.py:54
↓ 4 callers
Function
_client
(role: LitellmUserRoles, store: TelemetryStore | None)
tests/unit/proxy/telemetry/test_endpoints.py:47
↓ 4 callers
Function
_client
()
tests/unit/proxy/list_api/test_common.py:22
↓ 4 callers
Function
_client_allowlist_patches
( settings: dict[str, object], jwt_claims: dict[str, object] | None )
tests/unit/proxy/mcp_server/test_mcp_server_tool_calls_and_headers.py:2182
↓ 4 callers
Function
_client_answering
(body: bytes)
tests/unit/llms/e2b/sandbox/test_transformation.py:11
↓ 4 callers
Function
_client_forwarded_mode_server
(server_id: str, auth_type)
tests/unit/proxy/mcp_server/test_mcp_server_tool_calls_and_headers.py:778
↓ 4 callers
Function
_client_with_agent_card
( monkeypatch: pytest.MonkeyPatch, role: LitellmUserRoles, agent: AgentResponse, )
tests/unit/proxy/agent_endpoints/test_endpoints.py:1045
↓ 4 callers
Function
_clients
(stack: ExitStack, base_url: str, count: int)
tests/integration/providers/test_vertex_anthropic_structured_output_wire.py:1018
↓ 4 callers
Function
_clients
(stack: ExitStack, base_url: str, count: int)
tests/integration/providers/test_malformed_tools_chaos.py:249
↓ 4 callers
Function
_clipped
(text: str, limit: int)
litellm/llms/anthropic/messages/safeguards.py:408
↓ 4 callers
Function
_clock_rolling_over_after_first_read
()
tests/unit/proxy/hooks/test_parallel_request_limiter.py:37
↓ 4 callers
Method
_close
(parked: Parked | None)
litellm/responses/mcp/stream_round_billing.py:351
↓ 4 callers
Method
_close_http_session
Close all cached HTTP sessions.
litellm/proxy/guardrails/guardrail_hooks/presidio.py:418
↓ 4 callers
Function
_closing_input
()
tests/unit/llms/bedrock/realtime/test_bedrock_realtime_handler.py:63
↓ 4 callers
Function
_closing_prisma
(prisma: MagicMock)
tests/unit/proxy/proxy_server/test_lifecycle.py:60
↓ 4 callers
Function
_cluster_set_cache_with_client
( client: _InFlightCountingClient, max_connections: int | None = None, connection_gate: ClusterCon
tests/unit/caching/test_redis_cluster_cache.py:439
↓ 4 callers
Function
_coalesce_rate_limit_descriptors
(descriptors: Sequence[RateLimitDescriptor])
litellm/proxy/hooks/parallel_request_limiter_v3.py:380
↓ 4 callers
Function
_codex_client_headers
( authorization_header_name: str = "authorization", account_id: str | None = "acct-alice" )
tests/unit/proxy/test_litellm_pre_call_utils.py:9962
↓ 4 callers
Method
_codex_kwargs
( self, session_id: str, request_kind: str, transport: str = "client_metadata" )
tests/unit/router_strategy/test_complexity_router.py:8009
↓ 4 callers
Function
_coerce_text
Best-effort text extraction from a message-content value. Returns None when no textual portion can be derived. Handles: - plain strings
litellm/integrations/arize/_utils.py:631
↓ 4 callers
Function
_coerce_token_count
(value: object)
litellm/litellm_core_utils/llm_cost_calc/utils.py:1777
↓ 4 callers
Function
_coerces_to_true
(value: object | None)
litellm/_redis.py:288
↓ 4 callers
Function
_cohere_v2_embed_response
(vectors: list[list[float]], texts: list[str])
tests/unit/llms/cohere/embed/test_transformation.py:190
↓ 4 callers
Function
_collect
(items: AsyncIterator[_T])
litellm/proxy/roi_calculator/github.py:317
↓ 4 callers
Function
_collect
(bucket: Wire, count_lines: bool, expected: int)
tests/integration/observability/test_s3_v2_upload_fanout.py:107
↓ 4 callers
Function
_collect_async
(wrapper: AnthropicStreamWrapper)
tests/unit/llms/anthropic/messages/adapters/test_streaming_iterator_combined_chunk.py:57
↓ 4 callers
Function
_collect_events_async
(wrapper: AnthropicStreamWrapper)
tests/unit/llms/anthropic/messages/adapters/test_streaming_iterator_compaction.py:34
↓ 4 callers
Method
_collect_user_input_from_backend_event
Extract user voice transcription from backend events for spend logging.
litellm/litellm_core_utils/realtime_streaming.py:724
↓ 4 callers
Function
_collect_vector_store_ids_from_payload
(payload: object)
litellm/proxy/rag_endpoints/endpoints.py:115
↓ 4 callers
Function
_common_patches
Return a combined context manager for the patches shared by all tests.
tests/unit/proxy/pass_through_endpoints/test_passthrough_post_call_guardrails.py:73
← previous
next →
17,501–17,600 of 202,479, ranked by callers