MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 4 callersMethodsupports_unified_execution
Whether this guardrail runs through the unified apply_guardrail path.
litellm/proxy/policy_engine/pipeline_executor.py:700
↓ 4 callersFunctionsweep_sink
S4: every request a sink double received; ``own_header`` may carry its own canary only.
tests/integration/security/_sweeps.py:516
↓ 4 callersMethodswitch_on_llm_response_caching
Enable caching on the router by setting cache_responses=True. This ensures caching works without needing caching=True in request body
litellm/proxy/proxy_server.py:6557
↓ 4 callersMethodsync_construct_request_headers
Construct request headers for GCS API calls
litellm/integrations/gcs_bucket/gcs_bucket_base.py:84
↓ 4 callersMethodsync_read_secret
Reads a secret from CyberArk Conjur using a sync HTTPX client. Args: secret_name: Name/path of the secret to read
litellm/secret_managers/cyberark_secret_manager.py:230
↓ 4 callersFunctionsynthesize_oci_tool_call_id
Deterministic synthetic tool-call id derived from chunk content. Used as a fallback when OCI omits ``id`` (always the case for the OCI Cohere
litellm/llms/oci/chat/generic.py:268
↓ 4 callersFunctiont
(e,a=!1)
litellm/proxy/_experimental/out/_next/static/chunks/2r8xiri7nad3g.js:1
↓ 4 callersFunctiont
(t)
litellm/proxy/_experimental/out/_next/static/chunks/218jq7ygtsrfo.js:1
↓ 4 callersFunctiont
()
litellm/proxy/_experimental/out/_next/static/chunks/3yrgf44a9g52e.js:1
↓ 4 callersFunctiont$
(e)
litellm/proxy/_experimental/out/_next/static/chunks/2j7hjtph8n74b.js:5
↓ 4 callersFunctiontJ
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/1f2vcab0yti03.js:2
↓ 4 callersFunctiontK
(e)
litellm/proxy/_experimental/out/_next/static/chunks/2aatum0yo4cv8.js:1
↓ 4 callersFunctiontO
()
litellm/proxy/_experimental/out/_next/static/chunks/0ayyip3c-drm1.js:1
↓ 4 callersFunctiontT
(e)
litellm/proxy/_experimental/out/_next/static/chunks/2j7hjtph8n74b.js:5
↓ 4 callersFunctiont_
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/0_6jqgnorqxl2.js:1
↓ 4 callersFunctiontag
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 4 callersFunctiontagInfoBody
(name string)
terraform/provider/litellm/resource_tag_test.go:13
↓ 4 callersFunctiontagged
(tag: CallTag, operation: F)
litellm-rust/crates/redis-client/src/events.rs:14
↓ 4 callersMethodtakeRecords
()
ui/litellm-dashboard/src/components/UsagePage/components/KeyActivityPanel.integration.test.tsx:49
↓ 4 callersMethodtake_finish_chunk_awaiting_usage
(self)
litellm/google_genai/adapters/transformation.py:305
↓ 4 callersMethodtake_pending
(self)
litellm/router_rust/invoke/walk.py:421
↓ 4 callersMethodtake_unbilled_usage
(self, stream_ms: int = 0)
litellm/llms/soniox/realtime/transformation.py:298
↓ 4 callersMethodtargets_called
(self)
tests/integration/routing/test_anthropic_overloaded_cooldown_owned_proxy.py:142
↓ 4 callersFunctiontc
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/2aatum0yo4cv8.js:1
↓ 4 callersMethodtcp
(host: &str, port: u16)
litellm-rust/crates/redis-types/src/endpoint.rs:41
↓ 4 callersFunctionte
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 4 callersFunctionteam_admin_key_request_or_raise
(verdict: TeamAdminKeyEditVerdict)
litellm/proxy/management_endpoints/team_admin_field_permissions.py:607
↓ 4 callersFunctionteam_info
get info on team + related keys Parameters: - team_id: str - Required. The unique identifier of the team to get info on. ``` cu
litellm/proxy/management_endpoints/team_endpoints.py:5444
↓ 4 callersFunctionteam_info
(candidate: Gateway, team: str)
tests/integration/management/test_scim_group_pathless_patch.py:46
↓ 4 callersFunctionteam_member_has_permission
Check if a non-admin team member has a specific permission on a team.
litellm/proxy/management_endpoints/common_utils.py:299
↓ 4 callersFunctionteam_member_max_budget_alert_check
( team_id: str, team_alias: str | None, team_metadata: Mapping[str, object] | None, organizati
litellm/proxy/auth/auth_checks.py:7042
↓ 4 callersFunctionteam_model_delete
Remove models from a team's allowed model list. Only proxy admin or team admin can remove models. Parameters: - team_id: str - Required.
litellm/proxy/management_endpoints/team_endpoints.py:6961
↓ 4 callersMethodteam_public_model_names_of
(self, team_id: object)
litellm/router_rust/surface/registry.py:1587
↓ 4 callersFunctionteam_servable_deployments
The deployments ``team_id`` can be served from: never one reserved for another team, and only the ones it holds a share on when it holds any.
litellm/litellm_core_utils/ptu_shares.py:227
↓ 4 callersMethodteam_wildcard
The deployments `team_id`'s own wildcard pattern routes `name` to (`_core_team_pattern_routers`, keyed by `team_public_model_name`).
litellm-rust/crates/router-core/src/lookup.rs:442
↓ 4 callersFunctionterminate
Terminate a process by pid, escalating from SIGTERM to SIGKILL if needed.
litellm/proxy/client/cli/commands/autoroute/process.py:151
↓ 4 callersMethodterminate_once
(self, blocked: Callable[[], bool], release: Callable[[], None])
tests/integration/spend/test_shutdown_flush.py:396
↓ 4 callersFunctiontext
(value: &Value)
litellm-rust/crates/redis-store/src/rate_limits/scripts.rs:197
↓ 4 callersMethodtext
A Python `str` as UTF-8. tiktoken replaces lone surrogates the way its Python `encode` does; `tokenizers` rejects them, so that backend keeps the enco
litellm-rust/crates/python-bridge/src/tokenizer.rs:522
↓ 4 callersFunctiontext_completion_prompt_to_messages
Wrap an OpenAI ``/v1/completions`` ``prompt`` into Chat Completion messages. Mirrors what ``litellm.text_completion`` does on the real-time
litellm/litellm_core_utils/prompt_templates/common_utils.py:1550
↓ 4 callersFunctiontextract_request
(model: &str, base: &str)
litellm-rust/crates/inference-ocr/tests/ocr/aws_textract.rs:18
↓ 4 callersMethodtexts
(self)
litellm/llms/bedrock/passthrough/guardrail_translation/handler.py:680
↓ 4 callersMethodthinks_by_default
(model: str, custom_llm_provider: str)
litellm/llms/anthropic/common_utils.py:1168
↓ 4 callersFunctionthompson_sample
Draw a sample from Beta(alpha, beta). Returns a quality estimate in [0, 1].
litellm/router_strategy/adaptive_router/bandit.py:78
↓ 4 callersFunctionti
(e)
litellm/proxy/_experimental/out/_next/static/chunks/2aatum0yo4cv8.js:1
↓ 4 callersMethodtiktoken
(&self)
litellm-rust/crates/python-bridge/src/tokenizer.rs:539
↓ 4 callersFunctiontimeAgo
(iso: string, t: TFunction)
ui/litellm-dashboard/src/app/(dashboard)/workflows/WorkflowRuns.tsx:97
↓ 4 callersMethodtimes
(self, num_requests: int | None)
litellm/proxy/management_endpoints/cost_tracking_settings.py:150
↓ 4 callersFunctiontimestamps
(value: JsonValue)
scripts/seed_tracing_fixtures.py:178
↓ 4 callersFunctiontls_relay
(directory: Path)
tests/integration/sdk/test_router_redis_tls_url.py:57
↓ 4 callersFunctiontn
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/2aatum0yo4cv8.js:1
↓ 4 callersFunctiontoAutoRouterRow
( deployment: AutoRouterDeployment, index: number, actor: AutoRouterActor, teams: Team[] | null, )
ui/litellm-dashboard/src/app/(dashboard)/models-and-endpoints/components/AutoRouters/autoRouterRows.ts:114
↓ 4 callersMethodtoReference
()
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 4 callersFunctiontoSearchQuery
(clauses: readonly QueryClause<F>[])
ui/litellm-dashboard/src/components/shared/search/searchQuery.ts:20
↓ 4 callersFunctionto_create_batch_body
(create_batch_data: CreateBatchRequest)
litellm/llms/xai/batches/transformation.py:247
↓ 4 callersFunctionto_json
Encodes values JSON can't, so an unusual value can't skip unreachable_fallback.
litellm/proxy/guardrails/guardrail_hooks/akto/akto.py:167
↓ 4 callersFunctionto_jsonable
(obj: object)
litellm/harness/endpoint.py:406
↓ 4 callersFunctionto_openai_batch_list
(page: XAIBatchList)
litellm/llms/xai/batches/transformation.py:236
↓ 4 callersMethodto_request_params
Return non-None fields as request params, booleans lowercased.
litellm/llms/apiserpent/search/defaults.py:51
↓ 4 callersFunctionto_seconds
Coerce a datetime / epoch / formatted-string value to epoch seconds.
litellm/integrations/otel/model/utils.py:92
↓ 4 callersFunctionto_str
`str(value)`: a string's own contents, and `repr` for every other value.
litellm-rust/crates/python-compat/src/repr.rs:30
↓ 4 callersFunctionto_unix_nanos
Langfuse v4 takes OTel timestamps, which are integer nanoseconds since the epoch. Guardrail entries carry unix seconds as floats rather than date
litellm/integrations/langfuse/langfuse_sdk.py:127
↓ 4 callersMethodtoday
(cls)
tests/unit/proxy/utils/helpers/test_month_end_projection.py:109
↓ 4 callersMethodtoken
(self, audience: str)
tests/integration/security/test_api_key_secret_reference.py:137
↓ 4 callersMethodtoken_files
(self)
tests/integration/sdk/test_device_code_login_guard_sdk.py:162
↓ 4 callersFunctiontoken_header
The upstream header this server's resolved credential occupies. One owner for every arm, so no spec builder spells the default itself and a serve
litellm/proxy/mcp_server/outbound_credentials/adapter.py:56
↓ 4 callersFunctiontoken_refresh_params_from_url
Return the params a re-minted token URL carries over from the URL it replaces. The pool and timeout params, Prisma's TLS params (already translat
litellm/proxy/db/db_url_settings.py:310
↓ 4 callersFunctiontoolKey
(tool: MCPToolsetTool)
ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/toolsetSelection.ts:10
↓ 4 callersFunctiontool_call_dict_from_output_item
Convert a ``function_call`` or ``custom_tool_call`` output item dict to a chat completions tool_call dict. Custom (grammar/freeform) tool calls ca
litellm/completion_extras/litellm_responses_transformation/transformation.py:773
↓ 4 callersFunctiontool_call_is_rebuilt_as_server_tool_use
( tool_call_id: object, provider_specific_fields: object, answered_tool_ids: Container[str] = frozenset()
litellm/llms/anthropic/common_utils.py:2569
↓ 4 callersFunctiontool_output_texts
(item: object)
litellm/llms/openai/responses/guardrail_translation/handler.py:601
↓ 4 callersFunctiontools_without_hosted_mcp
(tools: Sequence[_ToolT], model: str, route: str, drop_params: bool)
litellm/litellm_core_utils/tool_fields.py:216
↓ 4 callersFunctiontools_without_strict
(tools: object)
litellm/llms/anthropic/common_utils.py:1992
↓ 4 callersFunctiontotal_timeout_from_request
The request's ``total_timeout``: the header wins over the body field.
litellm/litellm_core_utils/total_deadline.py:83
↓ 4 callersFunctiontr
(e)
litellm/proxy/_experimental/out/_next/static/chunks/14v3irtjifjt2.js:1
↓ 4 callersMethodtrace_attributes
(trace: TraceControls, call_type: str | None = None)
litellm/integrations/otel/mappers/langfuse.py:126
↓ 4 callersFunctiontranscribe_admin_only_refusal
(operation: str, user_api_key_dict: UserAPIKeyAuth)
litellm/proxy/pass_through_endpoints/llm_provider_handlers/transcribe_passthrough_logging_handler.py:230
↓ 4 callersMethodtranscribe_passthrough_handler
( httpx_response: httpx.Response, logging_obj: LiteLLMLoggingObj, url_route: str,
litellm/proxy/pass_through_endpoints/llm_provider_handlers/transcribe_passthrough_logging_handler.py:695
↓ 4 callersFunctiontranscript
(endpoint: str, tool: str, results: tuple[str, ...], *, marked: bool = False)
tests/unit/router_strategy/switchyard_router/test_switchyard_router.py:106
↓ 4 callersFunctiontranscript
(events: tuple[ReceivedEvent, ...])
tests/e2e/llm_translation/realtime/realtime_client.py:365
↓ 4 callersFunctiontranscription_session
( *, session_id: str, model: str, sample_rate: int, language: str | None, server_vad: bool )
litellm/llms/base_llm/realtime/transcription_protocol.py:207
↓ 4 callersFunctiontranscription_stream_requested
(value: object)
litellm/litellm_core_utils/audio_utils/transcription_streaming.py:38
↓ 4 callersFunctiontransform
()
tests/unit/llms/vertex_ai/vertex_ai_partner_models/anthropic/test_vertex_ai_partner_models_anthropic_messages_config.py:892
↓ 4 callersFunctiontransform
(model: &str, msgs: Value, opts: Value)
litellm-rust/crates/llms/src/openai_like/chat/transformation.rs:321
↓ 4 callersMethodtransform
Return a normalized frame expected by downstream serializers.
litellm/integrations/focus/transformer.py:48
↓ 4 callersFunctiontransformModelData
( rawModelData: { data?: RawModel[] | null } | null | undefined, getProviderFromModel: (model: string) =>
ui/litellm-dashboard/src/app/(dashboard)/models-and-endpoints/utils/modelDataTransformer.ts:67
↓ 4 callersMethodtransform_anthropic_messages_request
( self, model: str, messages: list[dict], anthropic_messages_optional_request_
litellm/llms/vertex_ai/vertex_ai_partner_models/anthropic/messages/transformation.py:235
↓ 4 callersMethodtransform_audio_transcription_response
( &self, _model: &str, response_json: Value, )
litellm-rust/crates/llms/src/bedrock/audio_transcription/mod.rs:122
↓ 4 callersMethodtransform_cancel_interaction_request
Transform the cancel interaction request into URL and body. Returns: Tuple of (URL, request_body)
litellm/llms/base_llm/interactions/transformation.py:246
↓ 4 callersMethodtransform_chat_completion_annotations_to_response_output_annotations
( annotations: Sequence[ChatCompletionAnnotation] | None, )
litellm/responses/litellm_completion_transformation/transformation.py:3858
↓ 4 callersMethodtransform_chat_completion_tool_params_to_responses_api_tools
Transform Chat Completion tool params (e.g. from guardrail output) back to Responses API request tool format. Inverse of tran
litellm/responses/litellm_completion_transformation/transformation.py:3041
↓ 4 callersMethodtransform_container_delete_response
Transform the OpenAI container delete response.
litellm/llms/openai/containers/transformation.py:272
↓ 4 callersMethodtransform_container_list_request
Transform the container list request for OpenAI API. OpenAI API expects the following request: - GET /v1/containers
litellm/llms/openai/containers/transformation.py:181
↓ 4 callersMethodtransform_container_list_response
Transform the OpenAI container list response.
litellm/llms/openai/containers/transformation.py:214
↓ 4 callersMethodtransform_create_skill_request
Transform create skill request to provider-specific format Args: create_request: Skill creation parameters l
litellm/llms/base_llm/skills/transformation.py:78
↓ 4 callersMethodtransform_create_skill_response
Transform provider response to Skill object Args: raw_response: Raw HTTP response logging_obj: Logging objec
litellm/llms/base_llm/skills/transformation.py:97
↓ 4 callersMethodtransform_create_vector_store_file_request
( self, *, vector_store_id: str, create_request: VectorStoreFileCreateRequest,
litellm/llms/openai/vector_store_files/transformation.py:105
↓ 4 callersMethodtransform_extraction_response
( self, model: str, custom_llm_provider: str, raw_response: httpx.Response,
litellm/llms/base_llm/extraction/transformation.py:65
↓ 4 callersMethodtransform_get_interaction_response
Transform the get interaction response.
litellm/llms/base_llm/interactions/transformation.py:200
↓ 4 callersMethodtransform_image_generation_response
( self, model: str, raw_response: httpx.Response, model_response: ImageRespons
litellm/llms/azure_ai/image_generation/mai_transformation.py:309
← previousnext →21,601–21,700 of 202,479, ranked by callers