MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 4 callersFunctionget_vertex_base_url
Base URL for Vertex AI pass-through (trailing slash for URL joining). Keep location rules aligned with ``litellm.llms.vertex_ai.common_utils
litellm/proxy/pass_through_endpoints/llm_passthrough_endpoints.py:2711
↓ 4 callersMethodget_web_search_options
(kwargs: Mapping[str, object])
litellm/litellm_core_utils/llm_cost_calc/tool_call_cost_tracking.py:876
↓ 4 callersMethodget_websocket_url
Azure Responses WebSocket endpoint is at /openai/v1/responses with no api-version query param. Auth is via Authorization header, mode
litellm/llms/azure/responses/transformation.py:232
↓ 4 callersFunctionget_xai_api_base
(api_base: str | None)
litellm/llms/xai/batches/transformation.py:62
↓ 4 callersFunctiongh
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 4 callersFunctiongithub_copilot_host_endpoints
(credential_name: str)
litellm/llms/github_copilot/per_user_auth.py:198
↓ 4 callersFunctiongo_api_key
(api_key: str | None)
litellm/llms/opencode/common_utils.py:49
↓ 4 callersFunctiongo_endpoint
(model: str)
litellm/llms/opencode/common_utils.py:32
↓ 4 callersFunctiongrants
(*identities: str)
tests/integration/mcp/test_mcp_user_env_vars.py:53
↓ 4 callersFunctiongroupKey
(group: AutoRouterBenchmarkGroup)
ui/litellm-dashboard/src/app/(dashboard)/cost-optimization/_components/autoRouterBenchmarks.ts:20
↓ 4 callersFunctiongroupLabel
(group: AutoRouterBenchmarkGroup, groups: readonly AutoRouterBenchmarkGroup[])
ui/litellm-dashboard/src/app/(dashboard)/cost-optimization/_components/autoRouterBenchmarks.ts:22
↓ 4 callersFunctiongroupLabel
(label: string | null, t: TFunction)
ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/MCPGatewaySessionsTab.tsx:44
↓ 4 callersMethodgroup_by
( self, by: Sequence[str], sum: Mapping[str, bool] | None = None,
litellm/proxy/management_endpoints/tool_management_endpoints.py:89
↓ 4 callersMethodguard
Held across a read and a conditional write that `update` cannot express.
litellm-rust/crates/redis-store/src/memory.rs:84
↓ 4 callersFunctionguardrailInfoJSON
(id, name string)
terraform/provider/litellm/resource_guardrail_test.go:18
↓ 4 callersMethodguardrail_auth_for_call
( guardrail_auth: UserAPIKeyAuth | None, user_api_key_auth: UserAPIKeyAuth | None, ser
litellm/proxy/mcp_server/auth/user_api_key_auth_mcp.py:2598
↓ 4 callersFunctionguardrail_cost_total
The scalar the spend path bills: unknown-priced counters count as 0 here, the rollup keeps them unknown.
litellm/litellm_core_utils/llm_cost_calc/guardrail_cost.py:98
↓ 4 callersFunctiongzip_body
(data: bytes)
tests/integration/compatibility/test_compressed_request_bodies.py:72
↓ 4 callersFunctionh
()
litellm/proxy/_experimental/out/_next/static/chunks/1f2vcab0yti03.js:53
↓ 4 callersFunctionh6
({delta:e,initialLayout:t,itemConstraints:n,pivotIndices:s,prevLayout:r,trigger:i})
litellm/proxy/_experimental/out/_next/static/chunks/085r5ieqhajig.js:10
↓ 4 callersFunctionhB
(e)
litellm/proxy/_experimental/out/_next/static/chunks/085r5ieqhajig.js:10
↓ 4 callersFunctionhN
(e)
litellm/proxy/_experimental/out/_next/static/chunks/085r5ieqhajig.js:10
↓ 4 callersFunctionhV
({axis:e})
litellm/proxy/_experimental/out/_next/static/chunks/085r5ieqhajig.js:10
↓ 4 callersFunctionhandle
(model_id: str, request: Request, route: Literal["converse", "invoke"], stream: bool)
tests/e2e/perf/setup/mocks/mock_bedrock.py:28
↓ 4 callersFunctionhandleChange
(newValue: LoggingConfig[])
ui/litellm-dashboard/src/components/team/LoggingSettings.tsx:88
↓ 4 callersFunctionhandleJWTKeyMappingAPIResponse
(resp *http.Response, result interface{}, client *Client)
terraform/provider/litellm/resource_jwt_key_mapping_crud.go:166
↓ 4 callersFunctionhandlePayloadChange
(value: string)
ui/litellm-dashboard/src/app/(dashboard)/playground/components/systemOneUI/SystemOneUI.tsx:134
↓ 4 callersFunctionhandle_edge_request
The edge's pure core, one HTTP exchange in and out: resolve the mount prefix, then record (forward + persist) or replay (serve from the bundle).
tests/e2e/provider_edge.py:971
↓ 4 callersMethodhandle_kwargs_input_list_or_str
Handles the input of kwargs['input'] being a list or a string
litellm/caching/caching_handler.py:611
↓ 4 callersMethodhandle_logging_anthropic_collected_chunks
Takes raw chunks from Anthropic passthrough endpoint and logs them in litellm callbacks - Builds complete response from chunks
litellm/proxy/pass_through_endpoints/llm_provider_handlers/anthropic_passthrough_logging_handler.py:531
↓ 4 callersFunctionhandle_mcp_proxy_tool
( name: str, arguments: dict[str, JsonValue], # mutable-ok: MCP dispatcher passes mutable JSON call a
litellm/proxy/mcp_server/tool_search.py:591
↓ 4 callersFunctionhandle_prediction_response_streaming
( prediction_url, api_token, print_verbose, headers: dict, http_client: HTTPHandler )
litellm/llms/replicate/chat/handler.py:31
↓ 4 callersFunctionhandle_realtime_transcription_cost_calculation
Cost for realtime transcription sessions (e.g. gpt-realtime-whisper). Transcription sessions emit no `response.done` events; instead each
litellm/cost_calculator.py:4063
↓ 4 callersFunctionhandle_realtime_translation_cost_calculation
( results: OpenAIRealtimeStreamList, custom_llm_provider: str, litellm_model_name: str, deploy
litellm/cost_calculator.py:4047
↓ 4 callersMethodhandle_request
(self, request: httpx.Request)
tests/unit/llms/azure/test_azure_common_utils.py:2354
↓ 4 callersFunctionhandle_skill_search
(query: str, top_k: int, user_api_key_dict: UserAPIKeyAuth)
litellm/proxy/mcp_server/tool_search.py:508
↓ 4 callersFunctionhandle_sse_mcp
Handle MCP requests through SSE.
litellm/proxy/mcp_server/server.py:2849
↓ 4 callersMethodhandle_streaming_block
Terminate a streamed response cleanly when a guardrail blocks it. Format-agnostic routing: delegates to the provider translation han
litellm/proxy/guardrails/guardrail_hooks/unified_guardrail/unified_guardrail.py:460
↓ 4 callersFunctionhandle_update_object_permission
Handle the update of object permission for an organization. - Upserts the new object permission into the LiteLLM_ObjectPermissionTable -
litellm/proxy/management_endpoints/organization_endpoints.py:825
↓ 4 callersFunctionhandle_update_object_permission
Handle the update of object permission for a team. - IF there's no object_permission_id, then create a new entry in LiteLLM_ObjectPermission
litellm/proxy/management_endpoints/team_endpoints.py:3063
↓ 4 callersFunctionhandle_update_object_permission_common
Common logic for handling object permission updates across organizations, teams, and keys. This function: 1. Extracts `object_permission
litellm/proxy/management_helpers/object_permission_utils.py:150
↓ 4 callersMethodhandler
The handler name the host op ends in, which route capabilities and pre-routing strategies key on.
litellm/router_rust/invoke/endpoints.py:248
↓ 4 callersMethodhandler
(**arguments: object)
tests/unit/proxy/mcp_server/test_mcp_server_manager.py:20072
↓ 4 callersFunctionhandler_guard
()
litellm-rust/crates/python-bridge/src/secrets/callback.rs:143
↓ 4 callersMethodhasElement
(e)
litellm/proxy/_experimental/out/_next/static/chunks/2_9r2jeem0dh8.js:1
↓ 4 callersMethodhasNextPage
()
litellm/proxy/_experimental/out/_next/static/chunks/2hk8n3azev--d.js:1
↓ 4 callersFunctionhasRouterSettings
(settings: Record<string, unknown> | null | undefined)
ui/litellm-dashboard/src/components/common_components/routerSettingsPayload.ts:30
↓ 4 callersMethodhas_config_prompt
(self, base_prompt_id: str)
litellm/proxy/prompts/prompt_registry.py:303
↓ 4 callersFunctionhas_legacy_identity
(params: Mapping[str, object] | None)
litellm/proxy/agent_endpoints/identity.py:11
↓ 4 callersMethodhas_model_id
(self, candidate_id: str)
litellm/router_deprecated.py:368
↓ 4 callersMethodhas_post_call_response_headers_callbacks
()
litellm/proxy/utils.py:3769
↓ 4 callersMethodhas_pre_call_guardrails
(self, request_metadata)
tests/unit/proxy/openai_files_endpoint/test_batch_guardrails.py:52
↓ 4 callersMethodhas_streaming_callbacks
()
litellm/proxy/utils.py:3773
↓ 4 callersMethodhas_user_token
Whether a usable per-user token exists for this server (the preemptive 401's check). Reads from the same per-user store as the ``authorizatio
litellm/proxy/mcp_server/outbound_credentials/resolver.py:182
↓ 4 callersFunctionheaders
(pairs: &[(&str, &str)])
litellm-rust/crates/llms/src/base_llm/auth.rs:126
↓ 4 callersMethodheaders
(self, key: str | None, beta: str | None)
tests/integration/_support/safeguards_rig.py:271
↓ 4 callersFunctionhealth
()
litellm-rust/crates/router-core/src/health.rs:728
↓ 4 callersFunctionhealth_check_servers
Perform health checks on one or more MCP servers. Parameters: - server_ids: Optional list of server IDs. If not provided, ch
litellm/proxy/management_endpoints/mcp_management_endpoints.py:1527
↓ 4 callersFunctionhealth_license_endpoint
Return metadata about the configured LiteLLM license without exposing the key.
litellm/proxy/health_endpoints/_health_endpoints.py:1911
↓ 4 callersFunctionhealthy_responses_stream
(blob: str = ORDER_TWO_BLOB)
tests/integration/routing/test_fallback_hop_foreign_encrypted_reasoning.py:142
↓ 4 callersFunctionhidden
(stream: object)
tests/unit/test_router/core/test_streaming_characterization_anthropic.py:71
↓ 4 callersFunctionholds_api_key_secret_reference
(fields: Mapping[str, object])
litellm/types/router.py:502
↓ 4 callersMethodhook_messages
(self, marker: str)
tests/integration/mcp/test_mcp_llm_endpoints.py:1759
↓ 4 callersFunctionhop_request
(request_body: RequestBody, token: str)
litellm/llms/vertex_ai/gemini/long_decode.py:168
↓ 4 callersMethodhost_url
(self, port: int)
litellm/harness/sandbox/base.py:54
↓ 4 callersFunctionhttp_status_error
(status_code, url="http://test")
tests/unit/sandbox/test_opensandbox_sandbox.py:18
↓ 4 callersFunctionhydrateOssClassifier
(config: { classifier_type?: ClassifierType | "oss_classifier"; opensource_classifier_config?: unknown;
ui/litellm-dashboard/src/components/add_model/jev_classifier_config.ts:64
↓ 4 callersFunctionhydrateTierLabels
(stored: unknown)
ui/litellm-dashboard/src/components/add_model/build_complexity_router_config.ts:330
↓ 4 callersFunctionhydrate_named_credential_authoritative
The stored credential, preferring the row over this pod's in-memory copy. ``hydrate_named_credential`` reads memory first, which is right when se
litellm/proxy/common_utils/credential_hydration.py:86
↓ 4 callersFunctioni
(e)
litellm/proxy/_experimental/out/_next/static/chunks/0o0w-zlajn03j.js:1
↓ 4 callersFunctioni
litellm/proxy/_experimental/out/_next/static/chunks/03q-w6h_lqdi1.js:1
↓ 4 callersFunctionid_jag_assertion_capture_gap_at_startup
Config load runs before SSO settings stored in the database are reconciled into the process environment, so an unresolved provider at that point i
litellm/proxy/management_endpoints/sso/id_jag_assertion_capture.py:72
↓ 4 callersFunctionid_safe_name
(name: object)
litellm/types/videos/utils.py:96
↓ 4 callersMethodidentity
The label set that makes this a series of its own: the histogram bucket and the multiprocess pid are attributes of one series, not separate on
tests/integration/_support/prometheus_series.py:105
↓ 4 callersMethodidentity
`fallback_attempt_key`: a bare name and `{"model": name}` are the same attempt; a dict carrying anything else is its own.
litellm-rust/crates/router-core/src/fallback.rs:80
↓ 4 callersFunctionimage_media_type
(image: DecisionsImage)
litellm/llms/base_llm/decisions/transformation.py:247
↓ 4 callersFunctionimage_to_data_url
(image: object)
litellm/images/utils.py:191
↓ 4 callersFunctionin_flight
()
tests/unit/proxy/hooks/test_parallel_request_limiter_v3.py:1360
↓ 4 callersFunctionin_pieces
(wire: &[u8], size: usize)
litellm-rust/crates/llms/src/base_llm/messages/streaming.rs:46
↓ 4 callersFunctionincrement
(key: &str, amount: Number)
litellm-rust/crates/redis-store/src/dual_cache/mod.rs:155
↓ 4 callersMethodincrement_allowed_fails
`DualCache.async_increment_cache`: the fleet-wide fail count through `INCRBYFLOAT`. A Redis failure falls back to this router's own count.
litellm-rust/crates/redis-store/src/router_cooldowns/mod.rs:77
↓ 4 callersMethodincrement_cache
( &self, key: &str, amount: f64, context: ExactCacheContext, )
litellm-rust/crates/cache-memory/src/cache.rs:363
↓ 4 callersMethodincrement_callback_logging_failure
Increment metric when logging to a callback fails (e.g., s3_v2, langfuse, etc.)
litellm/integrations/prometheus.py:4027
↓ 4 callersMethodincrement_counter
( self, counter, labels: str, amount: float, additional_labels: list[s
litellm/integrations/prometheus_services.py:231
↓ 4 callersFunctionincrement_spend_counter_cache
(counter_key: str, increment: float)
litellm/proxy/proxy_server.py:4418
↓ 4 callersFunctioninferIdentitySource
(credentialValues: Record<string, unknown> | null | undefined)
ui/litellm-dashboard/src/components/model_add/anthropic_federation.ts:220
↓ 4 callersFunctioninfer_call_type
(call_type: CallTypesLiteral | None, completion_response: object)
litellm/cost_calculator.py:1428
↓ 4 callersMethodinfo
Get detailed information about all model groups from the server. Args: return_request (bool): If True, returns the prepa
litellm/proxy/client/model_groups.py:34
↓ 4 callersFunctioningest_callback_logs
Replay a batch of finished logging payloads through the callback fan-out. Admin-only: the payloads write spend logs and trigger every callba
litellm/proxy/logging_endpoints/callback_logs_endpoints.py:187
↓ 4 callersFunctioninheritedGrantTooltip
(grant: InheritedGrant, t: TFunction = i18n.t.bind(i18n))
ui/litellm-dashboard/src/components/permissions/inheritedGrants.ts:25
↓ 4 callersMethodinit_async_client
(self)
tests/unit/caching/test_redis_batch.py:121
↓ 4 callersMethodinit_cache_settings_in_db
Initialize cache settings from database into the router on startup. Only reinitializes if cache params have changed.
litellm/proxy/management_endpoints/cache_settings_endpoints.py:369
↓ 4 callersMethodinit_complexity_router_deployment
Register the deployment's complexity-router (``init_complexity_router_deployment``).
litellm/router_rust/surface/legacy_members.py:317
↓ 4 callersMethodinit_websearch_interception_settings_in_db
Initialize web search interception settings from database. Called periodically (approximately every 10 seconds) by background task to
litellm/proxy/proxy_server.py:9210
↓ 4 callersFunctioninitialize_bedrock
(litellm_params: LitellmParams, guardrail: Guardrail)
litellm/proxy/guardrails/guardrail_initializers.py:10
↓ 4 callersFunctioninitialize_guardrail
( litellm_params: LitellmParams, guardrail: Guardrail, guardrail_cls: type[CustomGuardrail] = Cond
litellm/proxy/guardrails/guardrail_hooks/conduct/__init__.py:19
↓ 4 callersFunctioninitialize_guardrail
(litellm_params: "LitellmParams", guardrail: "Guardrail")
litellm/proxy/guardrails/guardrail_hooks/panw_prisma_airs/__init__.py:11
↓ 4 callersFunctioninitialize_presidio
(litellm_params: LitellmParams, guardrail: Guardrail)
litellm/proxy/guardrails/guardrail_initializers.py:138
↓ 4 callersFunctioninitialize_shared_aiohttp_session
Initialize shared aiohttp session for connection reuse with connection limits.
litellm/proxy/proxy_server.py:1527
↓ 4 callersFunctioninject_mcp_jwt_headers_for_upstream
Sign outbound MCP headers when MCPJWTSigner is configured. Used by tools/list paths that do not go through proxy pre_call_hook.
litellm/proxy/guardrails/guardrail_hooks/mcp_jwt_signer/mcp_jwt_signer.py:926
← previousnext →20,501–20,600 of 202,479, ranked by callers