MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions86,368 in github.com/BerriAI/litellm

↓ 56 callersMethodload_servers_from_config
Load the MCP Servers from the config Args: mcp_servers_config: Dictionary of MCP server configurations mcp_a
litellm/proxy/_experimental/mcp_server/mcp_server_manager.py:1520
↓ 55 callersFunctionP
({text:e})
litellm/proxy/_experimental/out/_next/static/chunks/0kzod24rqslaj.js:1
↓ 55 callersFunction_make_guardrail
( handler: FakeHandler, *, unreachable_fallback="fail_closed", api_base="https://vigil.test",
tests/test_litellm/proxy/guardrails/guardrail_hooks/test_vigil_guard.py:55
↓ 54 callersFunction_make_response
(body: dict, status_code: int = 200)
tests/test_litellm/proxy/guardrails/guardrail_hooks/test_xecguard.py:56
↓ 54 callersFunctionadd_guardrail_to_applied_guardrails_header
(request_data: dict, guardrail_name: str | None)
litellm/proxy/common_utils/callback_utils.py:472
↓ 54 callersMethodcreate
()
litellm/proxy/_experimental/out/_next/static/chunks/1pr-6n9854u49.js:1
↓ 54 callersMethoddate
(self)
litellm/proxy/management_endpoints/common_daily_activity.py:50
↓ 54 callersMethoddict
(self)
litellm/repositories/base_repository.py:21
↓ 54 callersMethodformat
()
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 54 callersFunctionget_team_object
- Check if team id in proxy Team Table - if valid, return LiteLLM_TeamTable object with defined limits - if not, then raise an error
litellm/proxy/auth/auth_checks.py:2029
↓ 54 callersMethodopen
(e)
litellm/proxy/_experimental/out/_next/static/chunks/3tt08rqvhxzib.js:1
↓ 54 callersMethodremove
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 54 callersMethodrun
(self)
litellm/timeout.py:103
↓ 54 callersMethodsetMetaProperty
(s,o)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 53 callersMethodget_custom_headers
( *, user_api_key_dict: UserAPIKeyAuth, call_id: str | None = None, model_id:
litellm/proxy/common_request_processing.py:1016
↓ 53 callersFunctionget_litellm_params
( api_key: str | None = None, force_timeout=600, azure=False, logger_fn=None, verbose=Fals
litellm/litellm_core_utils/get_litellm_params.py:68
↓ 52 callersFunctionL
(e,t,r,i)
litellm/proxy/_experimental/out/_next/static/chunks/3t4iumhktznmc.js:1
↓ 52 callersMethodapply_guardrail
( self, inputs: dict, request_data: dict, input_type: str, **kwargs )
tests/test_litellm/llms/cohere/rerank/test_rerank_guardrail_handler.py:420
↓ 52 callersMethodcopy
()
litellm/proxy/_experimental/out/_next/static/chunks/3ytz29phknzsy.js:1
↓ 52 callersFunctionfc
(e)
litellm/proxy/_experimental/out/_next/static/chunks/367xbj6_12vhd.js:1
↓ 51 callersFunctionW
()
litellm/proxy/_experimental/out/_next/static/chunks/0kzod24rqslaj.js:1
↓ 51 callersFunction_bedrock_converse_messages_pt
Converts given messages from OpenAI format to Bedrock format - Roles must alternate b/w 'user' and 'model' (same as anthropic -> merge conse
litellm/litellm_core_utils/prompt_templates/factory.py:4668
↓ 51 callersMethodasync_get_cache
( self, key, parent_otel_span: Span | None = None, local_only: bool = False,
litellm/caching/dual_cache.py:217
↓ 51 callersFunctioninit_guardrails_v2
( all_guardrails: list[dict], config_file_path: str | None = None, llm_router: Router | None = Non
litellm/proxy/guardrails/init_guardrails.py:19
↓ 51 callersFunctionmake_user_api_key_auth
()
tests/test_litellm/proxy/utils/proxy_logging/conftest.py:82
↓ 51 callersMethodupdate
(self, where=None, data=None)
tests/litellm_utils_tests/test_proxy_budget_reset.py:64
↓ 50 callersFunctionO
({message:e,isLastMessage:r,isStreaming:o,isTypingIndicator:s,mcpEvents:i})
litellm/proxy/_experimental/out/_next/static/chunks/0kzod24rqslaj.js:1
↓ 50 callersMethodembedding
(self, input: List[str], model: str, **kwargs: Any)
tests/test_litellm/router_strategy/test_auto_router.py:363
↓ 50 callersFunctiongetGlobalLitellmHeaderName
()
ui/litellm-dashboard/src/components/networking.tsx:400
↓ 50 callersMethodlabels
(self, *args, **kwargs)
tests/enterprise/litellm_enterprise/integrations/test_prometheus.py:731
↓ 50 callersMethodnon_proxy_admin_allowed_routes_check
Checks if Non Proxy Admin User is allowed to access the route
litellm/proxy/auth/route_checks.py:229
↓ 50 callersMethodrequest
(method: HttpMethod, path: string, options?: RequestOptions)
ui/litellm-dashboard/src/lib/http/client.ts:110
↓ 50 callersMethodshould_run_guardrail
Override to add debug logging.
litellm/proxy/guardrails/guardrail_hooks/grayswan/grayswan.py:140
↓ 50 callersMethodvalues
()
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 49 callersFunctionJ
litellm/proxy/_experimental/out/_next/static/chunks/3t4iumhktznmc.js:1
↓ 49 callersFunction_spec
(config)
tests/test_litellm/proxy/_experimental/mcp_server/outbound_credentials/test_resolver.py:100
↓ 49 callersMethodbody
(self)
tests/local_testing/test_http_parsing_utils.py:22
↓ 49 callersFunctioncost_per_token
Calculates the cost per token for a given model, prompt tokens, and completion tokens. Parameters: model (str): The name of the mode
litellm/cost_calculator.py:300
↓ 49 callersFunctiongenerate_mock_mcp_server_db_record
Generate a mock MCP server record from database
tests/test_litellm/proxy/management_endpoints/test_mcp_management_endpoints.py:34
↓ 49 callersMethodobserve
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/2fckmmo55b3as.js:1
↓ 49 callersFunctionserializers_value
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 49 callersMethodupdate
(self, *, where: Mapping[str, object], data: Mapping[str, object])
litellm/repositories/prisma_protocols.py:30
↓ 48 callersFunctionZ
(e,t,r)
litellm/proxy/_experimental/out/_next/static/chunks/3t4iumhktznmc.js:1
↓ 48 callersMethod_ensure_access_token
Returns auth token and project id
litellm/llms/vertex_ai/vertex_llm_base.py:574
↓ 48 callersMethodbuild_mcp_server_from_table
( self, mcp_server: LiteLLM_MCPServerTable, *, credentials_are_encrypted: bool
litellm/proxy/_experimental/mcp_server/mcp_server_manager.py:2077
↓ 48 callersMethodcreate_model
(self, model_name: str, litellm_params: LiteLLMParamsBody)
tests/e2e/llm_translation/endpoints_client.py:271
↓ 48 callersFunctioncreate_scratch_team
Raw-seed a scratch-tagged team row; returns its team_id. The target team for the team write matrices (update / member_*). Raw prisma (not POS
tests/proxy_behavior/management/conftest.py:136
↓ 48 callersMethoddelete_model
(self, model_id: str)
tests/e2e/llm_translation/endpoints_client.py:274
↓ 48 callersFunctionload_vertex_ai_credentials
()
tests/local_testing/test_amazing_vertex_completion.py:106
↓ 47 callersFunction_get_parent_otel_span_from_kwargs
( kwargs: dict | None = None, )
litellm/litellm_core_utils/core_helpers.py:259
↓ 47 callersFunction_make_admitted_subject
(user_id, *, org_id=None, own_servers=None, own_tool_perms=None)
tests/test_litellm/proxy/_experimental/mcp_server/auth/test_user_api_key_auth_mcp.py:6708
↓ 47 callersMethodasync_log_success_event
(self, kwargs, response_obj, start_time, end_time)
tests/test_litellm/integrations/arize/test_arize_utils.py:385
↓ 47 callersMethodbuild
(e,t,i)
litellm/proxy/_experimental/out/_next/static/chunks/19frz_r2jewoi.js:1
↓ 47 callersMethoddisconnect
For closing connection on server shutdown
litellm/proxy/db/base_client.py:39
↓ 47 callersFunctionembedding
( model, input=[], # Optional params dimensions: int | None = None, encoding_format: str |
litellm/main.py:5896
↓ 47 callersMethodquery_raw
(self, query: str, *args)
tests/proxy_unit_tests/test_proxy_utils.py:1576
↓ 46 callersFunction_apply_inputs
(messages: list)
tests/test_litellm/proxy/guardrails/guardrail_hooks/test_compresr.py:174
↓ 46 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:56
↓ 46 callersFunctiononClose
()
litellm/proxy/_experimental/out/_next/static/chunks/12wsfsljxg4xv.js:1
↓ 46 callersFunctionp
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 46 callersMethodr
litellm/proxy/_experimental/out/_next/static/chunks/1o0_71qcxajfu.js:1
↓ 46 callersMethodsubscribe
(e)
litellm/proxy/_experimental/out/_next/static/chunks/2q3uods7pdkez.js:2
↓ 46 callersMethodtransform_anthropic_messages_request
( self, model: str, messages: list[dict], anthropic_messages_optional_request_
litellm/llms/bedrock/messages/invoke_transformations/anthropic_claude3_transformation.py:608
↓ 45 callersFunction_prisma_client
Return a MagicMock prisma_client with async db methods.
tests/pass_through_unit_tests/test_passthrough_managed_ids.py:68
↓ 45 callersFunctionev
(e)
litellm/proxy/_experimental/out/_next/static/chunks/3t4iumhktznmc.js:1
↓ 45 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:1656
↓ 45 callersMethodmatches
(self, path: str)
litellm/proxy/_lazy_features.py:51
↓ 45 callersMethodresponses
( self, key: str, model: str, text: str, *, stream: bool = False )
tests/e2e/llm_translation/endpoints_client.py:287
↓ 45 callersMethodsearch
Sync Search handler.
litellm/llms/custom_httpx/llm_http_handler.py:1688
↓ 44 callersFunctionU
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/0u0-hzwjwlynn.js:1
↓ 44 callersFunctionV
({label:e,description:t,isEditing:s,viewContent:l,editContent:i})
litellm/proxy/_experimental/out/_next/static/chunks/0u0-hzwjwlynn.js:1
↓ 44 callersFunction_resp
(body: dict, status_code: int = 200)
tests/test_litellm/proxy/guardrails/guardrail_hooks/test_vigil_guard.py:30
↓ 44 callersMethodfind_many
( self, where: Mapping[str, object] | None = None, order: Mapping[str, str] | None = N
litellm/proxy/agent_endpoints/agent_registry.py:69
↓ 44 callersMethodget_credentials
Return a boto3.Credentials object
litellm/llms/bedrock/base_aws_llm.py:200
↓ 44 callersFunctionget_utc_datetime
()
litellm/utils.py:4825
↓ 44 callersFunctionstream_chunk_builder
( chunks: list, messages: list | None = None, start_time=None, end_time=None, logging_obj:
litellm/main.py:8442
↓ 44 callersMethodtransform_embedding_request
( self, model: str, input: AllEmbeddingInputValues, optional_params: dict,
litellm/llms/oci/embed/transformation.py:175
↓ 43 callersMethod_create_mcp_client
Create an MCPClient instance for the given server. Auth resolution (single place for all auth logic): 1. ``mcp_auth_header``
litellm/proxy/_experimental/mcp_server/mcp_server_manager.py:3155
↓ 43 callersMethodasync_get_cache
( self, key: Any, parent_otel_span: Any = None, local_only: bool = False,
litellm/proxy/common_utils/user_api_key_cache.py:86
↓ 43 callersMethodget_config
Load config file Supports reading from: - .yaml file paths - LiteLLM connected DB - GCS - S3
litellm/proxy/proxy_server.py:4281
↓ 43 callersFunctionmake_logger
Instantiate NewRelicLogger with NR agent calls mocked out.
tests/test_litellm/integrations/newrelic/test_newrelic.py:48
↓ 43 callersMethodmutate
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/2r285pkv5nnfe.js:10
↓ 43 callersMethodsign_request
( self, headers: dict, optional_params: dict, request_data: dict, api_
litellm/llms/oci/chat/transformation.py:374
↓ 42 callersFunctionY
litellm/proxy/_experimental/out/_next/static/chunks/3t4iumhktznmc.js:1
↓ 42 callersFunction_guardrail
(**overrides)
tests/test_litellm/proxy/guardrails/guardrail_hooks/test_repelloai.py:62
↓ 42 callersFunction_is_base64_encoded_unified_file_id
(b64_uid: str)
litellm/proxy/openai_files_endpoints/common_utils.py:40
↓ 42 callersFunction_make_guardrail
(**overrides)
tests/test_litellm/proxy/guardrails/guardrail_hooks/test_straiker.py:47
↓ 42 callersFunction_simple_messages
()
tests/test_litellm/llms/anthropic/experimental_pass_through/context_management/test_compact.py:49
↓ 42 callersMethodasync_post_call_streaming_iterator_hook
( self, user_api_key_dict, response, request_data )
tests/test_litellm/proxy/guardrails/test_deferred_guardrail_logging.py:847
↓ 42 callersMethoddelete_key
(self, key: str)
tests/e2e/logging/logging_client.py:288
↓ 42 callersFunctione
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/28hnu_qv5e_c_.js:1
↓ 42 callersFunctionenvelope_keys_from_master_key
Derive the envelope signing and encryption keys from the proxy master key. A memory-hard scrypt KDF (RFC 7914) over two distinct domain-label sal
litellm/proxy/_experimental/mcp_server/outbound_credentials/bridge_credentials.py:51
↓ 42 callersMethodgetMutationCache
()
litellm/proxy/_experimental/out/_next/static/chunks/19frz_r2jewoi.js:1
↓ 42 callersMethodreload
Clear the cache and re-load from GitLab.
litellm/integrations/gitlab/gitlab_prompt_manager.py:698
↓ 42 callersFunctionresponses_api_bridge_check
( model: str, custom_llm_provider: str, web_search_options: OpenAIWebSearchOptions | None = None,
litellm/main.py:982
↓ 42 callersMethodseek
(self, *args)
tests/test_litellm/llms/vertex_ai/files/test_vertex_ai_files_streaming.py:210
↓ 42 callersMethodsend
(e,t,s)
litellm/proxy/_experimental/out/_next/static/chunks/42gio3rky08u5.js:30
↓ 42 callersFunctionset
(r)
litellm/proxy/_experimental/out/_next/static/chunks/3t4iumhktznmc.js:1
↓ 42 callersMethodsetState
(e)
litellm/proxy/_experimental/out/_next/static/chunks/2fckmmo55b3as.js:1
↓ 42 callersFunctionuser_api_key_auth
Parent function to authenticate user api key / jwt token.
litellm/proxy/auth/user_api_key_auth.py:2602
← previousnext →301–400 of 86,368, ranked by callers