MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions86,368 in github.com/BerriAI/litellm

↓ 41 callersFunction_logging_obj
()
tests/test_litellm/proxy/guardrails/guardrail_hooks/test_straiker.py:62
↓ 41 callersMethodadd_update
Enqueue an update.
litellm/proxy/db/db_transaction_queue/base_update_queue.py:36
↓ 41 callersFunctioncreateQueryKeys
(resource: T)
ui/litellm-dashboard/src/app/(dashboard)/hooks/common/queryKeysFactory.ts:25
↓ 41 callersMethoddelete_key
(self, key: str)
tests/e2e/quota_management/budgets/budget_client.py:232
↓ 41 callersFunctionformatNumberWithCommas
( value: number | null | undefined, decimals: number = 0, abbreviate: boolean = false, showZero: boole
ui/litellm-dashboard/src/utils/dataUtils.ts:15
↓ 41 callersMethodgenerate_key
( self, *, models: list[str] | None = None, max_budget: float | None = None,
tests/e2e/quota_management/budgets/budget_client.py:203
↓ 41 callersFunctionlist
Sync: List all agents on the provider side.
litellm/interactions/agents/main.py:242
↓ 41 callersMethodlock
(e)
litellm/proxy/_experimental/out/_next/static/chunks/1pr-6n9854u49.js:1
↓ 41 callersMethodread
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 41 callersFunctiont
(e,t,r,n)
litellm/proxy/_experimental/out/_next/static/chunks/28hnu_qv5e_c_.js:1
↓ 40 callersFunction_managed_files_hook
(store_side_effect: Any = None)
tests/pass_through_unit_tests/test_passthrough_managed_ids.py:83
↓ 40 callersFunctioneE
(e,r={})
litellm/proxy/_experimental/out/_next/static/chunks/3t4iumhktznmc.js:1
↓ 40 callersMethodget_azure_openai_client
( self, api_key: str | None, api_base: str | None, api_version: str | None = N
litellm/llms/azure/common_utils.py:400
↓ 40 callersMethodmap_openai_params
( self, image_edit_optional_params: ImageEditOptionalRequestParams, model: str,
tests/test_litellm/images/test_image_edit_utils.py:17
↓ 40 callersMethodshift
()
litellm/proxy/_experimental/out/_next/static/chunks/3ytz29phknzsy.js:1
↓ 40 callersMethodtag
(self, suffix: str = "")
tests/proxy_behavior/management/conftest.py:98
↓ 39 callersMethod_ensure_access_token_async
Async version of _ensure_access_token
litellm/llms/vertex_ai/vertex_llm_base.py:1095
↓ 39 callersFunction_invalidate_model_cost_lowercase_map
Invalidate the case-insensitive lookup map for model_cost. Call this whenever litellm.model_cost is modified to ensure the map is rebuilt. Al
litellm/utils.py:4962
↓ 39 callersFunction_llm_response
Build a fake acompletion response with the given message content.
tests/test_litellm/router_strategy/test_complexity_router.py:1383
↓ 39 callersFunction_make_team
(team_id, mcp_servers, *, org_id=None, tool_perms=None, members=("sso-user",))
tests/test_litellm/proxy/_experimental/mcp_server/auth/test_user_api_key_auth_mcp.py:6694
↓ 39 callersMethod_reset_all_callbacks
Reset all callbacks to an empty list Note: this is an internal function and should be used sparingly.
litellm/litellm_core_utils/logging_callback_manager.py:331
↓ 39 callersMethodasync_set_cache
(self, *args, **kwargs)
tests/test_litellm/proxy/auth/test_resolvers_store.py:28
↓ 39 callersMethodexists
(self, *names: str)
litellm/proxy/_experimental/mcp_server/outbound_credentials/redis_distributed_lock.py:43
↓ 39 callersMethodfinally
(e)
litellm/proxy/_experimental/out/_next/static/chunks/42gio3rky08u5.js:4
↓ 39 callersMethodfind_first
( self, where: Mapping[str, object] | None = None, )
litellm/proxy/management_endpoints/ui_sso.py:180
↓ 39 callersMethodmap_openai_params
( self, non_default_params: dict, optional_params: dict, model: str, d
litellm/llms/bedrock/chat/converse_transformation.py:839
↓ 39 callersMethodmodel_dump
(self, exclude_none=True)
tests/test_litellm/integrations/test_mlflow.py:176
↓ 39 callersMethodmodel_dump
(self, mode="json", exclude_none=True)
tests/agent_tests/test_a2a_agent.py:27
↓ 39 callersFunctionto_server_spec
Map a v1 server onto a ServerSpec for a migrated mode, or None to defer to v1. BYOK is the per-user source of the ``api_key`` mode; its scheme ri
litellm/proxy/_experimental/mcp_server/outbound_credentials/adapter.py:64
↓ 38 callersFunctionF
(e)
litellm/proxy/_experimental/out/_next/static/chunks/0kzod24rqslaj.js:1
↓ 38 callersFunctionG
(e)
litellm/proxy/_experimental/out/_next/static/chunks/0kzod24rqslaj.js:23
↓ 38 callersFunctionX
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/3t4iumhktznmc.js:1
↓ 38 callersFunctionet
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/3t4iumhktznmc.js:1
↓ 38 callersMethodget_cache
Retrieves the cached result for the given arguments. Args: *args: args to litellm.completion() or embedding()
litellm/caching/caching.py:568
↓ 38 callersFunctionget_model_info
Get a dict for the maximum tokens (context window), input_cost_per_token, output_cost_per_token for a given model. Parameters: - model
litellm/utils.py:5659
↓ 38 callersMethodjson
Return JSON response data.
litellm/integrations/mock_client_factory.py:71
↓ 38 callersMethodpop
()
litellm/proxy/_experimental/out/_next/static/chunks/3ytz29phknzsy.js:1
↓ 38 callersMethodsearch
(e,t,r)
litellm/proxy/_experimental/out/_next/static/chunks/20tbz4la9grhq.js:1
↓ 38 callersMethodsend
(self, event: BaseModel)
tests/e2e/llm_translation/realtime/realtime_client.py:304
↓ 38 callersFunctionvalidate_url
Validate a user-supplied URL and rewrite it to connect to a validated IP. Resolves the hostname, checks all resolved IPs against blocked net
litellm/litellm_core_utils/url_utils.py:238
↓ 38 callersMethodvalueOf
()
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 37 callersFunctionH
(e,t,r="validate")
litellm/proxy/_experimental/out/_next/static/chunks/3t4iumhktznmc.js:1
↓ 37 callersFunctionQ
(e,t,r,n,o,u)
litellm/proxy/_experimental/out/_next/static/chunks/3t4iumhktznmc.js:1
↓ 37 callersFunction_common_key_generation_helper
( data: GenerateKeyRequest, user_api_key_dict: UserAPIKeyAuth, litellm_changed_by: str | None,
litellm/proxy/management_endpoints/key_management_endpoints.py:824
↓ 37 callersFunction_make_spend_counter_cache
( *, redis_get_value=None, redis_get_side_effect=None, redis_increment_value=None, redis_i
tests/test_litellm/proxy/proxy_server/test_spend_counters.py:34
↓ 37 callersMethodaclassify
Classify a prompt by complexity, using the LLM classifier when configured. Falls back to the local heuristic scorer if classifier_ty
litellm/router_strategy/complexity_router/complexity_router.py:917
↓ 37 callersFunctionapply_compact_20260112
Apply ``compact_20260112``; return a ``PolyfillResult``. See module docstring for the algorithm. Errors are best-effort: when the summary cal
litellm/llms/anthropic/experimental_pass_through/context_management/editors/compact.py:958
↓ 37 callersMethodapply_guardrail
(self, key: str, *, name: str, text: str)
tests/e2e/guardrails/guardrails_client.py:242
↓ 37 callersMethodclassify
Classify a prompt by complexity, discarding which rule decided the tier. Kept for callers that only need the tier and score; `_score_and_clas
litellm/router_strategy/complexity_router/complexity_router.py:733
↓ 37 callersMethodnotify
()
litellm/proxy/_experimental/out/_next/static/chunks/2q3uods7pdkez.js:2
↓ 37 callersFunctionpass_through_request
Pass through endpoint handler, makes the httpx request for pass-through endpoints and ensures logging hooks are called Args: request
litellm/proxy/pass_through_endpoints/pass_through_endpoints.py:777
↓ 37 callersMethodregister
(s,o=!0)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 37 callersMethodrerank
( self, key: str, model: str, query: str, documents: list[str], top_n: int )
tests/e2e/llm_translation/endpoints_client.py:361
↓ 36 callersFunction_make_client
(auth: UserAPIKeyAuth)
tests/test_litellm/proxy/memory/test_memory_endpoints.py:200
↓ 36 callersFunction_make_guardrail
(**overrides)
tests/test_litellm/proxy/guardrails/guardrail_hooks/test_model_armor.py:2393
↓ 36 callersFunction_make_streaming
(**kwargs)
tests/test_litellm/responses/test_responses_websocket_all_providers.py:1293
↓ 36 callersFunction_patch_prisma
Patch the endpoint module's _require_prisma to return our fake.
tests/test_litellm/proxy/memory/test_memory_endpoints.py:229
↓ 36 callersMethodfrom_standard_logging_payload
(cls, payload: StandardLoggingPayload)
litellm/integrations/otel/model/metadata.py:148
↓ 36 callersMethodget_complete_url
( self, *, api_base: str | None, model: str, optional_params: dict[str
tests/test_litellm/ocr/test_rust_bridge.py:174
↓ 36 callersFunctionget_logging_payload
(kwargs, response_obj, start_time, end_time)
litellm/proxy/spend_tracking/spend_tracking_utils.py:234
↓ 36 callersFunctionmap_finish_reason
(finish_reason: str)
litellm/litellm_core_utils/core_helpers.py:140
↓ 36 callersMethodon
(e,t,n)
litellm/proxy/_experimental/out/_next/static/chunks/2q3uods7pdkez.js:2
↓ 36 callersMethodpost_call
(self, original_response, input=None, api_key=None, additional_args=None)
litellm/types/utils.py:3778
↓ 36 callersMethodset_attributes
(self, span: Span, kwargs, response_obj: Any | None)
litellm/integrations/opentelemetry.py:2151
↓ 35 callersFunction_build_router
(routing_strategy="simple-shuffle", routing_groups=None)
tests/test_litellm/router_strategy/test_router_routing_groups.py:53
↓ 35 callersMethod_update_kwargs_with_deployment
3 jobs: - Adds selected deployment, model_info and api_base to kwargs["metadata"] (used for logging) - Adds default litellm p
litellm/router.py:3105
↓ 35 callersFunctionanthropic_messages_pt
format messages for anthropic 1. Anthropic supports roles like "user" and "assistant" (system prompt sent separately) 2. The first messag
litellm/litellm_core_utils/prompt_templates/factory.py:2342
↓ 35 callersMethodasync_set_cache
Asynchronously set cache using run_in_executor to avoid blocking the event loop. Compatible with Python 3.8+.
litellm/caching/s3_cache.py:102
↓ 35 callersMethodauth_builder
Main authentication and authorization builder
litellm/proxy/auth/handle_jwt.py:2006
↓ 35 callersFunctionbytes
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 35 callersMethodfind_many
( self, where: Mapping[str, object] | None = None, )
litellm/proxy/management_endpoints/ui_sso.py:185
↓ 35 callersMethodgetQueryCache
()
litellm/proxy/_experimental/out/_next/static/chunks/19frz_r2jewoi.js:1
↓ 35 callersMethodget_mcp_client_ip
Extract client IP from a FastAPI request for MCP access control. Security: Only trusts X-Forwarded-For if: 1. use_x_forwarde
litellm/proxy/auth/ip_address_utils.py:248
↓ 35 callersMethodget_model_info
( self, model: str, api_base: str | None = None, api_key: str | None = None,
litellm/llms/ollama/common_utils.py:219
↓ 35 callersFunctionget_server_prefix
Return the prefix for a server. When the short-prefix mode is enabled (``LITELLM_USE_SHORT_MCP_TOOL_PREFIX``) a three-character base62 ID is
litellm/proxy/_experimental/mcp_server/utils.py:260
↓ 35 callersFunctionr
(e,t,r)
litellm/proxy/_experimental/out/_next/static/chunks/28hnu_qv5e_c_.js:1
↓ 35 callersMethodretrieve_batch
( self, batch_id: str, *, key: str, provider: str | None = None )
tests/e2e/batches/batch_client.py:150
↓ 35 callersMethodsetOptions
(e)
litellm/proxy/_experimental/out/_next/static/chunks/2r285pkv5nnfe.js:10
↓ 35 callersMethodtransform_request
Translate messages to anthropic format.
litellm/llms/anthropic/chat/transformation.py:1779
↓ 34 callersFunction$
(e)
litellm/proxy/_experimental/out/_next/static/chunks/3t4iumhktznmc.js:1
↓ 34 callersMethodasync_pre_call_hook
Mock pre-call hook that raises BlockedPiiEntityError
tests/mcp_tests/test_mcp_guardrails.py:50
↓ 34 callersFunctioncall_create
( harness: Harness, *, provider: Optional[str] = None, user: Optional[UserAPIKeyAuth] = None,
tests/test_litellm/proxy/batches_endpoints/test_endpoints.py:222
↓ 34 callersFunctioner
litellm/proxy/_experimental/out/_next/static/chunks/3t4iumhktznmc.js:1
↓ 34 callersFunctionget_request_base_url
Get the base URL for the request, considering X-Forwarded-* headers. Resolution order: ``PROXY_BASE_URL`` env var, then X-Forwarded-* when
litellm/proxy/_experimental/mcp_server/oauth_utils.py:129
↓ 34 callersFunctionopen_envelope
Validate ``candidate`` and recover the identity and inner grant. Never raises for bad input: every invalid, expired, tampered, or undecryptable
litellm/proxy/_experimental/mcp_server/outbound_credentials/envelope.py:326
↓ 34 callersMethodpre_call_hook
( self, user_api_key_dict: UserAPIKeyAuth, data: None, call_type: CallTypesLit
litellm/proxy/utils.py:1321
↓ 34 callersFunctionset_body
(harness: Harness, body: Dict[str, Any])
tests/test_litellm/proxy/batches_endpoints/test_endpoints.py:218
↓ 34 callersMethodtransform_request
( self, model: str, messages: list[AllMessageValues], optional_params: dict,
litellm/llms/oci/chat/transformation.py:518
↓ 34 callersFunctionuuid4
Return a UUID4 using the selected backend.
litellm/_uuid.py:13
↓ 33 callersFunctionA
({message:e})
litellm/proxy/_experimental/out/_next/static/chunks/0kzod24rqslaj.js:23
↓ 33 callersFunctionMakeRequest
MakeRequest is a helper function to make HTTP requests
terraform/provider/litellm/utils.go:64
↓ 33 callersFunction_
()
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 33 callersFunction_bridge_mock_request
()
tests/test_litellm/proxy/_experimental/mcp_server/test_discoverable_endpoints.py:4460
↓ 33 callersFunction_get
(query: str = "")
tests/test_litellm/proxy/management_endpoints/management_v1/test_budgets.py:102
↓ 33 callersFunction_make_response
(payload: dict)
tests/test_litellm/proxy/guardrails/guardrail_hooks/test_cato_networks.py:342
↓ 33 callersFunction_request_body
()
tests/test_litellm/proxy/test_budget_reservation.py:55
↓ 33 callersFunctionacompletion
Asynchronously executes a litellm.completion() call for any of litellm supported llms (example gpt-4, gpt-3.5-turbo, claude-2, command-nightly)
litellm/main.py:388
↓ 33 callersMethodasync_get_cache
Async get cache implementation. Used for embedding calls in async wrapper
litellm/caching/caching.py:603
↓ 33 callersMethodauth_jwt
(self, token: str)
litellm/proxy/auth/handle_jwt.py:999
↓ 33 callersMethodcreate_batch
( self, *, body: BatchCreateBody, key: str, provider: str | None = None )
tests/e2e/batches/batch_client.py:141
← previousnext →401–500 of 86,368, ranked by callers