MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions86,368 in github.com/BerriAI/litellm

↓ 33 callersMethoddone
()
litellm/proxy/_experimental/out/_next/static/chunks/42gio3rky08u5.js:7
↓ 33 callersFunctionel
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/3t4iumhktznmc.js:1
↓ 33 callersMethodformat
(self, record)
litellm/proxy/_logging.py:20
↓ 33 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:8666
↓ 33 callersFunctionget_policy_registry
Get the global PolicyRegistry singleton. Returns: The global PolicyRegistry instance
litellm/proxy/policy_engine/policy_registry.py:1051
↓ 33 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:345
↓ 33 callersFunctionmake_kwargs
Build a minimal kwargs dict representative of a litellm callback invocation.
tests/test_litellm/integrations/newrelic/test_newrelic.py:54
↓ 33 callersMethodmap_openai_params
( self, non_default_params: dict, optional_params: dict, model: str, d
litellm/llms/anthropic/chat/transformation.py:1392
↓ 33 callersFunctionreserve_budget_for_request
( request_body: dict, route: str, llm_router: Router | None, valid_token: UserAPIKeyAuth | Non
litellm/proxy/spend_tracking/budget_reservation.py:147
↓ 33 callersFunctionroute_request
Common helper to route the request
litellm/proxy/route_llm_request.py:316
↓ 33 callersMethodset_cache
(self, key, value, **kwargs)
tests/test_litellm/proxy/test_redis_auth_cache_flag.py:35
↓ 33 callersMethodtoArray
()
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 33 callersFunctiontoken_counter
The same as `litellm.litellm_core_utils.token_counter`. Kept for backwards compatibility.
litellm/utils.py:2073
↓ 33 callersMethodtransform_request
( self, model: str, messages: list[AllMessageValues], optional_params: dict,
litellm/llms/bedrock/chat/converse_transformation.py:1647
↓ 33 callersMethodunshift
(e)
litellm/proxy/_experimental/out/_next/static/chunks/3ytz29phknzsy.js:1
↓ 33 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:590
↓ 32 callersFunction_armor_response
(blocked: bool)
tests/test_litellm/proxy/guardrails/guardrail_hooks/test_model_armor.py:2406
↓ 32 callersFunction_make_single_compress_response
( compressed_context: str = "compressed summary", original_tokens: int = 1000, compressed_tokens:
tests/test_litellm/proxy/guardrails/guardrail_hooks/test_compresr.py:73
↓ 32 callersMethod_patch
(self, *, teams_by_id, user_teams=None, orgs_by_id=None)
tests/test_litellm/proxy/_experimental/mcp_server/auth/test_user_api_key_auth_mcp.py:6730
↓ 32 callersFunction_serve
(query_raw, rows: list[dict[str, Any]], total: int | None = None)
tests/test_litellm/proxy/management_endpoints/management_v1/test_budgets.py:83
↓ 32 callersMethodaclose
(self)
tests/test_litellm/proxy/test_proxy_server.py:6390
↓ 32 callersMethodaddObserver
(e)
litellm/proxy/_experimental/out/_next/static/chunks/20mvgyvrlrdla.js:1
↓ 32 callersFunctioncloneDeep
(s,o={})
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 32 callersMethodcreate
Create a new credential. Args: credential_name (str): Name of the credential credential_info (Dict[str, Any]
litellm/proxy/client/credentials.py:67
↓ 32 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:825
↓ 32 callersFunctionencode
Return a urlsafe-base64 managed ID string (trailing ``=`` stripped).
litellm/proxy/pass_through_endpoints/managed_id_codec.py:40
↓ 32 callersMethodevaluate
(s,o)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 32 callersMethodfind_unique
( self, where: Mapping[str, object], )
litellm/proxy/management_endpoints/ui_sso.py:175
↓ 32 callersMethodmodel_dump
(self)
tests/test_litellm/llms/azure/test_azure_fine_tuning_api.py:27
↓ 32 callersFunctionn
()
litellm/proxy/_experimental/out/_next/static/chunks/3ytz29phknzsy.js:1
↓ 32 callersMethodok
(self)
tests/e2e/e2e_http.py:171
↓ 32 callersMethodrun
(self, code)
tests/test_litellm/llms/litellm_proxy/test_sandbox_executor.py:35
↓ 32 callersMethodsend
(self, text: str)
litellm/rust_bridge/responses_websocket.py:65
↓ 32 callersMethodset_cache
(self, key, value, **kwargs)
litellm/caching/s3_cache.py:63
↓ 32 callersMethodtoRgbString
()
litellm/proxy/_experimental/out/_next/static/chunks/3fzya67r1y1fl.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 callersFunctiontv
(e,t,n)
litellm/proxy/_experimental/out/_next/static/chunks/367xbj6_12vhd.js:1
↓ 32 callersMethodunregister
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 32 callersFunctionuser_api_key_auth
(request: Request, api_key: str)
tests/proxy_unit_tests/test_configs/custom_auth.py:9
↓ 31 callersFunction_check_and_merge_model_level_guardrails
Check if the model has guardrails defined and merge them with existing guardrails in the request data. Args: data: The request data
litellm/proxy/utils.py:6029
↓ 31 callersFunction_make_guardrail
(**kwargs)
tests/test_litellm/proxy/guardrails/guardrail_hooks/test_compresr.py:62
↓ 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 callersFunction_mock_response
(action: str, turn_id: str = "turn-1", schema_version: str = "1", **extra)
tests/test_litellm/proxy/guardrails/guardrail_hooks/test_straiker.py:34
↓ 31 callersMethodget_allowed_tools_for_server
Get list of allowed tool names for a specific server based on key/team permissions. Follows same inheritance logic as get_allowed_mcp
litellm/proxy/_experimental/mcp_server/auth/user_api_key_auth_mcp.py:1861
↓ 31 callersMethodget_error_information
( original_exception: Exception | None, traceback_str: str | None = None, )
litellm/litellm_core_utils/litellm_logging.py:4947
↓ 31 callersFunctionget_model_from_request
Resolve the model(s) a request targets, for model-access and budget checks. Returns ``None`` when the request was dispatched to a user-defined pa
litellm/proxy/auth/auth_utils.py:1593
↓ 31 callersMethodmodel_dump
(self_inner)
tests/llm_translation/test_openai.py:324
↓ 31 callersFunctionr
(e)
litellm/proxy/_experimental/out/_next/static/chunks/3fzya67r1y1fl.js:1
↓ 31 callersMethodset
(self, key: str, value: bytes, ex: int)
tests/_ws_vcr.py:74
↓ 31 callersFunctionstr_to_bool
Converts a string to a boolean if it's a recognized boolean string. Returns None if the string is not a recognized boolean value. :param
litellm/secret_managers/main.py:115
↓ 31 callersFunctiont
()
litellm/proxy/_experimental/out/_next/static/chunks/2oi9nmuauh0je.js:1
↓ 31 callersFunctionu4
(e,t,r)
litellm/proxy/_experimental/out/_next/static/chunks/28hnu_qv5e_c_.js:1
↓ 31 callersMethodupdate_request_status
(self, litellm_call_id: str, status: Literal["success", "fail"])
litellm/proxy/utils.py:603
↓ 31 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:1824
↓ 30 callersFunctionK
({accessToken:e})
litellm/proxy/_experimental/out/_next/static/chunks/0u0-hzwjwlynn.js:1
↓ 30 callersMethod_bridge_delegate_server
(server_name="bridge_delegate_server", dcr_bridge=True, alias=None)
tests/test_litellm/proxy/_experimental/mcp_server/auth/test_user_api_key_auth_mcp.py:5114
↓ 30 callersFunction_build_request
( headers: Optional[Dict[str, str]] = None, *, path: str = "/mcp-rest/test/tools/list", method
tests/test_litellm/proxy/_experimental/mcp_server/test_rest_endpoints.py:31
↓ 30 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:414
↓ 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 callersMethodclose
(self)
litellm/llms/custom_httpx/http_handler.py:1164
↓ 30 callersMethodcomplete
(e,t,r)
litellm/proxy/_experimental/out/_next/static/chunks/20tbz4la9grhq.js:5
↓ 30 callersFunctione4
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/3kbpzl35w87fs.js:1
↓ 30 callersMethodget_deployment
Returns -> Deployment or None Raise Exception -> if model found in invalid format
litellm/router.py:8632
↓ 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:7903
↓ 30 callersMethodget_proxy_hook
Get a proxy hook from the proxy_hook_mapping
litellm/proxy/utils.py:557
↓ 30 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:1506
↓ 30 callersFunctionhandle_streamable_http_mcp
Handle MCP requests through StreamableHTTP.
litellm/proxy/_experimental/mcp_server/server.py:4129
↓ 30 callersMethodoff
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/42gio3rky08u5.js:7
↓ 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:710
↓ 30 callersFunctiontj
litellm/proxy/_experimental/out/_next/static/chunks/1pgh82nmoqy5j.js:3
↓ 30 callersFunctiontp
litellm/proxy/_experimental/out/_next/static/chunks/1pgh82nmoqy5j.js:3
↓ 30 callersFunctiontt
(e)
litellm/proxy/_experimental/out/_next/static/chunks/28hnu_qv5e_c_.js:1
↓ 30 callersMethodupsert
(self, where: Mapping[str, str], data: _ConfigUpsertData)
litellm/proxy/common_utils/periodic_reload_schedule.py:60
↓ 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:521
↓ 29 callersMethod_check_custom_proxy
for cloudflare ai gateway - https://github.com/BerriAI/litellm/issues/4317 Handles custom api_base for: 1. Gemini (Google AI
litellm/llms/vertex_ai/vertex_llm_base.py:602
↓ 29 callersFunction_make_wrapper
(engine_pid: int = 111, iam: bool = False)
tests/test_litellm/proxy/db/test_prisma_planned_engine_restart.py:62
↓ 29 callersMethod_mint_bridge_envelope
( cls, *, key_hash=None, user_id=None, server_id="bridge-server-id",
tests/test_litellm/proxy/_experimental/mcp_server/auth/test_user_api_key_auth_mcp.py:5131
↓ 29 callersFunction_server
(**kwargs)
tests/test_litellm/proxy/_experimental/mcp_server/outbound_credentials/test_adapter.py:38
↓ 29 callersFunction_user_auth
(user_id: str = "user-a", team_id: str = "team-a")
tests/test_litellm/proxy/memory/test_memory_endpoints.py:209
↓ 29 callersMethodcheck_and_fix_namespace
Make sure each key starts with the given namespace
litellm/caching/redis_cache.py:429
↓ 29 callersFunctione3
(e)
litellm/proxy/_experimental/out/_next/static/chunks/1pgh82nmoqy5j.js:3
↓ 29 callersFunctionea
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/3t4iumhktznmc.js:1
↓ 29 callersMethodfilter_anthropic_output_schema
Filter out unsupported fields from JSON schema for Anthropic's output_format API. Anthropic's output_format doesn't support certain
litellm/llms/anthropic/chat/transformation.py:467
↓ 29 callersMethodfind_many
( self, where: Optional[Dict[str, Any]] = None, skip: Optional[int] = None, ta
tests/test_litellm/repositories/test_repositories.py:64
↓ 29 callersFunctionget_next_standardized_reset_time
Get the next standardized reset time based on the duration. All durations will reset at predictable intervals, aligned from the current time
litellm/litellm_core_utils/duration_parser.py:109
↓ 29 callersFunctioninitialize
( model=None, alias=None, api_base=None, api_version=None, debug=False, detailed_debug
litellm/proxy/proxy_server.py:7153
↓ 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:589
↓ 29 callersMethodpush
(e)
litellm/proxy/_experimental/out/_next/static/chunks/3ytz29phknzsy.js:1
↓ 29 callersMethodreset
()
litellm/proxy/_experimental/out/_next/static/chunks/2r285pkv5nnfe.js:10
↓ 29 callersMethodresolve_credentials
(self, subject: Subject, server: ServerSpec)
litellm/proxy/_experimental/mcp_server/outbound_credentials/resolver.py:134
↓ 29 callersMethodstop
(self)
tests/test_litellm/proxy/common_utils/test_config_sync_pubsub.py:823
↓ 29 callersMethodtoString
()
litellm/proxy/_experimental/out/_next/static/chunks/3fzya67r1y1fl.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 callersFunctionupdate_mcp_server
Update a new mcp server record in the db
litellm/proxy/_experimental/mcp_server/db.py:817
↓ 29 callersFunctionw
()
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 28 callersFunctionMn
(t,e,r,n)
litellm/proxy/_experimental/out/_next/static/chunks/0cz1d0mv5g_q7.js:1
↓ 28 callersFunction_plan
(query_params: Mapping[str, str], spec: ListSpec[BudgetRow, BudgetOut] | None = None)
tests/test_litellm/proxy/management_endpoints/management_v1/test_list_framework.py:120
↓ 28 callersMethodapply_guardrail
Moderate prompts (request) and responses (response); fail-open. - ``request``: evaluate the prompt via the before_prompt webhook and
litellm/integrations/rubrik.py:221
↓ 28 callersMethodasync_set_cache
(self, key, value, local_only: bool = False, **kwargs)
litellm/caching/dual_cache.py:339
↓ 28 callersMethodbackend_to_client_send_messages
(self)
litellm/litellm_core_utils/realtime_streaming.py:976
← previousnext →501–600 of 86,368, ranked by callers