MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 4 callersMethodcache
(&self)
litellm-rust/crates/router-core/src/health.rs:242
↓ 4 callersMethodcache_leakage_keys
(self, scope: DailyActivityScope, *, limit: int)
litellm/repositories/daily_activity_repository.py:255
↓ 4 callersFunctioncache_user_row
Check if a user_id exists in cache, if not retrieve it.
litellm/proxy/utils.py:8344
↓ 4 callersMethodcached_model_group_info
(self, model_group: str)
litellm/router_deprecated.py:589
↓ 4 callersFunctioncalculate_cost_component
Generic cost calculator for any usage component Args: model_info: Dictionary containing cost information cost_key: The key f
litellm/litellm_core_utils/llm_cost_calc/utils.py:905
↓ 4 callersFunctioncalculate_max_parallel_requests
Returns the max parallel requests to send to a deployment. Used in semaphore for async requests on router. Parameters: - max_parall
litellm/utils.py:6350
↓ 4 callersMethodcalculate_pattern_specificity
Calculate pattern specificity based on length and complexity. Args: pattern: Regex pattern to analyze Returns:
litellm/litellm_core_utils/pattern_match_deployments.py:40
↓ 4 callersFunctioncalculate_vertex_ai_batch_cost_and_usage
Cost and usage of a native Vertex predictions.jsonl, one `{"request": ..., "response": {"candidates": [...], "usageMetadata": {...}, "modelVe
litellm/batches/batch_utils.py:435
↓ 4 callersFunctioncall
()
tests/integration/observability/test_arize_otel_v2_openinference_spans.py:223
↓ 4 callersFunctioncall
( spelling: str, path_of: Callable[[str, str], str], payload: dict[str, JsonValue]
tests/integration/authorization/test_agent_access.py:244
↓ 4 callersFunctioncall
()
tests/integration/spend/test_spend_log_tool_payload_content.py:595
↓ 4 callersFunctioncall
()
tests/unit/proxy/test_common_request_processing.py:12158
↓ 4 callersFunctioncall
(api_base: str, case_input: _FixtureInput)
tests/rust-python-harness/shared/parity/fixtures/test_recording.py:267
↓ 4 callersMethodcall
(self, py: Python<'py>, args: A)
litellm-rust/crates/python-bridge/src/preflight.rs:25
↓ 4 callersFunctioncall_remix
( harness: Harness, video_id: str, *, body, headers=None, query=None )
tests/unit/proxy/video_endpoints/test_endpoints.py:687
↓ 4 callersFunctioncall_ssl_verify
(kwargs: &Bound<'_, PyDict>)
litellm-rust/crates/python-bridge/src/http.rs:171
↓ 4 callersMethodcall_v2_guard
Call the Lakera AI v2 guard API.
litellm/proxy/guardrails/guardrail_hooks/lakera_ai_v2.py:381
↓ 4 callersFunctioncall_with_timeout
Run ``fn`` on a worker thread and wait for it, from sync code.
litellm/proxy/guardrails/guardrail_hooks/custom_code/bounded_execution.py:163
↓ 4 callersMethodcallback_selectors
``_callback_selectors``: the default group's selector and each routing group's.
litellm/router_rust/steps/selection.py:200
↓ 4 callersFunctioncaller_request_metadata_violations_are_dropped
(drop_params: bool)
litellm/llms/bedrock/request_metadata.py:203
↓ 4 callersFunctioncaller_trace_controls
(kwargs: Mapping[str, object])
litellm/integrations/otel/model/trace_controls.py:30
↓ 4 callersFunctioncalls_of
(count: int, endpoints: tuple[Endpoint, ...], stream: Callable[[int], bool])
tests/integration/providers/test_coralbricks_provider_chaos.py:82
↓ 4 callersMethodcanReplaceWith
(e,t,n,s)
litellm/proxy/_experimental/out/_next/static/chunks/085r5ieqhajig.js:1
↓ 4 callersFunctioncan_agent_call_model
( model: str | list[str] | None, # mutable-ok: the model checks it delegates to take list[str] valid_
litellm/proxy/auth/auth_checks.py:5121
↓ 4 callersMethodcan_user_access_unified_resource_id
Check if user has access to the unified resource ID. Uses get_unified_resource_id() which checks cache first before hitting the data
litellm/llms/base_llm/managed_resources/base_managed_resource.py:319
↓ 4 callersMethodcancel
(self)
litellm/proxy/roi_calculator/sync_store.py:142
↓ 4 callersFunctioncanonical_provider_batch_id
(batch_id: str)
litellm/proxy/hooks/batch_enqueued_tokens.py:151
↓ 4 callersFunctioncanonical_resource_uri
Canonicalize an upstream MCP server URL into an RFC 8707 resource identifier. Keeps only the scheme, host, port and path, which is the shape the
litellm/proxy/mcp_server/oauth_utils.py:758
↓ 4 callersMethodcap_thinking_budget_to_max_tokens
Cap a legacy ``thinking.budget_tokens`` below ``max_tokens`` (Anthropic requires ``max_tokens > budget_tokens``). Returns the (possibly capped
litellm/llms/anthropic/chat/transformation.py:1791
↓ 4 callersFunctioncaps_config
(directory: Path, provider_url: str, general_settings: Mapping[str, JsonValue])
tests/integration/management/_batch_file_caps.py:171
↓ 4 callersFunctioncaptureMatchIfValidAndReset
()
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 4 callersFunctioncapture_secret_manager
(client: object, system: str)
litellm/rust_bridge/host/secret_manager.py:133
↓ 4 callersFunctioncapture_text_contents
Read small text files before a turn so "modified"/"deleted" diffs can be built. Each kept file is <= HARNESS_MAX_DIFF_BYTES; every byte read (kep
litellm/harness/sandbox/snapshot.py:131
↓ 4 callersFunctioncarried_thinking_keys
( thinking: Mapping[object, object], rebuilt_keys: frozenset[str], drop_params: bool )
litellm/llms/anthropic/common_utils.py:1947
↓ 4 callersFunctioncarry_organization_budget_state
(valid_token: UserAPIKeyAuth, org_table: LiteLLM_OrganizationTable)
litellm/proxy/spend_tracking/carried_budget_state.py:37
↓ 4 callersMethodcascade
(self, deleted_tokens: Sequence[str])
tests/unit/proxy/management_endpoints/jwt_key_mapping_doubles.py:26
↓ 4 callersFunctioncase_timeout_for
(imported: float)
tests/integration/_support/budget.py:33
↓ 4 callersFunctioncategoryFills
(count: number, colors?: readonly ChartColor[])
ui/litellm-dashboard/src/components/shared/charts/colors.ts:69
↓ 4 callersMethodcell
(self, request_type: RequestType, model: str)
litellm/router_strategy/adaptive_router/adaptive_router.py:134
↓ 4 callersFunctionch
(s,o)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 4 callersFunctionchartColorValue
(color: ChartColor)
ui/litellm-dashboard/src/components/shared/charts/colors.ts:66
↓ 4 callersFunctionchat_body
(model: str, voice: JsonValue, text: str, *, stream: bool = False)
tests/integration/providers/_gemini_tts_voice_support.py:93
↓ 4 callersFunctionchat_completion_reply
( text: str, *, model: str = "gpt-5.4-mini", usage: Mapping[str, JsonValue] = CLASSIFIER_USAGE )
tests/integration/_support/safeguards_rig.py:421
↓ 4 callersFunctionchat_peer
(path: str, authorization: str | None)
tests/integration/providers/test_gemini_chat_video_metadata_wire.py:38
↓ 4 callersFunctioncheckSSOConfiguration
()
ui/litellm-dashboard/src/app/(dashboard)/admin-panel/_components/AdminPanel.tsx:90
↓ 4 callersFunctioncheck_allowed_passthrough_routes_caller_permission
( data: BaseModel | None, user_api_key_dict: UserAPIKeyAuth, *, entity: str = "key", )
litellm/proxy/management_endpoints/common_utils.py:188
↓ 4 callersFunctioncheck_denied_passthrough_routes_caller_permission
A non-admin request must leave an existing deny list as it is: clearing it, or replacing `metadata` without it, would widen access. The outco
litellm/proxy/management_endpoints/common_utils.py:214
↓ 4 callersFunctioncheck_encryption_endpoint
Read-only residual scan for compliance attestation. Reports how many at-rest values are still in the legacy format. ``residual_legacy == 0``
litellm/proxy/management_endpoints/key_management_endpoints.py:6153
↓ 4 callersMethodcheck_file_ids_access
Check if the user has access to a list of file IDs. Only checks managed (unified) file IDs. Args: file_ids: List
enterprise/litellm_enterprise/proxy/hooks/managed_files.py:1676
↓ 4 callersFunctioncheck_if_default_team_set
()
litellm/proxy/management_endpoints/internal_user_endpoints.py:427
↓ 4 callersFunctioncheck_if_request_size_is_safe
Enterprise Only: - Checks if the request size is within the limit Args: request (Request): The incoming request. Return
litellm/proxy/auth/auth_utils.py:1230
↓ 4 callersFunctioncheck_prisma_schema_diff_helper
Checks for differences between current database and Prisma schema. Never raises: a diff that cannot be produced, because the runner is missing,
litellm/proxy/db/check_migration.py:47
↓ 4 callersMethodcheck_vector_store_ids_access
Verify the caller's team can access each LiteLLM-managed vector store. Batch-fetches vector stores from DB and checks team_id.
enterprise/litellm_enterprise/proxy/hooks/managed_files.py:2031
↓ 4 callersMethodcheck_view_exists
Checks if the LiteLLM_VerificationTokenView and MonthlyGlobalSpend exists in the user's db. LiteLLM_VerificationTokenView: This view
litellm/proxy/utils.py:5925
↓ 4 callersFunctioncheckedAtOr
(checkedAt: string | null | undefined, fallback: string)
ui/litellm-dashboard/src/components/model_dashboard/HealthCheckComponent.tsx:134
↓ 4 callersMethodcheckpoint
(self, provider: str)
tests/unit/proxy/pass_through_endpoints/test_llm_pass_through_endpoints.py:9516
↓ 4 callersMethodchildren
()
litellm/proxy/_experimental/out/_next/static/chunks/085r5ieqhajig.js:1
↓ 4 callersFunctionchoiceToLoggingOnlyScope
(choice: LoggingOnlyScopeChoice | undefined)
ui/litellm-dashboard/src/app/(dashboard)/guardrails/_components/guardrail_info_helpers.tsx:147
↓ 4 callersMethodchunk_parser
(self, chunk: dict)
litellm/llms/groq/chat/transformation.py:375
↓ 4 callersMethodchunk_parser
Parse a single streaming chunk from GigaChat.
litellm/llms/gigachat/chat/streaming.py:48
↓ 4 callersMethodchunk_parser
(self, chunk: dict)
litellm/llms/openrouter/chat/transformation.py:269
↓ 4 callersMethodclaim_async_success_log
One async success log per request. The innermost @client wrapper always exits first, since the outer one is awaiting it, so it claims the log
litellm/litellm_core_utils/litellm_logging.py:2937
↓ 4 callersFunctionclaims
(**changes: object)
tests/unit/proxy/lens/test_internal.py:17
↓ 4 callersFunctionclassificationFrequency
(value: ComplexityRouterConfigValue)
ui/litellm-dashboard/src/components/add_model/ComplexityRouterConfig.tsx:479
↓ 4 callersFunctionclassifier_cost_from_decision
The LLM-classifier cost a routing decision recorded, or ``None`` when it holds none. ``None`` covers the decision-less request, the heuristic sho
litellm/proxy/spend_tracking/savings.py:457
↓ 4 callersMethodclassifier_wire_labels
The tier names the classifier is told to emit: defined names, or the display labels.
litellm/router_strategy/complexity_router/config.py:2068
↓ 4 callersFunctionclassify_value
Classify a stored value for the residual scanner. * ``not-a-string`` — not a string (numbers/bools/None left as-is on disk). * ``migrated`` —
litellm/proxy/management_endpoints/credential_migration.py:141
↓ 4 callersFunctionclaude_code_requested_group
( requested: str, llm_router: Router, team_id: str | None, alias_maps: tuple[object, ...] = ()
litellm/proxy/common_utils/model_listing_utils.py:384
↓ 4 callersFunctionclaude_credentials
Claude Code's own resolution order, so the key-scoped lookup runs as the principal that wrote the rows: ANTHROPIC_AUTH_TOKEN, then ANTHROPIC_API_K
litellm/proxy/client/cli/commands/statusline_script.py:145
↓ 4 callersFunctionclaude_hosted_web_tool_arguments
(item: object)
litellm/llms/base_llm/guardrail_translation/utils.py:152
↓ 4 callersMethodclean_team_member_fields
Remove team member fields from data dictionary
litellm/proxy/management_endpoints/team_endpoints.py:862
↓ 4 callersFunctionclear
(gateway: Gateway, key: str, identity: str)
tests/integration/mcp/test_mcp_user_env_vars.py:69
↓ 4 callersMethodclear
()
litellm/proxy/_experimental/out/_next/static/chunks/085r5ieqhajig.js:1
↓ 4 callersFunctionclearStoredReturnUrl
()
ui/litellm-dashboard/src/utils/returnUrlUtils.ts:131
↓ 4 callersMethodcli_on_node
(&self, port: u16, args: &[&str])
litellm-rust/crates/redis-testing/src/cluster.rs:93
↓ 4 callersFunctioncli_sso_start
(request: Request)
litellm/proxy/management_endpoints/ui_sso.py:764
↓ 4 callersMethodclient
(self)
tests/unit/llms/azure/realtime/test_http_transformation.py:26
↓ 4 callersMethodclient
The client for `resolved`, connected by its first caller and guarded by its server's breaker unless `breaker` is none. The lock is held while it conne
litellm-rust/crates/redis-connect/src/hosts.rs:48
↓ 4 callersMethodclient
(&self, context: &AwsOperationContext)
litellm-rust/crates/secrets-aws/src/secret_manager/client.rs:55
↓ 4 callersFunctionclientAgentDetail
(agent: AgentRow, days: readonly DailyData[])
ui/litellm-dashboard/src/app/(dashboard)/usage/_components/components/overview/clientAgentDetail.ts:18
↓ 4 callersFunctionclient_builder
(server: &MockServer)
litellm-rust/crates/secrets-aws/tests/secret_manager/support.rs:73
↓ 4 callersMethodclient_for_location
( &self, location: &SecretLocation, )
litellm-rust/crates/secrets-hashicorp/src/secret_manager/client.rs:4
↓ 4 callersFunctionclient_marked
()
tests/integration/providers/_cache_control_marks_support.py:86
↓ 4 callersFunctionclock
()
tests/unit/proxy/test_common_request_processing.py:13107
↓ 4 callersFunctioncloneUnlessOtherwiseSpecified
(s,o)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 4 callersMethodclose
(self, code: int = ..., reason: str | None = ...)
litellm/litellm_core_utils/realtime_errors.py:23
↓ 4 callersMethodclose
(self, code: int = 1000, reason: str | None = None)
litellm/litellm_core_utils/realtime_streaming.py:154
↓ 4 callersMethodclose
Later reads go to Redis directly; call before any read-then-write on the counters.
litellm/proxy/spend_tracking/spend_counter_batch.py:75
↓ 4 callersMethodclose
(self)
litellm/responses/streaming_iterator.py:1383
↓ 4 callersMethodclose
(self)
tests/unit/responses/test_responses_api_lifecycle.py:348
↓ 4 callersMethodclose
(self)
tests/rust-python-harness/shared/parity/runner.py:146
↓ 4 callersMethodclose
(&self)
litellm-rust/crates/gateway-forward/src/connections.rs:46
↓ 4 callersMethodclose
(&mut self, _: Python<'_>)
litellm-rust/crates/host-python/tests/driver.rs:547
↓ 4 callersMethodclose
(self)
litellm-rust/crates/gateway/tests/mcp.rs:108
↓ 4 callersMethodcloseExtra
(e=!1)
litellm/proxy/_experimental/out/_next/static/chunks/085r5ieqhajig.js:1
↓ 4 callersFunctionclose_writer
(writer: asyncio.StreamWriter)
tests/integration/_support/async_server.py:13
↓ 4 callersMethodcodec
(&self)
litellm-rust/crates/python-bridge/src/tokenizer.rs:128
↓ 4 callersFunctioncoerce_bool
(value: JsonValue)
litellm/proxy/config_resolvers/settings_rules.py:93
↓ 4 callersFunctioncoerce_token_limit
Coerce a max_input_tokens / max_output_tokens value to an int, treating a malformed value as absent. A deployment's model_info is regist
litellm/litellm_core_utils/core_helpers.py:340
↓ 4 callersFunctioncohere_embedding_response
( body: Mapping[str, object], model: str | None, encoding: _SupportsEncode, input_texts: Itera
litellm/llms/cohere/embed/transformation.py:134
← previousnext →19,801–19,900 of 202,479, ranked by callers