MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 3 callersMethodargs
(self)
tests/test_litellm_rust/test_public_entries.py:44
↓ 3 callersFunctionargsForStrategy
(routingStrategy: string, routingStrategyArgs: string)
ui/litellm-dashboard/src/components/routing_groups/routingGroupPayload.ts:54
↓ 3 callersMethodarmed
()
litellm/router_utils/routing_read_batch.py:47
↓ 3 callersFunctionarrCopy
(s,o)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 3 callersMethodarun
( self, args: tuple[object, ...], kwargs: Mapping[str, object], *, pyt
litellm/rust_bridge/dispatch.py:87
↓ 3 callersFunctionas
(e)
litellm/proxy/_experimental/out/_next/static/chunks/0_6jqgnorqxl2.js:1
↓ 3 callersFunctionasStringArray
(value: unknown)
ui/litellm-dashboard/src/components/publicModelHub/publicModelHubFilters.ts:27
↓ 3 callersFunctionasStringArray
(value: unknown)
ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/GuardrailFormField.tsx:65
↓ 3 callersFunctionas_excluded_deployment_ids
(value: object)
litellm/litellm_core_utils/routing_common_utils.py:72
↓ 3 callersFunctionas_openai_image_part
One image content part rewritten into chat-completions dialect, or None when it is not one. Rebuilt rather than forwarded so no caller-controlled
litellm/litellm_core_utils/prompt_templates/common_utils.py:535
↓ 3 callersFunctionas_output_cap
A client-sent output cap coerced to an int: ints, floats and numeric strings, never bools or negatives.
litellm/router_rust/steps/prerouting.py:612
↓ 3 callersFunctionas_str
(value: object)
litellm/proxy/client/cli/commands/statusline_script.py:118
↓ 3 callersFunctionas_str_tuple
(value: object)
litellm/integrations/otel/model/utils.py:71
↓ 3 callersFunctionas_system_content_blocks
(value: object)
litellm/llms/anthropic/messages/native/mid_conversation_system.py:8
↓ 3 callersFunctionas_text
(message: str | bytes)
tests/e2e/llm_translation/realtime/realtime_client.py:387
↓ 3 callersFunctionas_text
(value: &Value)
litellm-rust/crates/redis-resolve/src/options.rs:188
↓ 3 callersFunctionassert_burst_landed
(wire: Wire, name: str, outcomes: Sequence[tuple[str, Outcome]], *, marked: bool)
tests/integration/providers/_mantle_gpt_prompt_cache_support.py:943
↓ 3 callersFunctionassert_config_write_refused
(gateway: Gateway)
tests/integration/management/test_vector_store_config_ownership.py:57
↓ 3 callersFunctionassert_dd_mcp_creds
()
tests/e2e/mcp/datadog_mcp.py:29
↓ 3 callersFunctionassert_every_id_landed_once
(rig: Rig, outcomes: Sequence[Outcome])
tests/integration/messages_endpoint/safeguards/test_safeguard_results_chaos.py:102
↓ 3 callersFunctionassert_final_text
(body: Mapping[str, JsonValue])
tests/integration/translation/chat_completions/cross_model/contracts.py:316
↓ 3 callersFunctionassert_key_alias
(spans: Sequence[Mapping[str, object]], key_alias: str | None)
tests/integration/observability/_langfuse_otel_metadata_support.py:311
↓ 3 callersFunctionassert_key_owner_and_totals
( response: httpx.Response, api_key: str, metadata: Mapping[str, JsonValue], totals: Mapping[s
tests/integration/_support/daily_activity.py:306
↓ 3 callersFunctionassert_litellm_error
(response: httpx.Response, status: int)
tests/integration/providers/test_bedrock_passthrough_aws_errors.py:397
↓ 3 callersFunctionassert_mapped_upstream_error
(response: httpx.Response, mapped: Mapped, marker: str)
tests/integration/providers/_assistants_route_errors_support.py:251
↓ 3 callersFunctionassert_no_search_and_no_deferral
(body: Mapping[str, JsonValue], names: Sequence[str])
tests/integration/providers/test_chat_completions_tool_search_wire.py:451
↓ 3 callersFunctionassert_projection
(kwargs: Value, globals: Value, expected: Result<Value, ()>)
litellm-rust/crates/python-bridge/src/routes/messages/host.rs:420
↓ 3 callersFunctionassert_refused_as_non_integer
(answer: Answer)
tests/integration/routing/test_priority_scheduler_queue_cleanup.py:1060
↓ 3 callersFunctionassert_refused_at_once
(answer: Answer)
tests/integration/routing/test_priority_scheduler_queue_cleanup.py:407
↓ 3 callersFunctionassert_refused_before_the_router_timeout
(answer: Answer)
tests/integration/routing/test_priority_scheduler_queue_cleanup.py:747
↓ 3 callersFunctionassert_sentiment_json
(text: str)
tests/e2e/llm_translation/structured_output.py:21
↓ 3 callersFunctionassert_signed
The recorded URL names wiremock's host, not the address the client signed for.
litellm-rust/crates/inference-ocr/tests/ocr/aws_textract.rs:71
↓ 3 callersFunctionassert_spend_matches_counter
(rig: BudgetRig, key: str, model: str, window: Window)
tests/integration/management/test_budget_reset_windows.py:218
↓ 3 callersFunctionassert_stream_preserved
( message: Message, usage: Mapping[str, JsonValue], case: StreamingTranslationTestCase )
tests/integration/translation/chat_completions/cross_model/contracts.py:256
↓ 3 callersFunctionassert_text
(message: &MessagesResponse)
litellm-rust/crates/inference-messages/tests/live/support.rs:119
↓ 3 callersFunctionassert_the_serving_proxy_boots_and_finds_the_indexes_in_place
The serving proxy applies the inert files, reports ready, and its background build finds every index already there, so it builds nothing and the c
tests/integration/database/test_request_log_indexes_at_boot.py:269
↓ 3 callersFunctionassert_waits_at
( gateway: Gateway, cache: OwnedRedis, upstream: Upstream, group: str, priority: int,
tests/integration/routing/test_priority_scheduler_queue_cleanup.py:1211
↓ 3 callersFunctionassert_within_ceiling
(journey_name: str, samples: tuple[Sample, ...])
tests/e2e/perf/setup/ui_journeys.py:147
↓ 3 callersFunctionasync_assistants_data_generator
(response, user_api_key_dict: UserAPIKeyAuth, request_data: dict)
litellm/proxy/proxy_server.py:10155
↓ 3 callersMethodasync_batch_get_cache
( self, keys: list[str], parent_otel_span: Span | None = None, local_only: boo
litellm/proxy/common_utils/user_api_key_cache.py:452
↓ 3 callersMethodasync_batch_get_cache
(self, key_list, **kwargs)
tests/unit/caching/test_dual_cache.py:525
↓ 3 callersFunctionasync_call
()
tests/integration/compatibility/test_status_code_followups_requests.py:271
↓ 3 callersMethodasync_completion
( self, model: str, messages: list, api_base: str, model_response: Mod
litellm/llms/predibase/chat/handler.py:194
↓ 3 callersMethodasync_container_list_handler
( self, container_provider_config: "BaseContainerConfig", litellm_params: GenericLiteL
litellm/llms/custom_httpx/llm_http_handler.py:9812
↓ 3 callersMethodasync_create_agent
( self, agents_api_config: BaseAgentsAPIConfig, create_request: AgentCreateRequest,
litellm/interactions/agents/http_handler.py:92
↓ 3 callersMethodasync_delete_agent
( self, agents_api_config: BaseAgentsAPIConfig, name: str, litellm_params: Gen
litellm/interactions/agents/http_handler.py:338
↓ 3 callersMethodasync_delete_cache
(self, key: str)
tests/unit/proxy/test_proxy_utils.py:3703
↓ 3 callersMethodasync_delete_cache
(&self, key: &str)
litellm-rust/crates/cache-disk/src/cache.rs:202
↓ 3 callersMethodasync_delete_secret_with_client
( &self, client: &Client, name: &str, recovery_window_in_days: Option<u32>,
litellm-rust/crates/secrets-aws/src/secret_manager/write.rs:214
↓ 3 callersMethodasync_failure_handler
( self, exception: Exception, traceback_exception: str, start_time: datetime.d
litellm/rust_bridge/host/callbacks_legacy_python.py:156
↓ 3 callersMethodasync_generate_content_handler
Handle generate_content call asynchronously using completion adapter
litellm/google_genai/adapters/handler.py:82
↓ 3 callersMethodasync_get_agent
( self, agents_api_config: BaseAgentsAPIConfig, name: str, litellm_params: Gen
litellm/interactions/agents/http_handler.py:259
↓ 3 callersMethodasync_get_cache
(self, *, key: str)
litellm/proxy/auth/user_api_key_auth.py:485
↓ 3 callersMethodasync_get_cache
( self, key: str, parent_otel_span: object = None, local_only: bool = False,
litellm/proxy/common_utils/cache_coordinator.py:30
↓ 3 callersMethodasync_get_cache
(self, model: str)
litellm/proxy/hooks/dynamic_rate_limiter.py:43
↓ 3 callersMethodasync_get_cache
Asynchronously get cache using run_in_executor to avoid blocking the event loop. Compatible with Python 3.8+.
litellm/caching/s3_cache.py:157
↓ 3 callersMethodasync_get_chat_completion_prompt
Returns: - model: str - the model to use (can be pulled from prompt management tool) - messages: List[AllMessageValues] - the
litellm/integrations/custom_logger.py:204
↓ 3 callersMethodasync_get_ttl
Get the remaining TTL of a key in Redis Args: key (str): The key to get TTL for Returns: Optional[i
litellm/caching/redis_cache.py:2045
↓ 3 callersMethodasync_image_edit_handler
Async version of the image edit handler. Uses async HTTP client to make requests.
litellm/llms/custom_httpx/llm_http_handler.py:7549
↓ 3 callersMethodasync_increment
(self, key: str, value: float, ttl: int | None = None)
litellm/proxy/hooks/search_free_tier.py:24
↓ 3 callersFunctionasync_io_token_refund_failure
( dual_cache: DualCache, kwargs: Mapping[str, object] | None, *, parent_otel_span: Span | None
litellm/router_utils/pre_call_checks/io_token_rate_limit_check.py:947
↓ 3 callersMethodasync_key_deleted_hook
Post /key/delete processing hook Handles the following: - Storing Audit Logs for key deletion
litellm/proxy/hooks/key_management_event_hooks.py:235
↓ 3 callersMethodasync_list_agent_versions
( self, agents_api_config: BaseAgentsAPIConfig, name: str, litellm_params: Gen
litellm/interactions/agents/http_handler.py:417
↓ 3 callersMethodasync_list_agents
( self, agents_api_config: BaseAgentsAPIConfig, litellm_params: GenericLiteLLMParams,
litellm/interactions/agents/http_handler.py:182
↓ 3 callersMethodasync_log_audit_log_event
Async log LiteLLM audit log events to Azure Sentinel. Audit logs are queued separately from standard LLM logs so mixed callback
litellm/integrations/azure_sentinel/azure_sentinel.py:311
↓ 3 callersMethodasync_log_failure_event
(self, kwargs, response_obj, start_time, end_time)
litellm/integrations/clickhouse/clickhouse_spend_logger.py:235
↓ 3 callersMethodasync_log_failure_event
(self, kwargs, response_obj, start_time, end_time)
tests/unit/router_utils/test_embedding_batch_size_check.py:408
↓ 3 callersMethodasync_log_failure_event
(self, kwargs, response_obj, start_time, end_time)
tests/unit/proxy/test_proxy_utils.py:2785
↓ 3 callersMethodasync_log_success_event
(self, kwargs, response_obj, start_time, end_time)
litellm/integrations/braintrust_logging.py:261
↓ 3 callersMethodasync_log_success_event
( self, kwargs: Mapping[str, object], response_obj: object, start_time: dateti
litellm/integrations/pointfive/logger.py:166
↓ 3 callersMethodasync_log_success_event
(self, kwargs, response_obj, start_time, end_time)
litellm/router_strategy/lowest_cost.py:132
↓ 3 callersMethodasync_log_success_event
(self, kwargs, response_obj, start_time, end_time)
tests/unit/proxy/test_configs/custom_callbacks.py:61
↓ 3 callersMethodasync_log_success_event
(self, kwargs, response_obj, start_time, end_time)
tests/unit/test_router/test_router.py:2684
↓ 3 callersMethodasync_lpop_pipeline
Use Redis Pipelines for bulk LPOP operations Args: lpop_list: List of RedisPipelineLpopOperation dicts containing:
litellm/caching/redis_cache.py:2389
↓ 3 callersMethodasync_make_request
Make a request to the OpenAI Moderation API.
litellm/proxy/guardrails/guardrail_hooks/openai/moderations.py:136
↓ 3 callersMethodasync_management_endpoint_failure_hook
( self, logging_payload: ManagementEndpointLoggingPayload, parent_otel_span: Span | No
litellm/integrations/opentelemetry.py:3527
↓ 3 callersMethodasync_moderation_hook
( self, data: dict, user_api_key_dict: UserAPIKeyAuth, call_type: CallTypesLit
enterprise/enterprise_hooks/openai_moderation.py:34
↓ 3 callersMethodasync_post_agentic_loop_response_hook
Inject Anthropic-native ``web_search_tool_result`` blocks into the final response when the originating client used a native `
litellm/integrations/websearch_interception/handler.py:1036
↓ 3 callersMethodasync_post_call_streaming_hook
(self, user_api_key_dict, response)
tests/unit/proxy/utils/proxy_logging/test_guardrail_pipeline.py:3698
↓ 3 callersMethodasync_post_call_streaming_hook
(self, **kwargs)
tests/unit/proxy/utils/proxy_logging/test_streaming_hooks.py:363
↓ 3 callersMethodasync_post_call_streaming_iterator_hook
Process streaming response chunks with Noma guardrail.
litellm/proxy/guardrails/guardrail_hooks/noma/noma.py:808
↓ 3 callersMethodasync_pre_call_hook
( self, user_api_key_dict: UserAPIKeyAuth, cache: DualCache, data: dict,
litellm/proxy/guardrails/guardrail_hooks/cato_networks/cato_networks.py:168
↓ 3 callersMethodasync_pre_call_hook
(self, **kwargs)
tests/unit/llms/anthropic/messages/context_management/test_compact.py:1741
↓ 3 callersMethodasync_pre_call_hook
( self, user_api_key_dict: UserAPIKeyAuth, cache: DualCache, data: dict,
enterprise/enterprise_hooks/banned_keywords.py:68
↓ 3 callersMethodasync_pre_request_hook
Pre-request hook to convert native web search tools to LiteLLM standard. This hook is called before the API request is made, allowin
litellm/integrations/websearch_interception/handler.py:619
↓ 3 callersMethodasync_prefix_positions
( messages: list[AllMessageValues] | None, tools: Sequence[ChatCompletionToolParam] | None,
litellm/router_utils/prompt_caching_cache.py:367
↓ 3 callersMethodasync_read_secret
(self, secret_name, optional_params=None, timeout=None, **kwargs)
tests/unit/secret_managers/test_secret_managers_main.py:487
↓ 3 callersMethodasync_read_secret
(&self, secret_name: &str)
litellm-rust/crates/secrets-hashicorp/src/secret_manager/read.rs:4
↓ 3 callersMethodasync_realtime_calls_handler
Forward POST /v1/realtime/calls (SDP exchange) to upstream provider. Uses provider_config (BaseRealtimeHTTPConfig) for URL construct
litellm/llms/custom_httpx/llm_http_handler.py:7140
↓ 3 callersMethodasync_realtime_translation_client_secret_handler
( self, api_base: str, api_key: str, request_data: dict[str, object],
litellm/llms/custom_httpx/llm_http_handler.py:7027
↓ 3 callersMethodasync_response_api_handler
( self, previous_response_client_ids: tuple[str, ...] = (), stored_turns: StoredTurns
litellm/responses/litellm_completion_transformation/handler.py:216
↓ 3 callersMethodasync_retrieve_file
Async retrieve file metadata by ID
litellm/llms/custom_httpx/llm_http_handler.py:5345
↓ 3 callersMethodasync_retrieve_file_content
Async retrieve file content by ID
litellm/llms/custom_httpx/llm_http_handler.py:5802
↓ 3 callersMethodasync_retrieve_file_content_streaming
Async retrieve file content by ID as a byte stream, without buffering the body.
litellm/llms/custom_httpx/llm_http_handler.py:5848
↓ 3 callersFunctionasync_rotate_secret
( manager: &M, current_name: &str, new_name: &str, value: &SecretValue, context: &M::Conte
litellm-rust/crates/secrets-types/src/base_secret_manager.rs:85
↓ 3 callersMethodasync_send_batch
Sends the batch of logs to Azure Monitor Logs Ingestion API Raises: Raises a NON Blocking verbose_logger.exception if an
litellm/integrations/azure_sentinel/azure_sentinel.py:346
↓ 3 callersMethodasync_service_failure_hook
- For counting if the redis, postgres call is unsuccessful
litellm/_service_logger.py:319
↓ 3 callersMethodasync_set_cache
( self, key: str, value: str, **kwargs: object, # kwargs-ok: RedisCache accep
litellm/proxy/credential_endpoints/user_provider_credentials.py:168
↓ 3 callersMethodasync_set_cache
(self, key, value, **kwargs)
litellm/caching/gcs_cache.py:58
↓ 3 callersMethodasync_set_cache
(self, key, value, local_only=False, **kwargs)
tests/unit/proxy/auth/test_auth_checks_object_access_and_lookup.py:9204
← previousnext →26,001–26,100 of 202,479, ranked by callers