MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 4 callersFunctionapi_key_from_bucket
(api_key: str)
litellm/repositories/daily_activity_buckets.py:27
↓ 4 callersMethodappend
(self, value: Entry)
litellm/router_rust/surface/model_list.py:335
↓ 4 callersMethodappend_system_prompt_messages
Append system prompt messages to the messages
litellm/litellm_core_utils/litellm_logging.py:6973
↓ 4 callersMethodapply
Apply one change set atomically and return the new registry version.
litellm-rust/crates/router-core/src/lib.rs:586
↓ 4 callersFunctionapplyOperation
(s,o,i,a,u,_)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 4 callersFunctionapply_client_compaction_block_history
Honor client-sent compaction blocks without a ``compact_20260112`` edit. When the request omits ``context_management`` but the message history al
litellm/llms/anthropic/messages/context_management/editors/compact.py:604
↓ 4 callersFunctionapply_credential
( headers: Vec<(String, String)>, credential: &str, placement: CredentialPlacement, )
litellm-rust/crates/auth-types/src/http.rs:18
↓ 4 callersFunctionapply_decisions_pricing
Return ``row`` priced for a Decisions call: ``_decisions`` values replace their plain fields.
litellm/litellm_core_utils/decisions_pricing.py:42
↓ 4 callersMethodapply_guardrail
( self, inputs: GenericGuardrailAPIInputs, request_data: dict, input_type: Lit
litellm/proxy/guardrails/guardrail_hooks/noma/noma_v2.py:314
↓ 4 callersMethodapply_guardrail
Apply Gray Swan guardrail to extracted text content. This method is called by the unified guardrail system which handles ext
litellm/proxy/guardrails/guardrail_hooks/grayswan/grayswan.py:238
↓ 4 callersMethodapply_guardrail
( self, inputs: GenericGuardrailAPIInputs, request_data: dict, input_type: Lit
tests/unit/llms/anthropic/chat/guardrail_translation/test_anthropic_guardrail_handler.py:3319
↓ 4 callersFunctionapply_lar1_routing_strategy
( ctx: RoutingContext, routing_strategy_args: Mapping[str, object] | None = None, )
litellm/router_strategy/lar1_routing.py:47
↓ 4 callersFunctionapply_provider_cache_read_default
(model_info: ModelInfo, custom_llm_provider: str | None)
litellm/litellm_core_utils/llm_cost_calc/utils.py:126
↓ 4 callersFunctionapply_replica_identity_full
Set REPLICA IDENTITY FULL on every LiteLLM table that is not already FULL. Never raises. Replication metadata is not needed to serve requests, so
litellm-proxy-extras/litellm_proxy_extras/replica_identity.py:49
↓ 4 callersFunctionapply_upstream_reported_model
Record the upstream's model name as the request's model. The name wins over a ``model`` in the request body. It is a label only: it never mar
litellm/proxy/pass_through_endpoints/upstream_usage_headers.py:156
↓ 4 callersFunctionapply_user_info_values_to_sso_user_defined_values
( user_info: LiteLLM_UserTable | NewUserResponse | None, user_defined_values: SSOUserDefinedValues | N
litellm/proxy/management_endpoints/ui_sso.py:2199
↓ 4 callersMethodare_all_deployments_blocked
(deployments: "Sequence[DeploymentTypedDict]")
litellm/router_deprecated.py:677
↓ 4 callersFunctionargv_for
(ctx: SessionContext, native_session_id: Optional[str] = None)
tests/unit/llms/codex/harness/test_transformation.py:178
↓ 4 callersFunctionarray
(s,{sample:o=[]}={})
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 4 callersFunctionasRecord
(value: unknown)
ui/litellm-dashboard/src/lib/toast.ts:73
↓ 4 callersFunctionas_dict
(value: object)
litellm/router_rust/steps/prerouting.py:1127
↓ 4 callersMethodas_limit
(timeout: object)
litellm/litellm_core_utils/completion_timeout.py:89
↓ 4 callersFunctionas_mcp_read_timeout
Normalize an MCP SDK read timeout for client and gateway diagnostics, or return ``None``. The SDK reports its own elapsed read timeout as ``MCPEr
litellm/mcp_client/client.py:226
↓ 4 callersFunctionas_retry_skipped_deployment_ids
(value: object)
litellm/litellm_core_utils/routing_common_utils.py:65
↓ 4 callersMethodas_value
(&self)
litellm-rust/crates/auth-azure/src/types.rs:22
↓ 4 callersMethodask
(chat_template_kwargs: dict[str, bool] | None)
tests/e2e/llm_translation/test_together_ai_e2e.py:508
↓ 4 callersFunctionassert_answered_with_its_own_marker
(served: Served)
tests/integration/providers/test_coralbricks_provider_chaos.py:114
↓ 4 callersFunctionassert_billed_like_its_creator
( row: dict[str, JsonValue], key: str, team_id: str | None, user_id: str | None )
tests/integration/spend/_background_responses.py:297
↓ 4 callersFunctionassert_both_calls_logged_with_content
(rig: Rig, sinks: SpanSinks, key: str)
tests/integration/messages_endpoint/safeguards/test_safeguard_results_logging_opt_outs.py:95
↓ 4 callersFunctionassert_both_indexes_cover_every_partition
Every populated partition's index is attached and valid, both parents are valid, and a partition created afterwards inherits both indexes.
tests/integration/database/test_request_log_indexes_at_boot.py:257
↓ 4 callersFunctionassert_classified_once
(rig: Rig, request_nonce: str, ids: tuple[str, ...])
tests/integration/messages_endpoint/safeguards/test_safeguard_results_bridges.py:75
↓ 4 callersFunctionassert_deferred_tools_kept
(tools: Sequence[Mapping[str, JsonValue]])
tests/integration/providers/test_chat_completions_tool_search_wire.py:444
↓ 4 callersFunctionassert_exact
( case_name: str, response_content_type: str, expected: ExactExpected, row: CostRow, respo
tests/integration/cost_calculation/assertions.py:137
↓ 4 callersFunctionassert_failed
(row: Mapping[str, JsonValue], alias: str, model: str = MODEL)
tests/integration/providers/_coralbricks.py:427
↓ 4 callersFunctionassert_flagged_after_one_classifier_call
(rig: Rig, key: str)
tests/integration/messages_endpoint/safeguards/test_safeguard_results_caller_checks.py:111
↓ 4 callersFunctionassert_forwarded_upload
(request: Request, content: bytes)
tests/integration/management/_batch_file_caps.py:162
↓ 4 callersFunctionassert_history_clean
(database: Database)
tests/e2e/migrations/upgrade.py:114
↓ 4 callersFunctionassert_no_bleed
(received: tuple[Request, ...], markers: frozenset[str])
tests/integration/providers/test_coralbricks_provider_chaos.py:160
↓ 4 callersFunctionassert_precondition_failed
(gateway: Gateway, key: str, identity: str, *missing: str)
tests/integration/mcp/test_mcp_user_env_vars.py:119
↓ 4 callersFunctionassert_preference_unset
(gateway: Gateway, name: str)
tests/integration/management/test_claude_code_plugin_installation_preference.py:133
↓ 4 callersFunctionassert_proxy_admin_for_vector_store_index_management
Raise 403 unless the caller is a proxy admin.
litellm/proxy/vector_store_endpoints/utils.py:49
↓ 4 callersFunctionassert_served_by
(answer: Answer, model_id: str)
tests/integration/routing/test_fallback_hop_foreign_encrypted_reasoning.py:627
↓ 4 callersFunctionassert_total_is_sum_of_components
The row's total is input + output + tool usage. The cache components are already inside the gross input cost, so adding them again would double-bi
tests/e2e/quota_management/spend_tracking/cost_rows.py:109
↓ 4 callersFunctionassert_unsupported_without_a_classifier_call
(rig: Rig, key: str)
tests/integration/messages_endpoint/safeguards/test_safeguard_results_caller_checks.py:57
↓ 4 callersFunctionassert_value_parity
(baseline: object, candidate: object, *, path: str = "$")
tests/rust-python-harness/shared/parity/compare.py:46
↓ 4 callersMethodasync_agentic_loop_cleanup_hook
(self, plan: AgenticLoopPlan, kwargs: dict)
litellm/integrations/code_interpreter_interception/handler.py:662
↓ 4 callersFunctionasync_anthropic_client
(gateway: Gateway)
tests/integration/providers/_count_tokens_system_lift.py:221
↓ 4 callersFunctionasync_anthropic_client
(candidate: Gateway, key: str)
tests/integration/authorization/_hidden_alias_budget.py:326
↓ 4 callersMethodasync_batch_get_cache
(self, key_list: Sequence[str], **kwargs: object)
tests/unit/caching/test_redis_batch.py:124
↓ 4 callersMethodasync_build_responses_agentic_loop_plan
( self, tools: dict, model: str, messages: list[dict], response: objec
litellm/integrations/websearch_interception/handler.py:1185
↓ 4 callersMethodasync_check_cache
Checks if content already cached. Currently, checks cache list, for cache key == displayName, since Google doesn't let us set the na
litellm/llms/vertex_ai/context_caching/vertex_ai_context_caching.py:311
↓ 4 callersFunctionasync_completion_with_fallbacks
Asynchronously attempts completion with fallback models if the primary model fails. Args: **kwargs: Keyword arguments for completion
litellm/litellm_core_utils/fallback_utils.py:17
↓ 4 callersMethodasync_delete_cache
(self, key: str)
litellm/caching/redis_cache.py:1946
↓ 4 callersMethodasync_delete_cache_keys
Batch twin of ``async_delete_cache``, chunked because Redis takes the whole list as one DELETE command.
litellm/caching/dual_cache.py:696
↓ 4 callersMethodasync_failure_handler
(self, *args, **kwargs)
tests/unit/responses/test_streaming_iterator.py:1495
↓ 4 callersMethodasync_flush_cache
(&self)
litellm-rust/crates/cache-disk/src/cache.rs:216
↓ 4 callersMethodasync_get_cache
(self, key, **kwargs)
tests/unit/proxy/auth/test_auth_checks_object_access_and_lookup.py:6973
↓ 4 callersMethodasync_increment
(self, key, value, **kwargs)
tests/unit/caching/test_dual_cache.py:655
↓ 4 callersMethodasync_increment
( &self, key: &str, amount: f64, ttl: Option<Duration>, )
litellm-rust/crates/router-core/src/cache.rs:138
↓ 4 callersMethodasync_increment_cache_pipeline
( self, increment_list: list["RedisPipelineIncrementOperation"], local_only: bool = Fa
litellm/caching/dual_cache.py:620
↓ 4 callersMethodasync_increment_pipeline
Use Redis Pipelines for bulk increment operations Args: increment_list: List of RedisPipelineIncrementOperation dicts con
litellm/caching/redis_cache.py:1979
↓ 4 callersMethodasync_log_success_event
Hook to track latency for litellm proxy llm api calls
litellm/_service_logger.py:409
↓ 4 callersMethodasync_log_success_event
( self, kwargs: Mapping[str, object], response_obj: object, start_time: object, end_time: object )
litellm/proxy/telemetry/attempt_logger.py:205
↓ 4 callersMethodasync_log_success_event
Async Log success events to Generic API Endpoint - Creates a StandardLoggingPayload - Adds to batch queue - Flushes
litellm/integrations/generic_api/generic_api_callback.py:285
↓ 4 callersMethodasync_lookup_batch
( &self, requests: &[ResponseCacheRequest<B::Context>], now: Duration, )
litellm-rust/crates/cache-response/src/response.rs:205
↓ 4 callersMethodasync_make_request
Make a request to the Azure Text Moderation API. Long texts are automatically split at word boundaries into chunks that resp
litellm/proxy/guardrails/guardrail_hooks/azure/text_moderation.py:109
↓ 4 callersFunctionasync_openai_client
(gateway: Gateway)
tests/integration/providers/_coralbricks.py:325
↓ 4 callersMethodasync_post_agentic_loop_response_hook
Post-process the response returned by the agentic-loop follow-up call. Called after BaseLLMHTTPHandler executes ``AgenticLoopPlan.re
litellm/integrations/custom_logger.py:757
↓ 4 callersMethodasync_post_call_failure_hook
( self, request_data: dict, original_exception: Exception, user_api_key_dict:
litellm/integrations/opentelemetry.py:968
↓ 4 callersMethodasync_post_call_response_headers_hook
(self, **kwargs)
tests/unit/proxy/utils/proxy_logging/test_streaming_hooks.py:791
↓ 4 callersMethodasync_post_call_streaming_deployment_hook
(self, request_data, response_chunk, call_type)
tests/unit/responses/test_streaming_iterator.py:1684
↓ 4 callersMethodasync_post_call_streaming_iterator_hook
Process streaming response chunks.
litellm/proxy/guardrails/guardrail_hooks/model_armor/model_armor.py:1163
↓ 4 callersMethodasync_post_call_success_deployment_hook
Allow modifying / reviewing the response just after it's received from the deployment.
litellm/integrations/custom_guardrail.py:1182
↓ 4 callersMethodasync_post_call_success_hook
( self, data: dict, user_api_key_dict: UserAPIKeyAuth, response, )
litellm/proxy/guardrails/guardrail_hooks/bedrock_guardrails.py:2817
↓ 4 callersMethodasync_pre_call_check
Pre-call check + update model rpm - Used inside semaphore - raise rate limit error if deployment over limit Why? sol
litellm/router_strategy/lowest_tpm_rpm_v2.py:182
↓ 4 callersMethodasync_pre_call_hook
litellm/proxy/guardrails/guardrail_hooks/tool_permission.py:1543
↓ 4 callersMethodasync_pre_call_hook
Pre-call hook to scan user prompts before sending to LLM. Raises HTTPException if content should be blocked.
litellm/proxy/guardrails/guardrail_hooks/azure/prompt_shield.py:241
↓ 4 callersMethodasync_pre_call_hook
Runs before the LLM API call Runs on only Input Use this if you want to MODIFY the input
litellm/proxy/guardrails/guardrail_hooks/unified_guardrail/unified_guardrail.py:262
↓ 4 callersMethodasync_pre_call_hook
Pre-call hook for the Javelin guardrail.
litellm/proxy/guardrails/guardrail_hooks/javelin/javelin.py:168
↓ 4 callersMethodasync_pre_call_hook
Process skills from container.skills before the LLM call. 1. Check if container.skills exists in request 2. Separate skills
litellm/proxy/hooks/litellm_skills/main.py:147
↓ 4 callersMethodasync_pre_call_hook
( self, user_api_key_dict: UserAPIKeyAuth, cache: DualCache, data: dict[str, object], call_type: str
tests/unit/proxy/anthropic_endpoints/test_endpoints.py:212
↓ 4 callersMethodasync_pre_call_hook
( self, user_api_key_dict: UserAPIKeyAuth, cache: DualCache, d
tests/unit/proxy/guardrails/guardrail_hooks/azure/test_azure_text_moderation.py:594
↓ 4 callersMethodasync_pre_request_hook
(self, model: str, messages: list, kwargs: dict)
tests/unit/rust_bridge/test_detectors.py:435
↓ 4 callersMethodasync_pre_routing_hook
This hook is called before the routing decision is made. Used for the litellm auto-router to modify the request before the routing d
litellm/router_strategy/auto_router/auto_router.py:205
↓ 4 callersFunctionasync_raise_no_deployment_exception
Raises a RouterRateLimitError if no deployment is found for the given model.
litellm/router_utils/handle_error.py:72
↓ 4 callersMethodasync_read_secret
(&self, name: &str)
litellm-rust/crates/secrets-cyberark/src/secret_manager/read.rs:4
↓ 4 callersMethodasync_rpush
Append one or multiple values to a list stored at key Args: key: The Redis key of the list values: One or mo
litellm/caching/redis_cache.py:2078
↓ 4 callersMethodasync_send_batch
Handles sending batches of runs to Langsmith self.log_queue contains LangsmithQueueObjects Each LangsmithQueueObject has
litellm/integrations/langsmith.py:370
↓ 4 callersMethodasync_send_message
(self, payload: StandardLoggingPayload)
litellm/integrations/sqs.py:253
↓ 4 callersMethodasync_set_cache
(self, key: str | None, value: object, **kwargs)
litellm/caching/redis_cache.py:1065
↓ 4 callersMethodasync_set_cache
(&self, key: &str, value: V, context: C)
litellm-rust/crates/cache/src/dual.rs:192
↓ 4 callersMethodasync_set_cache
( &self, key: &str, value: Self::Value, context: Self::Context, )
litellm-rust/crates/cache-s3/src/cache.rs:195
↓ 4 callersMethodasync_should_run_chat_completion_agentic_loop
Check if WebSearch tool interception is needed for Chat Completions API. Similar to async_should_run_agentic_loop but for OpenAI-sty
litellm/integrations/websearch_interception/handler.py:819
↓ 4 callersMethodasync_success_handler
(self)
litellm/proxy/guardrails/guardrail_endpoints.py:2368
↓ 4 callersMethodasync_transform_responses_api_request
( self, model: str, input: str | ResponseInputParam, response_api_optional_req
litellm/llms/base_llm/responses/transformation.py:170
↓ 4 callersMethodasync_transform_video_status_retrieve_response
( self, raw_response: httpx.Response, logging_obj: object, custom_llm_provider
litellm/llms/fal_ai/videos/transformation.py:522
↓ 4 callersMethodasync_write_secret
( &self, secret_name: &str, value: SecretValue, description: Option<&str>,
litellm-rust/crates/secrets-hashicorp/src/secret_manager/write.rs:4
↓ 4 callersMethodatransform_search_vector_store_request
( self, vector_store_id: str, query: str | Sequence[str], vector_store_search_
litellm/llms/s3_vectors/vector_stores/transformation.py:171
↓ 4 callersMethodattach
(self, client: NativeRedisClient, /)
litellm/redis/stores/router_usage/handle.py:13
↓ 4 callersMethodattempt
()
tests/e2e/management/test_management_e2e.py:797
← previousnext →19,601–19,700 of 202,479, ranked by callers