MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions68,180 in github.com/BerriAI/litellm

↓ 8 callersFunctionparse_databricks_oauth_config
Build a Databricks App OAuth config from an agent's ``litellm_params``. Returns ``None`` when the agent has no ``databricks_oauth`` block. Raises
litellm/proxy/agent_endpoints/databricks_oauth.py:78
↓ 8 callersFunctionpatch_proxy_general_settings
(settings: dict)
tests/test_litellm/proxy/management_endpoints/test_mcp_management_endpoints.py:143
↓ 8 callersMethodpause
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/0nnx~7-7e5t~1.js:1
↓ 8 callersMethodperform_shared_health_check
Perform health check with shared state coordination. This method: 1. First checks if there are recent cached results
litellm/proxy/health_check_utils/shared_health_check_manager.py:182
↓ 8 callersMethodpoll
Return if request can be processed. Returns: - True: * If healthy deployments are available * OR If
litellm/scheduler.py:52
↓ 8 callersFunctionpr
(t)
litellm/proxy/_experimental/out/_next/static/chunks/0ys10755n8os_.js:1
↓ 8 callersFunctionprocess_anthropic_headers
(headers: Union[httpx.Headers, dict])
litellm/llms/anthropic/common_utils.py:1014
↓ 8 callersFunctionprocess_azure_headers
(headers: Union[httpx.Headers, dict])
litellm/llms/azure/common_utils.py:45
↓ 8 callersMethodprocess_input_messages
Process input prompt by applying guardrails to text content. Args: data: Request data dictionary containing 'prompt' par
litellm/llms/openai/completion/guardrail_translation/handler.py:32
↓ 8 callersMethodprocess_openai_embedding_input
Process the input for multimodal embedding requests. Args: _input (Union[list, str]): The input data to process.
litellm/llms/vertex_ai/multimodal_embeddings/transformation.py:130
↓ 8 callersMethodprocess_output_response
( self, response: Any, guardrail_to_apply: "CustomGuardrail", litellm_logging_
litellm/llms/bedrock/passthrough/guardrail_translation/handler.py:429
↓ 8 callersMethodprocess_output_response
Process output transcription by applying guardrails to transcribed text. Args: response: Transcription response object c
litellm/llms/openai/transcriptions/guardrail_translation/handler.py:54
↓ 8 callersFunctionproperty
({propKey:s,propVal:o,propClass:i})
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 8 callersMethodqueue_size
(self)
litellm/router_strategy/adaptive_router/update_queue.py:206
↓ 8 callersFunctionr
(e)
litellm/proxy/_experimental/out/_next/static/chunks/101az3fsw7lje.js:1
↓ 8 callersMethodredact_headers_for_logging
Create a copy of headers with sensitive values redacted for safe logging. Shows first 8 characters of sensitive values for debugging
litellm/llms/databricks/common_utils.py:100
↓ 8 callersFunctionredact_oidc_signature
(secret_val)
tests/litellm_utils_tests/test_secret_manager.py:86
↓ 8 callersFunctionregister_guardrail
Register a guardrail for onboarding (team submission). Accepts a guardrail config in the [Generic Guardrail API](https://docs.litellm.ai
litellm/proxy/guardrails/guardrail_endpoints.py:621
↓ 8 callersMethodrender
()
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 8 callersMethodreset_budget_for_litellm_keys
Resets the budget for all the litellm keys Catches Exceptions and logs them
litellm/proxy/common_utils/reset_budget_job.py:426
↓ 8 callersMethodreset_budget_windows
For keys and teams with budget_limits, reset any individual windows where reset_at <= now. Only the expired windows are reset; other
litellm/proxy/common_utils/reset_budget_job.py:677
↓ 8 callersMethodresolve
(s,o)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 8 callersMethodresolve_credentials
(self, subject, server)
tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_server_manager.py:158
↓ 8 callersMethodresolve_model_name_from_model_id
Resolve model_name from model_id. This method attempts to find the correct model_name to use with the router so that litellm
litellm/router.py:9067
↓ 8 callersFunctionresolve_operation_params
Return a copy of *operation* with fully-resolved, merged parameters. Handles two common patterns in real-world OpenAPI specs: 1. **$ref para
litellm/proxy/_experimental/mcp_server/openapi_to_mcp_generator.py:191
↓ 8 callersFunctionresolve_passthrough_managed_id_provider
Map a pass-through ``custom_llm_provider`` to the provider scope that namespaces passthrough managed object IDs, or ``None`` when the route is not
litellm/llms/base_llm/managed_resources/utils.py:15
↓ 8 callersFunctionresolve_valid_user_oauth_token
Return an OAuth2 credential whose access_token is good for the next request. Returns the credential unchanged while its token is valid for at lea
litellm/proxy/_experimental/mcp_server/db.py:1108
↓ 8 callersFunctionresponse_header_check
- assert if response headers < 4kb (nginx limit).
tests/test_openai_endpoints.py:12
↓ 8 callersMethodretrieve
(self, thread_id)
tests/local_testing/test_assistants.py:225
↓ 8 callersMethodretrieve_batch
( self, _is_async: bool, retrieve_batch_data: RetrieveBatchRequest, api_key: O
litellm/llms/openai/openai.py:2037
↓ 8 callersFunctions
()
litellm/proxy/_experimental/out/_next/static/chunks/0ys10755n8os_.js:1
↓ 8 callersFunctionsanitize_openapi_tool_name
Map an OpenAPI operationId / fallback to a provider-safe tool name. Replaces any character outside ``[a-zA-Z0-9_-]`` with ``_`` and caps the
litellm/proxy/_experimental/mcp_server/openapi_to_mcp_generator.py:23
↓ 8 callersMethodset_attributes
(self, span: Span, kwargs, response_obj: Optional[Any])
litellm/integrations/arize/arize.py:66
↓ 8 callersMethodset_cache
(self, *, credentials, service_name, logging_obj)
tests/logging_callback_tests/test_langfuse_dynamic_credentials.py:105
↓ 8 callersMethodset_headers
(self, auth_header: Optional[str], extra_headers: Optional[dict])
litellm/llms/vertex_ai/vertex_llm_base.py:1111
↓ 8 callersFunctionset_request_root_span
Anchor the request's root (server) span for explicit child parenting. No-ops for a non-recordable span so a bad capture can never replace a good
litellm/integrations/otel/plumbing/context.py:33
↓ 8 callersMethodset_response_headers
Add the most accurate rate limit headers for a given model response. ## TODO: add model group rate limit headers # - if heal
litellm/router.py:8896
↓ 8 callersFunctionshouldRenderContentFilterConfigSettings
(provider: string | null)
ui/litellm-dashboard/src/components/guardrails/guardrail_info_helpers.tsx:103
↓ 8 callersMethodshould_run_guardrail
(self, data: Any, event_type: GuardrailEventHooks)
litellm/proxy/guardrails/guardrail_hooks/panw_prisma_airs/panw_prisma_airs.py:174
↓ 8 callersMethodshutdown
(self)
litellm/integrations/otel/plumbing/providers.py:94
↓ 8 callersMethodspeech
( self, model: str, input: str, voice: Optional[Union[str, dict]], opt
litellm/endpoints/speech/speech_to_completion_bridge/handler.py:78
↓ 8 callersMethodsplit_text_by_words
Split text into chunks at word boundaries without breaking words. Always returns at least one chunk. Short text (≤ max_length) is
litellm/proxy/guardrails/guardrail_hooks/azure/base.py:72
↓ 8 callersMethodstart_shutdown
Mark the worker as draining. Idempotent — repeated calls (e.g. SIGTERM followed by a preStop hit on /health/drain) do not reset the c
litellm/proxy/shutdown/graceful_shutdown_manager.py:72
↓ 8 callersFunctionstrip_empty_text_blocks_from_anthropic_messages
Return a new message list with empty or whitespace-only ``{"type": "text"}`` content blocks removed. Anthropic's API rejects requests co
litellm/llms/anthropic/common_utils.py:914
↓ 8 callersFunctiont
()
litellm/proxy/_experimental/out/_next/static/chunks/03~yq9q893hmn.js:1
↓ 8 callersMethodtransform_audio_transcription_request
( self, model: str, audio_file: FileTypes, optional_params: dict, lite
litellm/llms/base_llm/audio_transcription/transformation.py:62
↓ 8 callersMethodtransform_file_content_response
Transform file content response.
litellm/llms/manus/files/transformation.py:420
↓ 8 callersMethodtransform_image_edit_response
( self, model: str, raw_response: httpx.Response, logging_obj: LiteLLMLoggingO
litellm/llms/bedrock/image_edit/amazon_nova_canvas_image_edit_transformation.py:378
↓ 8 callersMethodtransform_request
Transform the overall request to be sent to the API. Returns: dict: The transformed request. Sent as the body of the API
litellm/llms/openrouter/chat/transformation.py:141
↓ 8 callersMethodtransform_request_body
( cls, text: str, optional_params: dict, )
litellm/llms/bedrock/image_generation/amazon_stability1_transformation.py:97
↓ 8 callersMethodtransform_response
( self, model: str, raw_response: httpx.Response, model_response: ModelRespons
litellm/llms/oci/chat/transformation.py:605
↓ 8 callersMethodtransform_response
( self, model: str, raw_response: httpx.Response, model_response: ModelRespons
litellm/llms/openai/openai.py:268
↓ 8 callersMethodtransform_response
( self, model: str, raw_response: httpx.Response, model_response: "ModelRespon
litellm/llms/github_copilot/chat/transformation.py:271
↓ 8 callersMethodtransform_retrieve_batch_response
Transform provider-specific batch retrieval response to LiteLLM format. Args: model: Model name raw_response
litellm/llms/base_llm/batches/transformation.py:182
↓ 8 callersMethodtranslate_anthropic_output_format_to_openai
Translate Anthropic's output_format to OpenAI's response_format. Anthropic output_format: {"type": "json_schema", "schema": {...}}
litellm/llms/anthropic/experimental_pass_through/adapters/transformation.py:781
↓ 8 callersMethodtranslate_streaming_completion_to_generate_content
Transform streaming litellm completion chunk to Google GenAI generate_content format Args: response: Streaming ModelResp
litellm/google_genai/adapters/transformation.py:522
↓ 8 callersMethodtranslate_tools_to_responses_api
Convert Anthropic tool definitions to Responses API function tools.
litellm/llms/anthropic/experimental_pass_through/responses_adapters/transformation.py:176
↓ 8 callersFunctiontruncate_base64_in_messages
Return a copy of *messages* with long base64 data-URI payloads replaced by human-readable size placeholders.
litellm/litellm_core_utils/logging_utils.py:127
↓ 8 callersFunctiontv
(e,t,n)
litellm/proxy/_experimental/out/_next/static/chunks/04jvxoid~vpxj.js:1
↓ 8 callersFunctionu
(e,n)
litellm/proxy/_experimental/out/_next/static/chunks/0c4pfjjue0uc-.js:1
↓ 8 callersFunctionu
()
litellm/proxy/_experimental/out/_next/static/chunks/0_9wsaj_z5w6i.js:91
↓ 8 callersFunctionuZ
(t,e)
litellm/proxy/_experimental/out/_next/static/chunks/0ys10755n8os_.js:1
↓ 8 callersFunctionuseUISettings
()
ui/litellm-dashboard/src/app/(dashboard)/hooks/uiSettings/useUISettings.ts:7
↓ 8 callersFunctionvalidate_chat_completion_tool_choice
Confirm the tool choice is passed in the OpenAI format. Prevents user errors like: https://github.com/BerriAI/litellm/issues/7483
litellm/utils.py:7392
↓ 8 callersFunctionvalidate_environment
Checks if the environment variables are valid for the given model. Args: model (Optional[str]): The name of the model. Defaults to N
litellm/utils.py:5776
↓ 8 callersFunctionvalidate_responses_api_response
Validate that a response from litellm.responses() or litellm.aresponses() conforms to the expected ResponsesAPIResponse structure. Args:
tests/llm_responses_api_testing/base_responses_api.py:33
↓ 8 callersMethodvalues
(self)
litellm/router_strategy/budget_limiter.py:75
↓ 8 callersFunctionwatsonx_proxy_route
Watsonx pass-through endpoint. Allows using Watsonx APIs with automatic IAM token management and version parameter injection. Example:
litellm/proxy/pass_through_endpoints/llm_passthrough_endpoints.py:2291
↓ 7 callersFunction$
()
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 7 callersFunction$
(e)
litellm/proxy/_experimental/out/_next/static/chunks/0.4.bbjx7y007.js:1
↓ 7 callersFunction$
(e)
litellm/proxy/_experimental/out/_next/static/chunks/0mzw3maijoev6.js:1
↓ 7 callersFunctionC
()
litellm/proxy/_experimental/out/_next/static/chunks/0.4.bbjx7y007.js:7
↓ 7 callersFunctionC
(e,t,r)
litellm/proxy/_experimental/out/_next/static/chunks/0p.6bs58-_3lw.js:1
↓ 7 callersFunctionD
(e)
litellm/proxy/_experimental/out/_next/static/chunks/0p.6bs58-_3lw.js:1
↓ 7 callersFunctionH
(e,t,r)
litellm/proxy/_experimental/out/_next/static/chunks/0p.6bs58-_3lw.js:1
↓ 7 callersFunctionLf
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 7 callersFunctionP
(t)
litellm/proxy/_experimental/out/_next/static/chunks/03~yq9q893hmn.js:1
↓ 7 callersFunctionQr
(s,o)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 7 callersFunctionR
({keywords:e,onActionChange:t,onRemove:a})
litellm/proxy/_experimental/out/_next/static/chunks/05.uhnqp00zd5.js:1
↓ 7 callersFunctionSa
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 7 callersFunctionSf
(t,e,r)
litellm/proxy/_experimental/out/_next/static/chunks/03~yq9q893hmn.js:1
↓ 7 callersFunctionT
(t,e)
litellm/proxy/_experimental/out/_next/static/chunks/0ys10755n8os_.js:1
↓ 7 callersFunctionText
({ children, ...props }: any)
ui/litellm-dashboard/src/components/UsagePage/components/UsagePageView.test.tsx:301
↓ 7 callersFunctionTf
(t)
litellm/proxy/_experimental/out/_next/static/chunks/03~yq9q893hmn.js:1
↓ 7 callersFunctionVb
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 7 callersFunctionY
(e)
litellm/proxy/_experimental/out/_next/static/chunks/00p.gft-l.6p..js:1
↓ 7 callersFunctionY
(e)
litellm/proxy/_experimental/out/_next/static/chunks/01xm1xt.gmrff.js:1
↓ 7 callersFunctionZi
(s,o,i)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 7 callersFunction_
(e)
litellm/proxy/_experimental/out/_next/static/chunks/04jvxoid~vpxj.js:1
↓ 7 callersFunction_
(t)
litellm/proxy/_experimental/out/_next/static/chunks/0ys10755n8os_.js:1
↓ 7 callersFunction_
(e)
litellm/proxy/_experimental/out/_next/static/chunks/036wlkuzplhfz.js:1
↓ 7 callersMethod_add_cache_control_if_applicable
Extract cache_control from source and add to target if it should be preserved. This method accepts Any type to support both regular
litellm/llms/anthropic/experimental_pass_through/adapters/transformation.py:288
↓ 7 callersMethod_add_router_settings_from_db_config
Adds router settings from DB config to litellm proxy 1. Get router settings from DB 2. Get router settings from config
litellm/proxy/proxy_server.py:5233
↓ 7 callersFunction_admin_auth
()
tests/test_litellm/proxy/management_endpoints/test_team_callback_endpoints.py:61
↓ 7 callersMethod_ageneric_api_call_with_fallbacks
Helper function to make a generic LLM API call through the router, this allows you to use retries/fallbacks with litellm router
litellm/router.py:4255
↓ 7 callersMethod_api_base
(api_base: str | None)
litellm/llms/opensandbox/sandbox/transformation.py:409
↓ 7 callersMethod_attr
(self, span, exporter)
tests/test_litellm/integrations/test_opentelemetry.py:5423
↓ 7 callersFunction_build_part_for_input
Build a single PartType for an input element, handling text, data URIs, file references, and GCS URLs.
litellm/llms/vertex_ai/gemini_embeddings/batch_embed_content_transformation.py:162
↓ 7 callersMethod_build_standard_logging_payload
(self, trace_id: Optional[str] = None)
tests/test_litellm/integrations/test_langfuse.py:369
↓ 7 callersFunction_build_token_row
(token: str, user_id: str, blocked: bool, metadata=None)
tests/test_litellm/proxy/management_endpoints/scim/test_scim_key_deactivation.py:28
← previousnext →2,401–2,500 of 68,180, ranked by callers