MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 3 callersMethodasync_set_cache_pipeline
Batch writes with the same Codec boundary as ``async_set_cache`` without ``model_type``: ``BaseModel`` values become JSON-safe dicts;
litellm/proxy/common_utils/user_api_key_cache.py:411
↓ 3 callersMethodasync_set_cache_pipeline
(self, cache_list, **kwargs)
litellm/caching/s3_cache.py:178
↓ 3 callersMethodasync_set_cache_sadd
Add value to set. Parameters: - model: str, the name of the model group - value: str, the team id Returns:
litellm/proxy/hooks/dynamic_rate_limiter.py:54
↓ 3 callersMethodasync_should_run_agentic_loop
Hook to determine if agentic loop should be executed. Called after receiving response from model, before returning to user.
litellm/integrations/custom_logger.py:610
↓ 3 callersMethodasync_store_batch
( &self, entries: Vec<(ResponseCacheRequest<B::Context>, Value)>, now: Duration, )
litellm-rust/crates/cache-response/src/response.rs:272
↓ 3 callersMethodasync_store_entries
Stores entries that each carry the time they were produced, so a deferred write keeps the freshness of its original response.
litellm-rust/crates/cache-response/src/response.rs:288
↓ 3 callersMethodasync_text_to_speech_handler
Async version of the text-to-speech handler. Uses async HTTP client to make requests.
litellm/llms/custom_httpx/llm_http_handler.py:12721
↓ 3 callersMethodasync_transform_image_edit_request
( self, model, prompt, image, image_edit_optional_request_params, litellm_params, headers )
tests/unit/llms/custom_httpx/test_llm_http_handler.py:5045
↓ 3 callersMethodasync_transform_text_to_speech_response
( self, model: str, raw_response: httpx.Response, logging_obj: "LiteLLMLogging
litellm/llms/dashscope/text_to_speech/transformation.py:275
↓ 3 callersMethodasync_update_daily_reports
Store the perf by deployment in cache - Number of failed requests per deployment - Latency / output tokens per deployment
litellm/integrations/SlackAlerting/slack_alerting.py:313
↓ 3 callersMethodasync_user_created_hook
This hook is called when a new user is created on litellm Handles: - Creating an audit log for the user creation - S
litellm/proxy/hooks/user_management_event_hooks.py:33
↓ 3 callersMethodasynchronous
(native_call: NativeCall)
tests/test_litellm_rust/test_public_entries.py:169
↓ 3 callersFunctionat
(position: usize)
litellm-rust/crates/router-core/src/lookup.rs:806
↓ 3 callersMethodat
(self, instance: Instance)
tests/integration/routing/test_priority_scheduler_queue_cleanup.py:663
↓ 3 callersFunctionatomic
(scope: &Scope, kind: Kind, limit: i64, increment: i64)
litellm-rust/crates/redis-store/tests/rate_limits.rs:120
↓ 3 callersFunctionattach_go_reported_cost
(response: ModelResponse | ResponsesAPIResponse, usage: object)
litellm/llms/opencode/common_utils.py:79
↓ 3 callersMethodattach_redis_cache
( self, redis_cache: RedisCache | None = None, *, default_redis_ttl: float | None = None )
litellm/proxy/common_utils/user_api_key_cache.py:150
↓ 3 callersMethodattempt
( &self, snapshot: &RouterStateSnapshot, op: &Op, request: &Arc<RouterRequest>
litellm-rust/crates/router-core/src/call.rs:1213
↓ 3 callersMethodattempt_db_reconnect
( self, *, reason: str, timeout_seconds: float | None = None, lock_tim
litellm/proxy/db/exception_handler.py:611
↓ 3 callersFunctionattempted_retries_for_request
How many same-group retries async_function_with_retries, or a mid-stream retry, already spent on this request.
litellm/router_utils/fallback_event_handlers.py:485
↓ 3 callersFunctionattribute_branch_keys
( pulls: tuple[tuple[str, int, str, str], ...], spend: tuple[ROIBranchSpend, ...] | None )
litellm/proxy/roi_calculator/branch_spend.py:72
↓ 3 callersFunctionau
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/0_6jqgnorqxl2.js:1
↓ 3 callersFunctionaudio_data
(payload: Mapping[str, JsonValue])
tests/integration/providers/_gemini_tts_voice_support.py:229
↓ 3 callersFunctionaudio_param
(voice: JsonValue)
tests/integration/providers/_gemini_tts_voice_support.py:89
↓ 3 callersMethodauth
(self)
tests/integration/observability/test_akto_logging_only.py:229
↓ 3 callersFunctionauth_cache_invalidation_channel
(redis_cache: "RedisCache")
litellm/proxy/common_utils/auth_cache_invalidation_pubsub.py:47
↓ 3 callersFunctionauth_metadata
The key/team config the proxy resolved at auth, or ``None`` off the proxy. Read from the payload once the call closes and from ``litellm_params``
litellm/integrations/otel/model/metadata.py:372
↓ 3 callersFunctionauth_user
(user_id: str)
tests/unit/proxy/mcp_server/test_mcp_server_tool_calls_and_headers.py:3197
↓ 3 callersFunctionauthenticate_as
(resolved: UserAPIKeyAuth)
tests/unit/proxy/management/users/test_endpoints.py:33
↓ 3 callersMethodauthenticate_request
( &self, credential: &Credential, request: &Parts, )
litellm-rust/crates/gateway-auth/src/authentication.rs:138
↓ 3 callersMethodauthentication
(&self)
litellm-rust/crates/gateway-auth/src/identity.rs:94
↓ 3 callersMethodauthority
(&self)
litellm-rust/crates/gateway-auth/src/identity.rs:30
↓ 3 callersMethodauthorization_header
( &self, context: &CyberarkOperationContext, )
litellm-rust/crates/secrets-cyberark/src/secret_manager/client.rs:143
↓ 3 callersFunctionauthorize_member_auto_router_write
( *, incoming: Deployment | updateDeployment, existing: Deployment | None, user_api_key_dict:
litellm/proxy/management_helpers/auto_router_permissions.py:326
↓ 3 callersFunctionautoRouterCreationScope
(actor: ModelActor, limits: ModelCreationLimits)
ui/litellm-dashboard/src/utils/modelPermissions.ts:116
↓ 3 callersFunctionauto_reasoning_summary
The summary level the auto summary injects for a target, read from its Responses API config.
litellm/responses/utils.py:1395
↓ 3 callersFunctionauto_router_environment_reference_error
( config: Mapping[str, object] | None, user_api_key_dict: UserAPIKeyAuth )
litellm/proxy/management_helpers/auto_router_permissions.py:54
↓ 3 callersMethodavalidate_environment
( self, headers: Mapping[str, str], model: str, api_key: str | None, l
litellm/llms/azure/decisions/transformation.py:68
↓ 3 callersFunctionaverageResponseTimeMs
(totalResponseTimeMs: number, timedRequests: number)
ui/litellm-dashboard/src/components/UsagePage/utils/value_formatters.tsx:16
↓ 3 callersFunctionawait_all
(pending: Sequence[Coroutine[object, object, None]])
litellm/router_rust/invoke/walk.py:440
↓ 3 callersMethodawait_call_tool
Poll tools/call until the result is not a multi-worker registry miss. Retries only on the gateway's own cold-worker 500 shapes (Tool <name>
tests/e2e/mcp/mcp_client.py:379
↓ 3 callersFunctionawait_converged_everywhere
`await_converged` against every replica in turn, each with the full budget, so a replica that lags behind the one a write landed on is polled unti
tests/e2e/proxy_client.py:418
↓ 3 callersFunctionawait_everywhere
`_last_answer` against every replica in turn, each with the full budget, so a write counts as visible only once the last replica reflects it, and
tests/e2e/proxy_client.py:325
↓ 3 callersFunctionawait_inflight_team_membership_load
Wait for a membership load already reading the DB, so a load that read the row before a write committed cannot re-cache the old row after the writ
litellm/proxy/auth/auth_checks.py:3273
↓ 3 callersMethodawait_python
Asks the caller to await Python work and return its value or exception.
litellm-rust/crates/host-python/src/caller.rs:29
↓ 3 callersFunctionaws_event_stream_response
( events: Iterable[Mapping[str, object]], *, corrupt_last_frame: bool = False )
tests/rust-python-harness/strategies/trace_parity/fixtures.py:70
↓ 3 callersFunctionaws_params
(region: &str)
litellm-rust/crates/inference-transcription/tests/audio_transcription.rs:19
↓ 3 callersFunctionaws_signing_target
(url: str)
litellm/llms/opensearch/vector_stores/transformation.py:188
↓ 3 callersFunctionax
(e,t,n,r,l,a)
litellm/proxy/_experimental/out/_next/static/chunks/0_6jqgnorqxl2.js:1
↓ 3 callersFunctionaz
(e)
litellm/proxy/_experimental/out/_next/static/chunks/0_6jqgnorqxl2.js:1
↓ 3 callersMethodazure_deployment_image_edit_form_data
Azure OpenAI ``.../openai/deployments/{deployment}/images/edits`` routes by deployment in the URL; including ``model`` in multipart f
litellm/llms/azure/image_edit/transformation.py:15
↓ 3 callersFunctionazure_handler
(behavior: AzureBehavior = AzureBehavior())
tests/integration/observability/azure_dispatch_support.py:207
↓ 3 callersFunctionazure_ptu_capacity
The sizing row for ``model``, read as its last path segment with a dated version dropped. ``azure/gpt-4.1-2025-04-14`` and ``gpt-4.1`` both resol
litellm/llms/azure/ptu_capacity.py:81
↓ 3 callersFunctionazure_rate_limit
()
tests/integration/_support/responses_stream.py:51
↓ 3 callersFunctionazure_request
( provider: &Arc<CountingToken>, api_base: Option<&str>, api_key: Option<&str>, extra_headers:
litellm-rust/crates/inference-ocr/tests/ocr/azure_ai.rs:49
↓ 3 callersFunctionb
litellm/proxy/_experimental/out/_next/static/chunks/1a2lzi3ursud4.js:1
↓ 3 callersFunctionb
(e,t,r,n)
litellm/proxy/_experimental/out/_next/static/chunks/2cpj-79uhbkq5.js:1
↓ 3 callersFunctionbackend
(kind: str, wire_url: str)
tests/integration/routing/_reasoning_effort_levels_support.py:150
↓ 3 callersMethodbackend
(&self)
litellm-rust/crates/secrets/src/state.rs:35
↓ 3 callersFunctionbackend_serves_chat_completions
Whether the shared cost-map row lets a deployment pin ``mode: chat``. Responses-only backends (``gpt-5.1-codex``, ``o3-pro``, ``gpt-5.4-pro``) lis
litellm/responses/bridge_check.py:118
↓ 3 callersMethodbackends_called
(self)
tests/integration/routing/test_anthropic_overloaded_cooldown_owned_proxy.py:145
↓ 3 callersMethodbacklog
(self)
litellm/repositories/accounting_delivery_repository.py:130
↓ 3 callersFunctionbase_for
(test_key: str)
tests/code_coverage_tests/test_provider_cache.py:588
↓ 3 callersMethodbase_url
(self)
tests/integration/observability/test_otel_trace_response_header.py:285
↓ 3 callersMethodbatch_
(self)
litellm/proxy/utils.py:440
↓ 3 callersMethodbatch_
(self)
tests/unit/proxy/common_utils/test_reset_budget_job.py:137
↓ 3 callersMethodbatch_get_cache
( &self, keys: &[String], context: &ExactCacheContext, )
litellm-rust/crates/cache-disk/src/cache.rs:156
↓ 3 callersFunctionbatch_jsonl
(model: str)
tests/e2e/batches/test_managed_files_enforcement_e2e.py:37
↓ 3 callersFunctionbatch_line_items_object_name
batch_line_items/<finished day, UTC>/<batch id>/part-<part>.jsonl, the same name on every retry so a rewrite replaces it.
litellm/integrations/batch_line_item_objects.py:25
↓ 3 callersMethodbatches_for
(&self, client: &RedisClient)
litellm-rust/crates/redis-store/src/request.rs:135
↓ 3 callersFunctionbedrock_cache_point_ttl_supported
(model: str | None, deployment_model: str | None = None)
litellm/llms/bedrock/common_utils.py:1784
↓ 3 callersFunctionbedrock_chat_opts_into_native_structured_output
( model: str, thinking_requested: bool, custom_llm_provider: str = "bedrock", model_info: Mapp
litellm/llms/bedrock/common_utils.py:367
↓ 3 callersFunctionbedrock_cleaned_output_schema
( model: str, schema: Mapping[str, object], custom_llm_provider: str = "bedrock" )
litellm/llms/bedrock/common_utils.py:584
↓ 3 callersFunctionbedrock_converse_supports_strict_tools
Whether ``toolSpec.strict`` can be forwarded to Bedrock Converse for ``model``. Non-Anthropic Bedrock families (Nova, Llama, GPT-OSS) reject
litellm/llms/bedrock/common_utils.py:1802
↓ 3 callersFunctionbedrock_event_stream_header
(headers: Mapping[str, object], name: str)
litellm/llms/bedrock/common_utils.py:2464
↓ 3 callersFunctionbedrock_invoke_guardrail_headers
(raw_guardrail_config: object)
litellm/llms/bedrock/chat/invoke_transformations/base_invoke_transformation.py:82
↓ 3 callersFunctionbedrock_mantle_chat_config
(model: str)
litellm/llms/bedrock_mantle/chat/claude_transformation.py:30
↓ 3 callersFunctionbedrock_model_is_unknown
(model: str)
litellm/llms/bedrock/common_utils.py:1849
↓ 3 callersFunctionbedrock_native_output_format
( model: str, output_format: Mapping[str, object], custom_llm_provider: str = "bedrock", model
litellm/llms/bedrock/common_utils.py:611
↓ 3 callersFunctionbedrock_native_output_retry_requested
( model: str, optional_params: Mapping[str, object], custom_llm_provider: str = "bedrock", mod
litellm/llms/bedrock/common_utils.py:538
↓ 3 callersFunctionbedrock_passthrough_error_response
Run the shared error handling for a Bedrock passthrough request, then answer a guardrail block, an error Bedrock returned, or an error carrying an
litellm/proxy/pass_through_endpoints/llm_passthrough_endpoints.py:1280
↓ 3 callersFunctionbedrock_rejects_stop_sequences
Whether AWS refuses stop sequences for this model on every Bedrock route. Grok and GPT 5.6 and newer answer ``stopSequences`` on Converse and ``s
litellm/llms/bedrock/common_utils.py:1306
↓ 3 callersFunctionbedrock_response
()
litellm-rust/crates/inference-chat/tests/request.rs:51
↓ 3 callersMethodbedrock_scans
(self, guardrail: str, marker: str)
tests/integration/observability/test_bedrock_invoke_stream_post_call_guardrail.py:231
↓ 3 callersFunctionbedrock_supports_tool_search
Whether Bedrock InvokeModel admits the ``tool_search_tool_*`` tool types on ``model``. Backed by the ``supports_tool_search`` flag in ``mode
litellm/llms/bedrock/common_utils.py:1749
↓ 3 callersFunctionbedrock_texts
(request: Request)
tests/integration/observability/test_bedrock_converse_stream_post_call_guardrail.py:147
↓ 3 callersMethodbefore_provider_request
( &self, wire: WireRequest, context: RequestContext, )
litellm-rust/crates/host-http/tests/serve.rs:154
↓ 3 callersMethodbelongs_to
(self, router: "Router")
litellm/router_api.py:1561
↓ 3 callersFunctionbeta_header
(headers: Mapping[str, str])
tests/integration/messages_endpoint/test_beta_gated_fields_wire.py:149
↓ 3 callersFunctionbeta_headers_config
()
litellm-rust/crates/llms-types/src/providers/anthropic/beta.rs:512
↓ 3 callersMethodbetween
(e,t,n)
litellm/proxy/_experimental/out/_next/static/chunks/085r5ieqhajig.js:1
↓ 3 callersFunctionbilled_once
(rig: Rig, key: str, received: Streamed)
tests/integration/streaming/test_mid_stream_fallback_continuation.py:481
↓ 3 callersFunctionbl
(s,o,i,a,u,_,w,x,C)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 3 callersFunctionbody
(model: str, kind: str, index: int)
tests/integration/providers/test_gemini_embedding_file_block_chaos.py:44
↓ 3 callersFunctionbody
(message_count: int)
tests/integration/observability/test_langfuse_otel_metadata_destinations.py:176
↓ 3 callersFunctionbody
()
tests/unit/proxy/test_common_request_processing.py:11307
↓ 3 callersFunctionbody
(value: Value)
litellm-rust/crates/inference-messages/tests/messages/main.rs:38
↓ 3 callersMethodbody
(self, marker: str, cache: Mapping[str, JsonValue])
tests/integration/caching/test_in_memory_cache_heap_bound.py:180
↓ 3 callersMethodbody_bytes
(self)
tests/rust-python-harness/shared/parity/recorded_http.py:38
↓ 3 callersFunctionbody_of
(response: httpx.Response)
tests/integration/providers/test_vertex_credentials_source_wire.py:92
← previousnext →26,101–26,200 of 202,479, ranked by callers