MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions71,069 in github.com/BerriAI/litellm

↓ 33 callersMethodauth_jwt
(self, token: str)
litellm/proxy/auth/handle_jwt.py:995
↓ 33 callersMethodclassify
Classify a prompt by complexity. Args: prompt: The user's prompt/message. system_prompt: Optional system pro
litellm/router_strategy/complexity_router/complexity_router.py:191
↓ 33 callersMethodfrom_standard_logging_payload
(cls, payload: "StandardLoggingPayload")
litellm/integrations/otel/model/metadata.py:147
↓ 33 callersFunctiongenerate_mock_mcp_server_config_record
Generate a mock MCP server record from config.yaml
tests/test_litellm/proxy/management_endpoints/test_mcp_management_endpoints.py:57
↓ 33 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
↓ 33 callersFunctionget_policy_registry
Get the global PolicyRegistry singleton. Returns: The global PolicyRegistry instance
litellm/proxy/policy_engine/policy_registry.py:909
↓ 33 callersFunctionmake_kwargs
Build a minimal kwargs dict representative of a litellm callback invocation.
tests/test_litellm/integrations/newrelic/test_newrelic.py:47
↓ 33 callersMethodmap_openai_params
( self, non_default_params: dict, optional_params: dict, model: str, d
litellm/llms/bedrock/chat/converse_transformation.py:844
↓ 33 callersFunctiont
(t,e,r,o,i,a)
litellm/proxy/_experimental/out/_next/static/chunks/0ys10755n8os_.js:1
↓ 33 callersFunctionuuid4
Return a UUID4 using the selected backend.
litellm/_uuid.py:13
↓ 32 callersMethodbuild
(e,t,s)
litellm/proxy/_experimental/out/_next/static/chunks/08yy42xvwaak6.js:1
↓ 32 callersFunctioncloneDeep
(s,o={})
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 32 callersFunctioneA
(e,t,n)
litellm/proxy/_experimental/out/_next/static/chunks/04jvxoid~vpxj.js:1
↓ 32 callersMethodevaluate
(s,o)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 32 callersMethodgetValue
()
litellm/proxy/_experimental/out/_next/static/chunks/0e9hs7onyj28m.js:1
↓ 32 callersMethodget_model_info
( self, model: str, api_base: Optional[str] = None, api_key: Optional[str] = N
litellm/llms/ollama/common_utils.py:219
↓ 32 callersFunctionn
()
litellm/proxy/_experimental/out/_next/static/chunks/11ibt3khr2hk3.js:1
↓ 32 callersMethodtransform_image_generation_request
Transform the image generation request to Gemini format For Gemini 2.5 Flash Image Preview, use the standard Gemini format with resp
litellm/llms/gemini/image_generation/transformation.py:110
↓ 32 callersFunctionuser_api_key_auth
(request: Request, api_key: str)
tests/proxy_unit_tests/test_configs/custom_auth.py:9
↓ 32 callersFunctionvalidate_trusted_redirect_uri
Accept ``redirect_uri`` when it is (a) same-origin with the proxy's own request origin, (b) loopback, (c) listed in the ``MCP_TRUSTED_REDIRECT
litellm/proxy/_experimental/mcp_server/oauth_utils.py:486
↓ 31 callersFunction_make_user_api_key_dict
( user_id: str = "user-123", team_id: str = "team-abc", user_email: str = "user@example.com",
tests/test_litellm/proxy/guardrails/test_mcp_jwt_signer.py:27
↓ 31 callersFunctiona$
(t,e,r)
litellm/proxy/_experimental/out/_next/static/chunks/0ys10755n8os_.js:1
↓ 31 callersFunctione3
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/0c4pfjjue0uc-.js:1
↓ 31 callersMethodget_deployment_by_model_group_name
Returns -> Deployment or None Raise Exception -> if model found in invalid format Optimized with O(1) index lookup instead
litellm/router.py:8296
↓ 31 callersFunctionget_user_object
- Check if user id in proxy User Table - if valid, return LiteLLM_UserTable object with defined limits - if not, then raise an error
litellm/proxy/auth/auth_checks.py:1579
↓ 31 callersMethodis_llm_api_route
Helper to checks if provided route is an OpenAI route Returns: - True: if route is an OpenAI route - False:
litellm/proxy/auth/route_checks.py:347
↓ 31 callersMethodmodel_dump
(self_inner)
tests/llm_translation/test_openai.py:324
↓ 31 callersFunctionr
(e)
litellm/proxy/_experimental/out/_next/static/chunks/0e9hs7onyj28m.js:1
↓ 31 callersMethodset_cache
(self, key, value, **kwargs)
litellm/caching/s3_cache.py:63
↓ 31 callersFunctionunique_marker
A short unique token per call/run, so concurrent runs and the shared response cache never collide on prompts, tags, or customer ids.
tests/e2e/e2e_config.py:31
↓ 31 callersMethodupdate_request_status
(self, litellm_call_id: str, status: Literal["success", "fail"])
litellm/proxy/utils.py:605
↓ 30 callersFunction_make_mock_response
( content: str, prompt_tokens: int = 50, completion_tokens: int = 100, )
tests/test_litellm/llms/anthropic/experimental_pass_through/context_management/test_compact.py:71
↓ 30 callersMethodasync_get_cache
Async get cache implementation. Used for embedding calls in async wrapper
litellm/caching/caching.py:606
↓ 30 callersFunctionencode
Return a urlsafe-base64 managed ID string (trailing ``=`` stripped).
litellm/proxy/pass_through_endpoints/managed_id_codec.py:40
↓ 30 callersMethodget_provider_chat_config
Returns the provider config for a given provider. Uses O(1) dictionary lookup for fast provider resolution. Python classes t
litellm/utils.py:7818
↓ 30 callersFunctionrewrite_response_ids
Mint managed IDs for raw provider values listed in ``BUILTIN_OUTPUT_ID_FIELD_MAP`` and swap them into *body*. Returns the same *body* ob
litellm/proxy/pass_through_endpoints/managed_id_rewriter.py:680
↓ 30 callersFunctiontoken_counter
The same as `litellm.litellm_core_utils.token_counter`. Kept for backwards compatibility.
litellm/utils.py:2093
↓ 30 callersMethodtransform_request
( self, model: str, messages: List[AllMessageValues], optional_params: dict,
litellm/llms/bedrock/chat/converse_transformation.py:1615
↓ 30 callersMethodupdate
(e,t,s)
litellm/proxy/_experimental/out/_next/static/chunks/0piozaeodiue..js:7
↓ 30 callersFunctionvalidate_key_mcp_servers_against_team
Validate that MCP servers requested on a key are within the allowed scope. Rules: - If key is in a team: key's mcp_servers must be a sub
litellm/proxy/management_helpers/object_permission_utils.py:495
↓ 29 callersMethodaclose
(self)
tests/test_litellm/proxy/test_proxy_server.py:5485
↓ 29 callersMethodasync_set_cache
(self, *args, **kwargs)
tests/test_litellm/proxy/auth/test_resolvers_store.py:28
↓ 29 callersMethodcheck_and_fix_namespace
Make sure each key starts with the given namespace
litellm/caching/redis_cache.py:354
↓ 29 callersMethodclient
(self)
tests/test_litellm/proxy/test_proxy_server.py:8384
↓ 29 callersMethodcreate_batch
( self, *, body: BatchCreateBody, key: str, provider: str | None = None )
tests/e2e/batches/batch_client.py:106
↓ 29 callersMethoddiscard
Pseudo-destructor to be invoked to clean up global data structures when router is no longer used. For now, unhook router's callbacks
litellm/router.py:720
↓ 29 callersFunctioner
(t,e)
litellm/proxy/_experimental/out/_next/static/chunks/03~yq9q893hmn.js:1
↓ 29 callersMethodfind_many
( self, where: Optional[Dict[str, Any]] = None, skip: Optional[int] = None, ta
tests/test_litellm/repositories/test_repositories.py:64
↓ 29 callersMethodget_error_information
( original_exception: Optional[Exception], traceback_str: Optional[str] = None, )
litellm/litellm_core_utils/litellm_logging.py:4898
↓ 29 callersMethodget_registry
Get the registered MCP Servers from the registry and union with the config MCP Servers
litellm/proxy/_experimental/mcp_server/mcp_server_manager.py:669
↓ 29 callersFunctioninitialize
( model=None, alias=None, api_base=None, api_version=None, debug=False, detailed_debug
litellm/proxy/proxy_server.py:6447
↓ 29 callersFunctioninvoke_agent_a2a
Invoke an agent using the A2A protocol (JSON-RPC 2.0). Supported methods: - message/send: Send a message and get a response - messag
litellm/proxy/agent_endpoints/a2a_endpoints.py:588
↓ 29 callersMethodmap_openai_params
( self, non_default_params: dict, optional_params: dict, model: str, d
litellm/llms/anthropic/chat/transformation.py:1367
↓ 29 callersMethodobserve
(self, *args, **kwargs)
litellm/types/integrations/prometheus.py:958
↓ 29 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:755
↓ 29 callersMethodregister
(s,o=!0)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 29 callersMethodrun
()
litellm/proxy/_experimental/out/_next/static/chunks/0ivj_wax-joap.js:1
↓ 29 callersMethodtransform_image_generation_response
Transform the image generation response to the litellm image response
litellm/llms/fal_ai/image_generation/transformation.py:70
↓ 29 callersFunctiontv
(e,t,n)
litellm/proxy/_experimental/out/_next/static/chunks/04jvxoid~vpxj.js:1
↓ 29 callersFunctionw
()
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 28 callersFunction$
(e)
litellm/proxy/_experimental/out/_next/static/chunks/15hm8gokjq2uu.js:1
↓ 28 callersFunctionD
(e)
litellm/proxy/_experimental/out/_next/static/chunks/15hm8gokjq2uu.js:1
↓ 28 callersFunctionMn
(t,e,r,n)
litellm/proxy/_experimental/out/_next/static/chunks/03~yq9q893hmn.js:1
↓ 28 callersMethod__init__
( self, message, model, llm_provider, litellm_debug_info: Optional[str
litellm/exceptions.py:331
↓ 28 callersFunction_user_auth
(user_id: str = "user-a", team_id: str = "team-a")
tests/test_litellm/proxy/memory/test_memory_endpoints.py:209
↓ 28 callersMethodbackend_to_client_send_messages
(self)
litellm/litellm_core_utils/realtime_streaming.py:966
↓ 28 callersMethodclose
(self)
litellm/llms/custom_httpx/http_handler.py:1105
↓ 28 callersFunctiondecode
Decode *managed_id*. Returns ``None`` for anything that is not a passthrough managed ID — raw OpenAI IDs, unified-endpoint IDs, garbage,
litellm/proxy/pass_through_endpoints/managed_id_codec.py:48
↓ 28 callersMethodexists
(self, *names: str)
litellm/proxy/_experimental/mcp_server/outbound_credentials/redis_distributed_lock.py:43
↓ 28 callersMethodflush
Flush the logging queue. Waits until every enqueued task has completed. ``queue.join()`` blocks on the queue's unfinished-task counte
litellm/litellm_core_utils/logging_worker.py:360
↓ 28 callersMethodget_base_completion_call_args
Must return the base completion call args
tests/llm_translation/base_llm_unit_tests.py:82
↓ 28 callersMethodget_deployment
Returns -> Deployment or None Raise Exception -> if model found in invalid format
litellm/router.py:8262
↓ 28 callersFunctionget_utc_datetime
()
litellm/utils.py:4767
↓ 28 callersMethodnotify
(e)
litellm/proxy/_experimental/out/_next/static/chunks/08yy42xvwaak6.js:1
↓ 28 callersFunctionprint_verbose
Prints the given `print_statement` to the console if `litellm.set_verbose` is True. Also logs the `print_statement` at the debug level using
litellm/proxy/utils.py:184
↓ 28 callersFunctionresolveLogoSrc
(value: string | null | undefined, root: string = serverRootPath)
ui/litellm-dashboard/src/lib/assetPaths.ts:23
↓ 28 callersFunctiont_
(e,n)
litellm/proxy/_experimental/out/_next/static/chunks/0c4pfjjue0uc-.js:1
↓ 28 callersMethodtoString
()
litellm/proxy/_experimental/out/_next/static/chunks/0e9hs7onyj28m.js:1
↓ 28 callersFunctiontoken_counter
Count the number of tokens in a given text using a specified model. Args: model (str): The name of the model to use for tokenization. De
litellm/litellm_core_utils/token_counter.py:341
↓ 28 callersMethodtransform_rerank_response
( self, model: str, raw_response: httpx.Response, model_response: RerankRespon
litellm/llms/voyage/rerank/transformation.py:79
↓ 28 callersFunctionupdate_team
Use `/team/member_add` AND `/team/member/delete` to add/remove new team members You can now update team budget / rate limits via /team/updat
litellm/proxy/management_endpoints/team_endpoints.py:1573
↓ 28 callersFunctionuseComponent
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 27 callersFunctionG
()
litellm/proxy/_experimental/out/_next/static/chunks/0zam.8alu6_vj.js:1
↓ 27 callersMethod_is_adaptive_thinking_model
Whether ``model`` uses adaptive thinking (``output_config.effort``). The model cost map is authoritative: an explicit ``supports_adaptive_thi
litellm/llms/anthropic/common_utils.py:400
↓ 27 callersFunction_make_access_group_record
( access_group_id: str = "ag-123", access_group_name: str = "test-group", description: str | None
tests/test_litellm/proxy/management_endpoints/test_access_group_endpoints.py:27
↓ 27 callersFunction_make_guardrail
(**overrides)
tests/test_litellm/proxy/guardrails/guardrail_hooks/test_model_armor.py:1856
↓ 27 callersMethod_normalize_otel_endpoint
Normalize the endpoint URL for a specific OpenTelemetry signal type. The OTLP exporters expect endpoints to use signal-specific path
litellm/integrations/opentelemetry.py:2983
↓ 27 callersMethodacquire_lock
Attempt to acquire the lock for a specific cron job using Redis. Uses the SET command with NX and EX options to ensure atomicity.
litellm/proxy/db/db_transaction_queue/pod_lock_manager.py:42
↓ 27 callersMethodapply_guardrail
Validate tool calls against the blocking service (fail-open).
litellm/integrations/rubrik.py:167
↓ 27 callersMethodasync_service_success_hook
Arize is used mainly for LLM I/O tracing, sending router+caching metrics adds bloat to arize logs
litellm/integrations/arize/arize.py:116
↓ 27 callersMethodcall_cato_guardrail
( self, data: dict, hook: str, key_alias: Optional[str], user_email: O
litellm/proxy/guardrails/guardrail_hooks/cato_networks/cato_networks.py:223
↓ 27 callersFunctione
()
litellm/proxy/_experimental/out/_next/static/chunks/0ys10755n8os_.js:1
↓ 27 callersFunctionget_end_user_id_from_request_body
(request_body: dict, request_headers: Optional[dict] = None)
litellm/proxy/auth/auth_utils.py:1144
↓ 27 callersFunctionget_logging_payload
(kwargs, response_obj, start_time, end_time)
litellm/proxy/spend_tracking/spend_tracking_utils.py:227
↓ 27 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:263
↓ 27 callersMethodlabels
(self, *args, **kwargs)
litellm/types/integrations/prometheus.py:949
↓ 27 callersMethodload
(self)
litellm/proxy/proxy_cli.py:455
↓ 27 callersMethodmodel_dump
(self)
tests/test_litellm/llms/azure/test_azure_fine_tuning_api.py:27
↓ 27 callersFunctionnew_user
Use this to create a new INTERNAL user with a budget. Internal Users can access LiteLLM Admin UI to make keys, request access to models.
litellm/proxy/management_endpoints/internal_user_endpoints.py:342
↓ 27 callersMethodpre_call_hook
( self, user_api_key_dict: UserAPIKeyAuth, data: None, call_type: CallTypesLit
litellm/proxy/utils.py:1319
← previousnext →401–500 of 71,069, ranked by callers