Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BerriAI/litellm
/ types & classes
Types & classes
30,100 in github.com/BerriAI/litellm
⨍
Functions
231,079
◇
Types & classes
30,100
↳
Endpoints
6,452
↓ 6,290 callers
Class
UserAPIKeyAuth
Return the row in the db
litellm/types/proxy/auth/user_api_key_auth.py:139
↓ 2,951 callers
Class
Ok
litellm/proxy/mcp_server/outbound_credentials/result.py:33
↓ 1,649 callers
Class
Reply
tests/integration/_support/wire.py:68
↓ 1,601 callers
Class
Router
What type checkers see: the constructor's parameters and the endpoints' return types. The endpoints are served by the core at run time (litell
litellm/router.py:269
↓ 1,500 callers
Class
DualCache
DualCache is a cache implementation that updates both Redis and an in-memory cache simultaneously. When data is updated or inserted, it is wr
litellm/caching/dual_cache.py:64
↓ 1,242 callers
Class
ModelResponse
litellm/types/utils.py:2428
↓ 1,068 callers
Class
Usage
litellm/types/utils.py:2059
↓ 965 callers
Class
Field
litellm/integrations/custom_logger_v2/enums.py:36
↓ 822 callers
Class
MCPServer
litellm/types/mcp_server/mcp_server_manager.py:103
↓ 816 callers
Class
Error
litellm/proxy/mcp_server/outbound_credentials/result.py:44
↓ 767 callers
Class
GenericLiteLLMParams
LiteLLM Params without 'model' arg (used across completion / assistants api)
litellm/types/router.py:599
↓ 753 callers
Class
MCPServerManager
litellm/proxy/mcp_server/mcp_server_manager.py:2040
↓ 683 callers
Class
UserApiKeyCache
The proxy's auth objects (keys, users, teams, memberships, orgs, ...), always on the native ``AuthCacheStore``: memory only until ``enable_re
litellm/proxy/common_utils/user_api_key_cache.py:47
↓ 594 callers
Class
AsyncHTTPHandler
litellm/llms/custom_httpx/http_handler.py:763
↓ 534 callers
Class
Request
tests/unit/proxy/auth/test_user_api_key_auth.py:393
↓ 514 callers
Class
LiteLLM_UserTable
litellm/models/user.py:22
↓ 498 callers
Class
ProxyLogging
Logging/Custom Handlers for proxy. Implemented mainly to: - log successful/failed db read/writes - support the max parallel request
litellm/proxy/utils.py:2323
↓ 485 callers
Class
HTTPHandler
litellm/llms/custom_httpx/http_handler.py:1611
↓ 476 callers
Class
Response
tests/unit/router_utils/test_add_retry_fallback_headers.py:269
↓ 449 callers
Class
LiteLLM_TeamTable
litellm/models/team.py:82
↓ 445 callers
Class
Number
litellm/rust/crates/cost/src/money.rs:94
↓ 444 callers
Class
Delta
litellm/types/utils.py:1667
↓ 437 callers
Class
ProxyConfig
Abstraction class on top of config loading/updating logic. Gives us one place to control all config updating logic.
litellm/proxy/proxy_server.py:5850
↓ 430 callers
Class
Choices
litellm/types/utils.py:1804
↓ 407 callers
Class
Message
litellm/types/utils.py:1546
↓ 405 callers
Class
ModelResponseStream
litellm/types/utils.py:2336
↓ 397 callers
Class
RoutingContext
What a routing plugin (strategy, pre-call check, sub-router) may use of the router. Plugins get one instead of the Router itself.
litellm/router_api.py:1784
↓ 363 callers
Class
StreamingChoices
litellm/types/utils.py:2224
↓ 346 callers
Class
LiteLLM_Params
LiteLLM Params with 'model' requirement - used for completions
litellm/types/router.py:778
↓ 345 callers
Class
Logging
litellm/litellm_core_utils/litellm_logging.py:1039
↓ 339 callers
Class
InternalUsageCache
litellm/proxy/utils.py:531
↓ 311 callers
Class
Deployment
litellm/types/router.py:921
↓ 309 callers
Class
AmazonConverseConfig
Reference - https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_Converse.html #2 - https://docs.aws.amazon.com/bedrock/latest
litellm/llms/bedrock/chat/converse_transformation.py:382
↓ 304 callers
Class
AnthropicConfig
Reference: https://docs.anthropic.com/claude/reference/messages_post to pass metadata to anthropic, it's {"user_id": "any-relevant-informati
litellm/llms/anthropic/chat/transformation.py:724
↓ 304 callers
Class
ProxyException
litellm/proxy/_types.py:4133
↓ 279 callers
Class
GenericGuardrailAPIInputs
litellm/types/utils.py:5565
↓ 278 callers
Class
OpenAIResponsesHandler
Handler for processing OpenAI Responses API with guardrails. This class provides methods to: 1. Process input (pre-call hook) 2. Pro
litellm/llms/openai/responses/guardrail_translation/handler.py:1266
↓ 265 callers
Class
ModelInfo
litellm/types/router.py:301
↓ 263 callers
Class
ProxyBaseLLMRequestProcessing
litellm/proxy/common_request_processing.py:2915
↓ 253 callers
Class
ComplexityRouter
Complexity router that classifies requests and routes to appropriate models. By default, handles requests in <1ms with zero external API cal
litellm/router_strategy/complexity_router/complexity_router.py:1438
↓ 247 callers
Class
OpenTelemetry
litellm/integrations/opentelemetry.py:470
↓ 244 callers
Class
ResponsesAPIResponse
litellm/types/llms/openai.py:1625
↓ 243 callers
Class
LiteLLM_ObjectPermissionTable
Represents a LiteLLM_ObjectPermissionTable record
litellm/models/object_permission.py:13
↓ 243 callers
Class
Member
tests/integration/authorization/test_team_member_permissions.py:80
↓ 232 callers
Class
PromptTokensDetailsWrapper
litellm/types/utils.py:1921
↓ 230 callers
Class
CustomStreamWrapper
litellm/litellm_core_utils/streaming_handler.py:527
↓ 225 callers
Class
LiteLLM_VerificationToken
litellm/models/verification_token.py:16
↓ 211 callers
Class
LiteLLMParamsBody
POST /model/new litellm_params: `model` is the only required field; `api_key` et al may be an `os.environ/FOO` reference the proxy resolves at cal
tests/e2e/models.py:1357
↓ 211 callers
Class
Object
litellm/rust/crates/config/src/value.rs:11
↓ 206 callers
Class
UpdateKeyRequest
litellm/types/proxy/management_endpoints/key_requests.py:104
↓ 193 callers
Class
InMemoryCache
litellm/caching/in_memory_cache.py:32
↓ 192 callers
Class
ImageResponse
litellm/types/utils.py:2918
↓ 189 callers
Class
ChangeSet
Runtime changes for ``apply``. Applied in this order: ``assign``, ``settings``, ``upsert``, ``delete``, ``redis_cache``. - ``assign``: r
litellm/router_api.py:1658
↓ 187 callers
Class
LiteLLMAnthropicMessagesAdapter
litellm/llms/anthropic/messages/adapters/transformation.py:478
↓ 187 callers
Class
VertexGeminiConfig
Reference: https://cloud.google.com/vertex-ai/docs/generative-ai/chat/test-chat-prompts Reference: https://cloud.google.com/vertex-ai/generat
litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py:1022
↓ 180 callers
Class
Cache
litellm/caching/caching.py:296
↓ 177 callers
Class
GenerateKeyRequest
litellm/types/proxy/management_endpoints/key_requests.py:75
↓ 174 callers
Class
BaseLLMHTTPHandler
litellm/llms/custom_httpx/llm_http_handler.py:951
↓ 174 callers
Class
DBSpendUpdateWriter
Module responsible for 1. Writing spend increments to either in memory list of transactions or to redis 2. Reading increments from redis
litellm/proxy/db/db_spend_update_writer.py:856
↓ 173 callers
Class
OpenTelemetryV2Config
litellm/integrations/otel/model/config.py:154
↓ 170 callers
Class
_PROXY_MaxParallelRequestsHandler
litellm/proxy/hooks/parallel_request_limiter.py:79
↓ 168 callers
Class
EmbeddingResponse
litellm/types/utils.py:2544
↓ 168 callers
Class
LiteLLM_BudgetTable
Represents user-controllable params for a LiteLLM_BudgetTable record. Budget-write paths use `model_fields.keys()` on this class as an allowlist
litellm/models/budget.py:103
↓ 166 callers
Class
Function
litellm/types/utils.py:1339
↓ 165 callers
Class
MCPTool
litellm/types/mcp_server/tool_registry.py:9
↓ 163 callers
Class
NotImplementedError
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 160 callers
Class
BedrockGuardrail
litellm/proxy/guardrails/guardrail_hooks/bedrock_guardrails.py:375
↓ 156 callers
Class
CredentialItem
litellm/models/credentials.py:25
↓ 156 callers
Class
updateDeployment
litellm/types/router.py:817
↓ 155 callers
Class
BaseAWSLLM
litellm/llms/bedrock/base_aws_llm.py:159
↓ 154 callers
Class
LitellmParams
litellm/types/guardrails.py:1428
↓ 141 callers
Class
AnthropicMessagesHandler
Process Anthropic messages with guardrails. In-sequence system entries are untrusted client input. This handler scans and preserves them thro
litellm/llms/anthropic/chat/guardrail_translation/handler.py:642
↓ 140 callers
Class
ChatMessage
tests/e2e/models.py:235
↓ 139 callers
Class
RealTimeStreaming
litellm/litellm_core_utils/realtime_streaming.py:480
↓ 139 callers
Class
ResponseSpec
tests/test_litellm_rust/support/recording_server.py:24
↓ 133 callers
Class
LiteLLM_TeamTableCachedObj
litellm/models/team.py:132
↓ 131 callers
Class
PrometheusLogger
litellm/integrations/prometheus.py:631
↓ 127 callers
Class
WebSearchInterceptionLogger
CustomLogger that intercepts WebSearch tool calls for models that don't natively support web search. Implements agentic loop: 1. Det
litellm/integrations/websearch_interception/handler.py:303
↓ 126 callers
Class
TextContent
litellm/types/interactions/generated.py:379
↓ 124 callers
Class
CustomGuardrail
litellm/integrations/custom_guardrail.py:401
↓ 123 callers
Class
ContentFilterGuardrail
Content filter guardrail that detects sensitive information using: - Prebuilt regex patterns (SSN, credit cards, API keys, etc.) - Custom
litellm/proxy/guardrails/guardrail_hooks/litellm_content_filter/content_filter.py:341
↓ 123 callers
Class
FakeSpendCounters
``redis`` is None for a worker without Redis, and ``redis_default`` answers reads of a key it lacks. ``fail`` makes every Redis call fail with ``f
tests/unit/redis/stores/spend_counters_double.py:70
↓ 123 callers
Class
Headers
Base for header models. Subclasses may alias to hyphenated header names (e.g. ``x-litellm-api-key``); serialization uses by_alias.
tests/e2e/e2e_http.py:33
↓ 119 callers
Class
UnifiedLLMGuardrails
litellm/proxy/guardrails/guardrail_hooks/unified_guardrail/unified_guardrail.py:252
↓ 119 callers
Class
UpdateTeamRequest
UpdateTeamRequest, used by /team/update when you need to update a team team_id: str team_alias: Optional[str] = None organization_id
litellm/proxy/_types.py:2091
↓ 118 callers
Class
LiteLLMResponsesTransformationHandler
Handler for transforming /chat/completions api requests to litellm.responses requests
litellm/completion_extras/litellm_responses_transformation/transformation.py:1051
↓ 115 callers
Class
BedrockFilesConfig
Config for Bedrock Files - handles S3 uploads for Bedrock batch processing
litellm/llms/bedrock/files/transformation.py:652
↓ 115 callers
Class
VertexBase
litellm/llms/vertex_ai/vertex_llm_base.py:135
↓ 114 callers
Enum
Float
litellm/rust/crates/python-compat/tests/stdlib.rs:32
↓ 113 callers
Class
PrismaClient
litellm/proxy/utils.py:6094
↓ 112 callers
Class
McpCaller
One caller's view of the gateway through a specific entry point.
tests/integration/_support/mcp.py:688
↓ 112 callers
Class
OAuthToken
A user's OAuth credential: the bearer value, when it expires, and how to refresh it. ``expires_at`` is epoch seconds (``None`` means no known exp
litellm/proxy/mcp_server/outbound_credentials/oauth_token_store.py:26
↓ 111 callers
Class
ChatCompletionMessageToolCall
litellm/types/utils.py:1444
↓ 108 callers
Class
ChatBody
tests/e2e/models.py:353
↓ 104 callers
Interface
Query
litellm/rust/crates/storage-clickhouse/src/read.rs:147
↓ 104 callers
Class
RedisCache
litellm/caching/redis_cache.py:596
↓ 103 callers
Class
GeminiRealtimeConfig
litellm/llms/gemini/realtime/transformation.py:230
↓ 101 callers
Class
AmazonAnthropicClaudeMessagesConfig
Call Claude model family in the /v1/messages API spec Supports anthropic_beta parameter for beta features.
litellm/llms/bedrock/messages/invoke_transformations/anthropic_claude_transformation.py:73
↓ 100 callers
Class
BedrockError
litellm/llms/bedrock/common_utils.py:133
↓ 99 callers
Class
FireworksAIConfig
Reference: https://docs.fireworks.ai/api-reference/post-chatcompletions The class `FireworksAIConfig` provides configuration for the Firewor
litellm/llms/fireworks_ai/chat/transformation.py:166
next →
1–100 of 30,100, ranked by callers