MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions231,079 in github.com/BerriAI/litellm

↓ 106 callersMethoddecode
(self)
litellm/llms/bedrock/common_utils.py:2611
↓ 106 callersMethodextend
(self, window: _Window, stop: float)
tests/e2e/perf/setup/podcpu.py:172
↓ 106 callersFunctionmake_handler
Factory for test handlers with standard defaults.
tests/unit/proxy/guardrails/guardrail_hooks/test_panw_prisma_airs.py:120
↓ 106 callersFunctionmessage_field
A message field, whether the message is a dict or a pydantic ``Message``. Clients replay assistant turns straight from a response, so a history m
litellm/litellm_core_utils/prompt_templates/mid_conversation_system.py:84
↓ 106 callersMethodparse
(self)
tests/integration/providers/test_provider_lookup_status.py:278
↓ 105 callersFunctionnew_marker
()
tests/integration/providers/_cache_control_marks_support.py:53
↓ 104 callersMethodacompletion
(**kwargs)
tests/unit/integrations/test_shadow_eval_logger.py:3012
↓ 104 callersFunctioninstall_live_call_probe
Activate the live-call socket probe for non-VCR-marked tests. Call this from inside the per-test autouse ``_vcr_outcome_gate`` fixture *befor
tests/_vcr_conftest_common.py:1803
↓ 104 callersMethodparse
(self)
tests/unit/llms/azure/test_azure.py:27
↓ 104 callersMethodreplace
(self, old: str, new: str, /)
litellm/llms/manus/files/transformation.py:54
↓ 103 callersFunction_marker
()
tests/integration/providers/test_malformed_tools_wire.py:96
↓ 103 callersMethodaembedding
( self, model: str, input: list, model_response: EmbeddingResponse, pr
tests/unit/llms/test_custom_llm.py:274
↓ 103 callersMethodconcat
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 103 callersFunctiondecoded_json_object
(value: object)
litellm/litellm_core_utils/core_helpers.py:221
↓ 103 callersMethodget_allowed_mcp_servers
(self, user_api_key_auth: UserAPIKeyAuth)
tests/unit/proxy/mcp_server/test_server_resolution.py:58
↓ 103 callersMethodgroup
(self, name: str, *, field: str = "info")
tests/unit/proxy/batches_endpoints/test_litellm_executed_batches.py:273
↓ 103 callersMethodpush
(&self, element: Element)
litellm/rust/crates/callbacks-s3-log/src/sink.rs:222
↓ 102 callersMethodadd_litellm_callback
Add a callback to litellm.callbacks Ensures no duplicates are added.
litellm/litellm_core_utils/logging_callback_manager.py:77
↓ 102 callersMethoddelete_model
(self, model_id: str)
tests/e2e/logging/logging_client.py:482
↓ 102 callersFunctiongenerate_mock_mcp_server_db_record
Generate a mock MCP server record from database
tests/unit/proxy/management_endpoints/test_mcp_management_endpoints.py:54
↓ 102 callersFunctionget_compiled_pattern
Get a compiled regex pattern by name. Args: pattern_name: Name of the prebuilt pattern Returns: Compiled regex pattern
litellm/proxy/guardrails/guardrail_hooks/litellm_content_filter/patterns.py:100
↓ 102 callersMethodwait_for
(self, marker: str, timeout: float)
tests/integration/sdk/test_redis_cluster_iam_auth.py:28
↓ 101 callersFunction_check
( handler: PROXY_DynamicRateLimitHandlerV3, auth: UserAPIKeyAuth, saturation: float, model: st
tests/unit/proxy/hooks/test_dynamic_rate_limiter_v3_rust.py:1808
↓ 101 callersMethodcollect
(self)
tests/unit/integrations/test_prometheus_metrics_endpoint.py:34
↓ 101 callersFunctionencode_video_id_with_provider
Encode provider and model_id into video_id using base64.
litellm/types/videos/utils.py:63
↓ 101 callersFunctionnow
()
litellm/rust/crates/license/src/signed.rs:93
↓ 101 callersMethodraise_for_status
(self)
litellm/proxy/guardrails/guardrail_hooks/pillar/pillar.py:61
↓ 101 callersFunctionsleep
(_: float)
tests/unit/llms/soniox/realtime/test_soniox_realtime_transformation.py:709
↓ 100 callersFunction_llm_response
Build a fake acompletion response with the given message content.
tests/unit/router_strategy/test_complexity_router.py:2683
↓ 100 callersFunction_make_guardrail
Helper to construct a guardrail with test defaults.
tests/unit/proxy/guardrails/guardrail_hooks/test_microsoft_purview.py:22
↓ 100 callersMethodadecisions
( self, **kwargs: object, # kwargs-ok: forwarded to the router endpoint as given )
litellm/router_api.py:1878
↓ 100 callersFunctionreplace
(s,o,i)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 100 callersMethodsplice
(e,t,n)
litellm/proxy/_experimental/out/_next/static/chunks/14v3irtjifjt2.js:1
↓ 100 callersMethodtext
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/085r5ieqhajig.js:1
↓ 99 callersFunction_logging_obj
()
tests/unit/proxy/guardrails/guardrail_hooks/test_straiker.py:67
↓ 99 callersMethodasync_pre_call_hook
( self, user_api_key_dict: UserAPIKeyAuth, cache: DualCache, data: dict[str, object], call_type: CallT
tests/unit/proxy/test_v2_hook_routing.py:344
↓ 99 callersFunctionconnect
(deployment: &RedisDeployment)
litellm/rust/crates/redis-store/tests/support/mod.rs:34
↓ 99 callersMethoddiscard
(self, key: str, payload: bytes)
tests/e2e/provider_cache.py:127
↓ 99 callersMethodfind_unique
(self, where: Mapping[str, object], include: object = None)
tests/unit/proxy/auth/_user_table.py:60
↓ 99 callersFunctiono
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 99 callersMethodopen
( cls, prisma: "PrismaClient", writer_url: str, reader_url: str | None,
litellm/repositories/database.py:53
↓ 98 callersMethodapi_base
(self)
tests/integration/_support/upstream.py:873
↓ 97 callersMethodasearch
`_asearch_with_fallbacks`: the search tool name (``search_tool_name``, else ``model``) routes as the model; the factory wrapper drops ``custom
litellm/router_rust/invoke/endpoints.py:2469
↓ 97 callersMethodgroup
(&self, name: &str)
litellm/rust/crates/router-core/src/registry.rs:965
↓ 97 callersFunctioni
({href:e,className:t})
litellm/proxy/_experimental/out/_next/static/chunks/30kytutlzx6eq.js:1
↓ 97 callersFunctionscratch_database
(prefix: str = "integration")
tests/integration/_support/database.py:30
↓ 96 callersMethodadd
(self, cost: float | None)
litellm/harness/context.py:36
↓ 96 callersMethodfill
(&mut self)
litellm/rust/crates/gateway-forward/tests/support/mod.rs:313
↓ 96 callersMethodflush
(self)
tests/unit/proxy/test_proxy_server.py:363
↓ 96 callersFunctionhandle_exception_on_proxy
Returns an Exception as ProxyException, this ensures all exceptions are OpenAI API compatible
litellm/proxy/utils.py:10141
↓ 96 callersFunctionr
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/2rtlqswx6sz6u.js:1
↓ 96 callersFunctionsubscript
(value: object, key: object)
litellm/litellm_core_utils/core_helpers.py:390
↓ 95 callersFunctionbuilder
uvicorn closes a client connection that sits idle for `--keepalive_timeout` between requests. Without the same limit, a client that vanishes without c
litellm/rust/crates/gateway-forward/src/server.rs:119
↓ 95 callersMethodcreate_model
(self, model_name: str, litellm_params: LiteLLMParamsBody)
tests/e2e/logging/logging_client.py:478
↓ 95 callersMethodreplace
Every deployment at once (``router.model_list = [...]``).
litellm/router_rust/surface/model_list.py:332
↓ 94 callersMethodbase_process_llm_request
Run the request, sending SSE keepalives while the upstream is still silent. Everything below this point, the upstream call included, happens
litellm/proxy/common_request_processing.py:3810
↓ 94 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:192
↓ 94 callersMethodputs
(self)
tests/unit/integrations/test_s3_v2_native.py:102
↓ 94 callersMethodrefetch
({...e}={})
litellm/proxy/_experimental/out/_next/static/chunks/2_9r2jeem0dh8.js:1
↓ 94 callersFunctiontest
()
tests/unit/proxy/management_endpoints/test_key_generate_prisma.py:197
↓ 93 callersFunction_make_guardrail
( inspection_type="chat", event_hook="pre_call", *, name="t", api_key="x", default_on=
tests/unit/proxy/guardrails/guardrail_hooks/_cisco_ai_defense_test_utils.py:228
↓ 93 callersMethodand
(e)
litellm/proxy/_experimental/out/_next/static/chunks/2j7hjtph8n74b.js:1
↓ 93 callersMethodcall
(self, name: str, arguments: JsonRpc, server_id: str | None = None)
tests/integration/_support/mcp.py:749
↓ 93 callersFunctionchat_stream
A stream of ``texts`` (one chunk each). With ``error``, raises it after ``fail_after`` chunks (default: after every text chunk, before the fi
tests/unit/test_router/core/streaming_helpers.py:161
↓ 93 callersMethodchunk_parser
(self, chunk: dict)
litellm/llms/cohere/common_utils.py:131
↓ 93 callersMethoditer_lines
(self)
tests/e2e/e2e_http.py:218
↓ 93 callersFunctionre
litellm/proxy/_experimental/out/_next/static/chunks/1f2vcab0yti03.js:2
↓ 93 callersFunctionrenderHook
(render, options)
litellm/ui/litellm-dashboard/src/app/(dashboard)/cost-optimization/_components/useDailyActivityRange.test.tsx:9
↓ 93 callersMethodresolve
( &self, reference: &str, environment: &(dyn Lookup + Send + Sync), )
litellm/rust/crates/secrets/src/oidc.rs:151
↓ 93 callersMethodtext
(&self)
litellm/rust/crates/s3/src/signed.rs:25
↓ 92 callersFunctiona
(e)
litellm/proxy/_experimental/out/_next/static/chunks/0r8bcbns1_gw5.js:1
↓ 92 callersMethodasync_log_success_event
( self, kwargs: Mapping[str, object], response_obj: object, start_time: datetime, end_time: datetime
tests/unit/proxy/hooks/test_autorouter_baseline_cache.py:198
↓ 92 callersMethodcatch
(self, loop: asyncio.AbstractEventLoop, on_signal: Callable[[signal.Signals], None])
litellm/proxy/rust_forward/platform/__init__.py:59
↓ 92 callersMethodget_provider_responses_api_config
( provider: LlmProviders | str, model: str | None = None, api_base: str | None = None,
litellm/utils.py:10939
↓ 92 callersMethodload
(self)
tests/unit/proxy/control_plane/store/support.py:44
↓ 92 callersFunctionrequest
()
litellm/rust/crates/router-core/tests/call_loop.rs:416
↓ 92 callersFunctionspawn
(_spec: ChildSpec)
tests/unit/proxy/rust_forward/supervisor/test_runtime.py:132
↓ 92 callersMethodstatus
(self)
tests/unit/proxy/roi_calculator/test_sync.py:559
↓ 92 callersMethodstore
(self)
tests/unit/redis/stores/spend_counters_double.py:92
↓ 91 callersMethodclear
(self)
tests/integration/_support/device_login.py:219
↓ 91 callersFunctiond
(e)
litellm/proxy/_experimental/out/_next/static/chunks/2s7apn3nfa3q3.js:1
↓ 91 callersMethodnow
(cls, tz: tzinfo | None = None)
tests/unit/proxy/management_endpoints/test_budget_endpoints.py:695
↓ 91 callersMethodset
(&self, minimum_custom_key_length: usize)
litellm/rust/crates/tracing/src/scrubbed.rs:23
↓ 91 callersMethodslice
(e,t=this.content.size,n=!1)
litellm/proxy/_experimental/out/_next/static/chunks/085r5ieqhajig.js:1
↓ 91 callersMethodtransform_response
( self, model, raw_response, model_response, logging_obj, requ
tests/unit/llms/custom_httpx/test_llm_http_handler.py:4764
↓ 90 callersMethod_replace
(self, entries: list[Entry])
litellm/router_rust/surface/model_list.py:324
↓ 90 callersMethodfetchone
(self)
tests/unit/litellm_proxy_extras/test_litellm_proxy_extras_utils.py:759
↓ 90 callersFunctionhandleResponse
(resp *http.Response, action string)
litellm/deploy/terraform/provider/litellm/resource_team.go:558
↓ 90 callersFunctionpath
()
litellm/ui/litellm-dashboard/src/app/(dashboard)/customers/manage/page.integration.test.tsx:806
↓ 90 callersMethodpost_call_failure_hook
Allows users to raise custom exceptions/log when a call fails, without having to deal with parsing Request body. Callbacks can return
litellm/proxy/utils.py:4434
↓ 89 callersFunctionMixin
(...s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 89 callersMethodadd
(s,o)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 89 callersMethodadd_standard_logging_guardrail_information_to_request_data
Builds `StandardLoggingGuardrailInformation` and adds it to the request metadata so it can be used for logging to DataDog, Langfuse, etc.
litellm/integrations/custom_guardrail.py:1585
↓ 89 callersMethodcount
(litellm_params: dict[str, str])
tests/unit/llms/openai/test_openai_workload_identity.py:1751
↓ 89 callersFunctiondecrypt_value_helper
( value: str, key: str, # this is just for debug purposes, showing the k,v pair that's invalid. not a
litellm/proxy/common_utils/encrypt_decrypt_utils.py:377
↓ 89 callersFunctionencode_url_path_segment
Percent-encode one user-controlled URL path segment. ``urllib.parse.quote(..., safe="")`` intentionally leaves RFC 3986 unreserved characters
litellm/litellm_core_utils/url_utils.py:115
↓ 89 callersFunctionhandleError
(errorData: string | any)
litellm/ui/litellm-dashboard/src/components/networking.tsx:441
↓ 89 callersFunctionservice_account_json
(project: str, token_url: str)
tests/integration/_support/vertex.py:14
↓ 88 callersMethodextend
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/2hk8n3azev--d.js:14
↓ 88 callersFunctionl
({href:e,variant:o,className:s,children:u})
litellm/proxy/_experimental/out/_next/static/chunks/2rtlqswx6sz6u.js:1
← previousnext →501–600 of 231,079, ranked by callers