MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 4 callersFunctionattempt_outcome
`{"ok": True, "total_tokens": int}` (an attempt's may add `"blocked": str`, `"deferred": bool` and `"tracks_usage": bool`) or `{"ok": False, "kind": s
litellm-rust/crates/python-bridge/src/router/mod.rs:1357
↓ 4 callersMethodattempt_scoped_copy
A copy with its own model_call_details, so logging one attempt of a request through it leaves the state the request's other attempts share unt
litellm/litellm_core_utils/litellm_logging.py:2732
↓ 4 callersFunctionauth
(calls: Arc<AtomicUsize>, loads: Arc<AtomicUsize>)
litellm-rust/crates/auth-gcp/src/auth.rs:171
↓ 4 callersFunctionauthTypesFor
(provider: string | null)
ui/litellm-dashboard/src/components/add_model/provider_auth_types.ts:65
↓ 4 callersMethodauth_cache
(self, settings: AuthCacheSettings)
litellm/redis/stores/connection.py:39
↓ 4 callersFunctionauth_response
(token: &str, lease_duration: u64)
litellm-rust/crates/secrets-hashicorp/tests/secret_manager/support.rs:18
↓ 4 callersMethodauthorize
( &'a self, server: &'a ServerInfo, request: Option<&'a ClientRequest>, )
litellm-rust/crates/gateway/src/auth.rs:27
↓ 4 callersMethodauthorize_jwt
Resolve and authorize JWT context; only normal admission supplies provisioning.
litellm/proxy/auth/handle_jwt.py:2594
↓ 4 callersFunctionauthorize_member_auto_router_team
( *, user_api_key_dict: UserAPIKeyAuth, team: LiteLLM_TeamTable, premium_user: bool )
litellm/proxy/management_helpers/auto_router_permissions.py:149
↓ 4 callersMethodauthorize_response_id
( self, response_id: str, user_api_key_dict: "UserAPIKeyAuth", )
litellm/proxy/hooks/responses_id_security.py:240
↓ 4 callersFunctionautoRouterListKey
(userId: string | null, userRole: string | null)
ui/litellm-dashboard/src/app/(dashboard)/hooks/models/useModels.ts:206
↓ 4 callersFunctionav
({size:e=12})
litellm/proxy/_experimental/out/_next/static/chunks/03q-w6h_lqdi1.js:1
↓ 4 callersFunctionavideo_status
Asynchronously retrieve video status from OpenAI's video API. Parameters: - `video_id` (str): The identifier of the video whose status t
litellm/videos/main.py:882
↓ 4 callersMethodawrite
(self, file_path: str, content: str)
litellm/llms/deepagents/harness/sandbox_backend.py:226
↓ 4 callersFunctionaws_signature_headers
The subset of `headers` SigV4 should cover. Python signs only these and reattaches the rest afterwards, so a forwarded client header cannot change th
litellm-rust/crates/auth-aws/src/aws.rs:541
↓ 4 callersFunctionazure_chat
(scenario: Scenario, api_base: str, *, bridged: bool = False)
tests/integration/observability/test_stream_error_alert_api_base.py:160
↓ 4 callersFunctionazure_realtime_protocol_for_client
( configured_protocol: object, *, model: str, base_model: str | None = None, realtime_mode
litellm/llms/azure/realtime/handler.py:77
↓ 4 callersFunctionb
(o)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 4 callersFunctionb
(t)
litellm/proxy/_experimental/out/_next/static/chunks/0csaxmztgrx3b.js:434
↓ 4 callersFunctionb
()
litellm/proxy/_experimental/out/_next/static/chunks/2k-fkubkt19cc.js:1
↓ 4 callersFunctionb
litellm/proxy/_experimental/out/_next/static/chunks/21sk0pnzx573q.js:1
↓ 4 callersFunctionbB
litellm/proxy/_experimental/out/_next/static/chunks/085r5ieqhajig.js:10
↓ 4 callersFunctionbackgroundResponseUpdate
( response: TimedResponse, t: TFunction = i18n.t.bind(i18n), )
ui/litellm-dashboard/src/components/chat/backgroundChat.ts:20
↓ 4 callersMethodbase
()
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 4 callersMethodbase_pre_process_non_default_params
( passed_params: dict, special_params: dict, custom_llm_provider: str, additio
litellm/utils.py:5261
↓ 4 callersMethodbase_url
(self)
tests/integration/providers/test_device_code_login_guard_wire.py:109
↓ 4 callersMethodbase_url
(self)
tests/integration/routing/test_prompt_cache_pin_ttl.py:113
↓ 4 callersFunctionbaseline_request
( kwargs: Mapping[str, object], caller: Mapping[str, JsonValue], deployment: Mapping[str, object],
litellm/router_strategy/auto_router/baseline_request.py:119
↓ 4 callersMethodbatch_get_counts
(self, key_list: list[str])
tests/unit/router_strategy/test_least_busy.py:222
↓ 4 callersFunctionbatch_input_file
(model: str)
tests/integration/spend/test_batch_completion_accounting.py:147
↓ 4 callersFunctionbatch_line_item_parts
Pair every output and error line with the input line that shares its custom_id, priced one line at a time, in parts that each close once their raw
litellm/batches/batch_line_items.py:75
↓ 4 callersFunctionbatch_routes
(model: str)
tests/integration/spend/test_batch_completion_accounting.py:71
↓ 4 callersFunctionbatch_to_bytesio
Convert a sequence of UploadFiles to a list of BytesIO buffers, or None.
litellm/proxy/image_endpoints/endpoints.py:64
↓ 4 callersFunctionbe
({rows:e,summary:t,selectedId:n,layout:s,onLayoutChange:r,hideFramework:i,onSelect:a,onToggleHideFramework:o,o
litellm/proxy/_experimental/out/_next/static/chunks/085r5ieqhajig.js:10
↓ 4 callersMethodbeat
(self)
litellm/proxy/db/proxy_worker_heartbeat.py:76
↓ 4 callersFunctionbedrock_control_plane_base_url
Base URL for Bedrock control-plane calls such as model invocation jobs. A configured ``aws_bedrock_control_plane_endpoint`` (a VPC endpoint or a
litellm/llms/bedrock/common_utils.py:169
↓ 4 callersFunctionbedrock_runtime_chat_completions_is_default
Whether a model with no route prefix goes to bedrock-runtime's native Chat Completions by default. Grok (``xai.grok-*``) and GPT 5.6 and newer (`
litellm/llms/bedrock/common_utils.py:1291
↓ 4 callersFunctionbedrock_strict_tools_fallback
( model: str, optional_params: Mapping[str, object], litellm_params: Mapping[str, object] )
litellm/llms/bedrock/common_utils.py:502
↓ 4 callersFunctionbegin_authorization
( repository: ConfigRepository, config: OAuthConfig, *, install: bool = False )
litellm/proxy/roi_calculator/oauth.py:145
↓ 4 callersMethodbezierCurveTo
(e,t,r,n,i,a)
litellm/proxy/_experimental/out/_next/static/chunks/2aatum0yo4cv8.js:1
↓ 4 callersFunctionbi
(s,o,i,a)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 4 callersMethodbill_from_deployment
( self, response_id: str, track_untracked: _UntrackedResponseTracker | None = None )
litellm/proxy/response_api_endpoints/endpoints.py:1036
↓ 4 callersFunctionbilled_guardrail_cost_by_unit
Per-counter USD the daily rollup may record for one raw ``guardrail_information`` entry; None when the entry is unpriced, report-only, or malforme
litellm/litellm_core_utils/llm_cost_calc/guardrail_cost.py:56
↓ 4 callersFunctionblank
(text: str)
tests/code_coverage_tests/check_migrations_no_data_rewrites.py:286
↓ 4 callersFunctionblankQuestion
()
ui/litellm-dashboard/src/app/(dashboard)/playground/components/systemOneUI/lib/formPayload.ts:64
↓ 4 callersFunctionblitBuffer
(s,o,i,a)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 4 callersFunctionblock
(**file: JsonValue)
tests/integration/providers/test_vertex_embedding_file_block_wire.py:26
↓ 4 callersFunctionblock_model
Block a DB-stored model deployment from serving requests. Parameters: - model_id: str - The model deployment id to block.
litellm/proxy/management_endpoints/model_management_endpoints.py:2069
↓ 4 callersFunctionblock_with_cache_control
(block: object, rewrite: _CacheControlRewrite)
litellm/integrations/anthropic_cache_control_hook.py:189
↓ 4 callersFunctionblocked_responses_api_usage
Token usage for a synthetic guardrail-blocked /v1/responses reply. Same contract as ``blocked_response_usage`` in Responses API shape: a
litellm/llms/base_llm/guardrail_translation/utils.py:112
↓ 4 callersFunctionbody_document
(body: &Value)
litellm-rust/crates/llms/src/base_llm/ocr/handler.rs:280
↓ 4 callersFunctionbody_for
(target: str, model: str, marker: str)
tests/integration/providers/test_coralbricks_provider_env_wire.py:75
↓ 4 callersFunctionbody_of
(request: Request)
tests/integration/_support/bedrock_runtime_peer.py:45
↓ 4 callersMethodbody_params
The body params `module.body_params` keeps from the keywords the call would send, so each route's Python host decides which params reach the provider.
litellm-rust/crates/python-bridge/src/routes/mod.rs:99
↓ 4 callersFunctionbounded_response
( response: httpx.Response, limit: int, *, reserve: Callable[[int], None] | None = None )
litellm/tracing/remote.py:195
↓ 4 callersFunctionbt
(t)
litellm/proxy/_experimental/out/_next/static/chunks/0cz1d0mv5g_q7.js:1
↓ 4 callersFunctionbucketTotals
(series: Series)
ui/litellm-dashboard/src/app/(dashboard)/usage/_components/components/overview/overviewData.ts:185
↓ 4 callersFunctionbucketTurnsTotal
(cache: AutoRouterCacheStats)
ui/litellm-dashboard/src/app/(dashboard)/cost-optimization/_components/autoRouterBenchmarks.ts:49
↓ 4 callersMethodbudget_alerts
Send a budget alert on slack or webhook Args: type: The type of budget alert to send user_info: The user inf
litellm/integrations/SlackAlerting/slack_alerting.py:528
↓ 4 callersMethodbudget_limiter
``_core_get_router_deployment_budget_limiter``: exact type, so a proxy subclass is not taken.
litellm/router_rust/steps/callbacks.py:354
↓ 4 callersFunctionbudget_refusal_error_type
(route: str)
tests/integration/authorization/_hidden_alias_budget.py:153
↓ 4 callersFunctionbuild
(model: str, call: _Call)
tests/integration/providers/test_ollama_prompt_tools_chaos.py:351
↓ 4 callersMethodbuild
(cls, config: RouterConfig, host: PythonHost)
litellm/router_rust/core.py:1553
↓ 4 callersFunctionbuildAutoRouterTestTargets
( { tiers, semanticMatchingEnabled, embeddingModel, defaultModel, classifier }: BuildAutoRouterTestTargetsPa
ui/litellm-dashboard/src/components/add_model/build_auto_router_test_targets.ts:25
↓ 4 callersFunctionbuildCredential
(submission: CredentialSubmission, credentialValues: Record<string, unknown>)
ui/litellm-dashboard/src/components/model_add/credential_form_helpers.ts:36
↓ 4 callersFunctionbuildDefaultValue
(declared: InputSchemaProperty | undefined, overrideDefault?: unknown)
ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/toolCallArguments.ts:190
↓ 4 callersFunctionbuildFormData
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 4 callersFunctionbuildSSOSettingsPatch
( seeded: SSOSettingsFormValues, submitted: SSOSettingsFormValues, variant: SSOFormVariant, toPayload:
ui/litellm-dashboard/src/components/Settings/AdminSettings/SSOSettings/Modals/BaseSSOSettingsForm.tsx:226
↓ 4 callersFunctionbuild_all_names_per_competitor
Build canonical + variation name lists for each competitor.
litellm/proxy/management_endpoints/policy_endpoints/endpoints.py:1013
↓ 4 callersMethodbuild_block_sse_chunks
(self)
litellm/proxy/guardrails/guardrail_hooks/unified_guardrail/unified_guardrail.py:96
↓ 4 callersFunctionbuild_bridge_token_response
Seal ``grant`` for ``identity`` into the client-held bearer the token endpoint returns. The producer mirror of :func:`resolve_bridge_envelope`: a
litellm/proxy/mcp_server/outbound_credentials/bridge_credentials.py:96
↓ 4 callersFunctionbuild_client
(proxy: ProxyClient)
tests/e2e/management/management_client.py:731
↓ 4 callersFunctionbuild_comparison_blocked_words
Build blocked word entries for unfavorable competitor comparisons.
litellm/proxy/management_endpoints/policy_endpoints/endpoints.py:1095
↓ 4 callersFunctionbuild_deployment_health_states
Build a dict mapping deployment_id -> DeploymentHealthStateValue from health check endpoint results. Each endpoint dict includes a 'mode
litellm/proxy/health_check.py:734
↓ 4 callersFunctionbuild_entity_rollup_sql
(scope: DailyActivityScope, *, api_key_limit: int)
litellm/repositories/daily_activity_sql.py:230
↓ 4 callersFunctionbuild_environment_report
(*, surface: Surface, config_lines: tuple[str, ...] = ())
litellm/litellm_core_utils/bug_report.py:84
↓ 4 callersFunctionbuild_file_changes
FileChange per changed path. diff is None when it cannot be built as text.
litellm/harness/sandbox/snapshot.py:173
↓ 4 callersFunctionbuild_input_schema
Build MCP input schema from OpenAPI operation.
litellm/proxy/mcp_server/openapi_to_mcp_generator.py:463
↓ 4 callersFunctionbuild_key_page_sql
(scope: DailyActivityScope, *, offset: int, limit: int)
litellm/repositories/daily_activity_sql.py:307
↓ 4 callersFunctionbuild_list_page
Build the OpenAI-style paginated list response shape used by managed file/batch/vector-store listings. ``first_id`` and ``last_id`` are source
litellm/llms/base_llm/managed_resources/isolation.py:56
↓ 4 callersFunctionbuild_models_json
(model: str, base_url: str, thinking: PiThinkingLevel | None, info: ModelInfo | None)
litellm/llms/pi/harness/transformation.py:380
↓ 4 callersFunctionbuild_output_token_limit_response
Synthesize the length-truncated response the provider itself returns for slightly larger output budgets. The provider billed the prompt it proces
litellm/llms/openai/common_utils.py:310
↓ 4 callersFunctionbuild_pillar_response_headers
Create URL-safe Pillar response headers and apply truncation metadata.
litellm/proxy/guardrails/guardrail_hooks/pillar/pillar.py:148
↓ 4 callersFunctionbuild_query_plan
Turn query parameters into a plan, or into the problem that explains why they are not one.
litellm/proxy/list_api/list_framework.py:486
↓ 4 callersFunctionbuild_redis_usage_cache
Builds the proxy's coordination Redis client from resolved connection params. Cluster-mode targets (explicit `startup_nodes` or the REDIS
litellm/proxy/proxy_server.py:5334
↓ 4 callersFunctionbuild_selector
``_build_strategy_selector`` without registering: ``None`` for simple-shuffle and every strategy without a selector. Every least-busy selector of
litellm/router_rust/steps/selection.py:67
↓ 4 callersFunctionbuild_synthetic_response_events
( *, transformed: ResponsesAPIResponse, logging_obj: LiteLLMLoggingObj | None, chunk_size: int
litellm/responses/streaming_iterator.py:1953
↓ 4 callersMethodbuild_web_search_outcome_block
( tool_use_id: str, outcome: SearchOutcome, with_snippets: bool = True )
litellm/integrations/websearch_interception/transformation.py:487
↓ 4 callersFunctionbuilt_in_tier_classification_prompt
The classifier's system role when an operator customizes the BUILT-IN tier set's prompt. The operator owns the classification instructions and th
litellm/router_strategy/complexity_router/complexity_router.py:333
↓ 4 callersFunctionbuiltin_pass_through_routes_first
()
litellm/proxy/route_priority.py:24
↓ 4 callersFunctionbulk_user_update
Bulk update multiple users at once. This endpoint allows updating multiple users in a single request. Each user update is processed
litellm/proxy/management_endpoints/internal_user_endpoints.py:1918
↓ 4 callersFunctionburst
( base_url: str, key: str, model: str, calls: tuple[Call, ...], *, tolerate_transport_errors: bool = False
tests/integration/providers/test_coralbricks_provider_chaos.py:102
↓ 4 callersMethodburst_members
(self)
tests/integration/caching/test_response_cache_chaos.py:108
↓ 4 callersFunctionbyte_echo
Accepts with `headers` in the 101, hands the handshake head to the test, then echoes bytes.
litellm-rust/crates/gateway-forward/tests/websocket.rs:122
↓ 4 callersFunctionc
(e)
litellm/proxy/_experimental/out/_next/static/chunks/2hk8n3azev--d.js:1
↓ 4 callersFunctionc
litellm/proxy/_experimental/out/_next/static/chunks/2l8ss800ubmmh.js:1
↓ 4 callersFunctionc
()
litellm/proxy/_experimental/out/_next/static/chunks/2fy3rfrh_1i4o.js:1
↓ 4 callersFunctionc2
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/1f2vcab0yti03.js:54
↓ 4 callersFunctionc3
(e,t,s)
litellm/proxy/_experimental/out/_next/static/chunks/1f2vcab0yti03.js:54
↓ 4 callersFunctionc6
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/1f2vcab0yti03.js:54
← previousnext →19,701–19,800 of 202,479, ranked by callers