MCPcopy Create free account

hub / github.com/BerriAI/litellm / types & classes

Types & classes12,471 in github.com/BerriAI/litellm

↓ 2,987 callersClassUserAPIKeyAuth
Return the row in the db
litellm/proxy/_types.py:2629
↓ 900 callersClassError
litellm/proxy/_experimental/mcp_server/outbound_credentials/result.py:44
↓ 858 callersClassDualCache
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:51
↓ 732 callersClassRouter
litellm/router.py:354
↓ 525 callersClassModelResponse
litellm/types/utils.py:1983
↓ 520 callersClassUsage
litellm/types/utils.py:1663
↓ 436 callersClassMCPServer
litellm/types/mcp_server/mcp_server_manager.py:40
↓ 402 callersClassGenericLiteLLMParams
LiteLLM Params without 'model' arg (used across completion / assistants api)
litellm/types/router.py:218
↓ 390 callersClassMCPServerManager
litellm/proxy/_experimental/mcp_server/mcp_server_manager.py:1235
↓ 288 callersClassChoices
litellm/types/utils.py:1488
↓ 282 callersClassMessage
litellm/types/utils.py:1228
↓ 266 callersClassRequest
tests/proxy_unit_tests/test_user_api_key_auth.py:31
↓ 262 callersClassLiteLLM_UserTable
litellm/models/user.py:19
↓ 239 callersClassProxyLogging
Logging/Custom Handlers for proxy. Implemented mainly to: - log successful/failed db read/writes - support the max parallel request
litellm/proxy/utils.py:397
↓ 228 callersClassDelta
litellm/types/utils.py:1347
↓ 220 callersClassLiteLLM_TeamTable
litellm/models/team.py:85
↓ 209 callersClassProxyConfig
Abstraction class on top of config loading/updating logic. Gives us one place to control all config updating logic.
litellm/proxy/proxy_server.py:3932
↓ 206 callersClassOpenTelemetry
litellm/integrations/opentelemetry.py:294
↓ 200 callersClassHTTPHandler
litellm/llms/custom_httpx/http_handler.py:1112
↓ 196 callersClassModelResponseStream
litellm/types/utils.py:1905
↓ 194 callersClassAnthropicConfig
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:229
↓ 191 callersClassProxyException
litellm/proxy/_types.py:3465
↓ 190 callersClassStreamingChoices
litellm/types/utils.py:1812
↓ 167 callersClassAmazonConverseConfig
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:104
↓ 156 callersClassResponse
tests/test_litellm/router_utils/test_add_retry_fallback_headers.py:83
↓ 153 callersClassLiteLLM_JWTAuth
A class to define the roles and permissions for a LiteLLM Proxy w/ JWT Auth. Attributes: - admin_jwt_scope: The JWT scope required for p
litellm/proxy/_types.py:4340
↓ 146 callersClassMember
litellm/models/team.py:39
↓ 142 callersClassGenericGuardrailAPIInputs
litellm/types/utils.py:4057
↓ 141 callersClassProxyBaseLLMRequestProcessing
litellm/proxy/common_request_processing.py:1011
↓ 132 callersClassGenerateKeyRequest
litellm/proxy/_types.py:1134
↓ 132 callersClassNotImplementedError
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 130 callersClassLiteLLM_Params
LiteLLM Params with 'model' requirement - used for completions
litellm/types/router.py:322
↓ 130 callersClassPromptTokensDetailsWrapper
litellm/types/utils.py:1581
↓ 126 callersClassInternalUsageCache
litellm/proxy/utils.py:224
↓ 124 callersClassJWTHandler
- treat the sub id passed in as the user id - return an error if id making request doesn't exist in proxy user table - track spend agains
litellm/proxy/auth/handle_jwt.py:77
↓ 119 callersClassBedrockGuardrail
litellm/proxy/guardrails/guardrail_hooks/bedrock_guardrails.py:197
↓ 119 callersClassComplexityRouter
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:505
↓ 119 callersClassResponsesAPIResponse
litellm/types/llms/openai.py:1217
↓ 115 callersClassBaseAWSLLM
litellm/llms/bedrock/base_aws_llm.py:70
↓ 114 callersClassFunction
litellm/types/utils.py:1021
↓ 113 callersClassImageResponse
litellm/types/utils.py:2415
↓ 111 callersClassDeployment
litellm/types/router.py:435
↓ 108 callersStructModelResponse
ModelResponse represents a response from the API containing model information.
terraform/provider/litellm/types.go:21
↓ 107 callersClassLiteLLM_VerificationToken
litellm/models/verification_token.py:16
↓ 101 callersClassAsyncHTTPHandler
litellm/llms/custom_httpx/http_handler.py:527
↓ 101 callersClassVertexGeminiConfig
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:157
↓ 99 callersClassCustomStreamWrapper
litellm/litellm_core_utils/streaming_handler.py:105
↓ 97 callersClassLiteLLM_ObjectPermissionTable
Represents a LiteLLM_ObjectPermissionTable record
litellm/models/object_permission.py:11
↓ 92 callersClassCache
litellm/caching/caching.py:55
↓ 92 callersClassEmbeddingResponse
litellm/types/utils.py:2100
↓ 91 callersClass_PROXY_MaxParallelRequestsHandler
litellm/proxy/hooks/parallel_request_limiter.py:45
↓ 90 callersClassContentFilterGuardrail
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:122
↓ 90 callersClass_
litellm/proxy/_experimental/out/_next/static/chunks/3z-oetkpttgun.js:1
↓ 86 callersClassLiteLLMAnthropicMessagesAdapter
litellm/llms/anthropic/experimental_pass_through/adapters/transformation.py:247
↓ 85 callersClassUpdateKeyRequest
litellm/proxy/_types.py:1192
↓ 84 callersClassOCIChatConfig
LiteLLM BaseConfig implementation for OCI Generative AI chat.
litellm/llms/oci/chat/transformation.py:246
↓ 77 callersClassLiteLLMParamsBody
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:663
↓ 75 callersClassChatCompletionMessageToolCall
litellm/types/utils.py:1126
↓ 75 callersClassModelInfo
litellm/types/router.py:130
↓ 74 callersClassOpenTelemetryConfig
litellm/integrations/opentelemetry.py:209
↓ 74 callersClassRealTimeStreaming
litellm/litellm_core_utils/realtime_streaming.py:57
↓ 74 callersClassWebSearchInterceptionLogger
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:76
↓ 73 callersClassCompletionTokensDetailsWrapper
litellm/types/utils.py:1565
↓ 73 callersClassImageObject
Represents the url or the content of an image generated by the OpenAI API. Attributes: b64_json: The base64-encoded JSON of the generate
litellm/types/utils.py:2336
↓ 72 callersClassMCPTool
litellm/types/mcp_server/tool_registry.py:7
↓ 72 callersClassVertexBase
litellm/llms/vertex_ai/vertex_llm_base.py:40
↓ 71 callersClassAmazonAnthropicClaudeMessagesConfig
Call Claude model family in the /v1/messages API spec Supports anthropic_beta parameter for beta features.
litellm/llms/bedrock/messages/invoke_transformations/anthropic_claude3_transformation.py:59
↓ 71 callersClass_OPTIONAL_PresidioPIIMasking
litellm/proxy/guardrails/guardrail_hooks/presidio.py:56
↓ 70 callersClassOAuthToken
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/_experimental/mcp_server/outbound_credentials/oauth_token_store.py:25
↓ 69 callersClassInMemoryCache
litellm/caching/in_memory_cache.py:28
↓ 69 callersClassLitellmParams
litellm/types/guardrails.py:970
↓ 68 callersClassHeaders
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:24
↓ 68 callersClassStandardLoggingPayload
litellm/types/utils.py:3129
↓ 67 callersClassLiteLLM_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:15
↓ 66 callersClassNewTeamRequest
litellm/proxy/_types.py:1803
↓ 66 callersClass_PROXY_LiteLLMManagedFiles
enterprise/litellm_enterprise/proxy/hooks/managed_files.py:180
↓ 65 callersClassLiteLLM_MCPServerTable
Represents a LiteLLM_MCPServerTable record
litellm/models/mcp_server.py:47
↓ 65 callersClassOpenTelemetryV2Config
litellm/integrations/otel/model/config.py:102
↓ 64 callersClassBaseLLMHTTPHandler
litellm/llms/custom_httpx/llm_http_handler.py:240
↓ 64 callersClassRedisCache
litellm/caching/redis_cache.py:267
↓ 64 callersClassUserRepository
Repository for user database operations.
litellm/repositories/user_repository.py:15
↓ 63 callersClassCustomGuardrail
litellm/integrations/custom_guardrail.py:101
↓ 62 callersClassPrometheusLogger
litellm/integrations/prometheus.py:117
↓ 61 callersClassLiteLLM_TeamTableCachedObj
litellm/models/team.py:135
↓ 60 callersClassPrismaClient
litellm/proxy/utils.py:2994
↓ 59 callersClassLogging
litellm/litellm_core_utils/litellm_logging.py:282
↓ 59 callersClassUnifiedLLMGuardrails
litellm/proxy/guardrails/guardrail_hooks/unified_guardrail/unified_guardrail.py:108
↓ 58 callersClassFakeHandler
tests/test_litellm/proxy/guardrails/guardrail_hooks/test_vigil_guard.py:38
↓ 58 callersClassTranscriptionResponse
litellm/types/utils.py:2514
↓ 57 callersClassAnthropicStreamWrapper
- first chunk return 'message_start' - content block must be started and stopped - finish_reason must map exactly to anthropic reason, el
litellm/llms/anthropic/experimental_pass_through/adapters/streaming_iterator.py:258
↓ 56 callersClassChatMessage
tests/e2e/models.py:162
↓ 55 callersClassGenAIHubOrchestrationConfig
litellm/llms/sap/chat/transformation.py:98
↓ 55 callersClassNewUserRequest
litellm/proxy/_types.py:1612
↓ 55 callersClassUserApiKeyCache
DualCache wrapper for UserAPIKeyAuth-like payloads. Stores a Redis-safe JSON payload in BOTH in-memory and Redis to avoid "memory return
litellm/proxy/common_utils/user_api_key_cache.py:15
↓ 54 callersClassNewMCPServerRequest
litellm/proxy/_types.py:1280
↓ 54 callersClassTeamRepository
Repository for team database operations.
litellm/repositories/team_repository.py:33
↓ 54 callersClassUpdateMCPServerRequest
litellm/proxy/_types.py:1386
↓ 54 callersClassUpstreamCredentialProvider
Produces the one `httpx.Auth` for a `(subject, upstream)` pair, per declared mode. Collaborators (the per-mode credential stores and token fetche
litellm/proxy/_experimental/mcp_server/outbound_credentials/resolver.py:109
↓ 52 callersClassNoBody
Empty body/query for routes that take none.
tests/e2e/e2e_http.py:46
↓ 51 callersClassCodeInterpreterInterceptionLogger
CustomLogger that implements transparent code-interpreter execution loops. Flow: 1. Replace the native ``code_interpreter`` tool with a
litellm/integrations/code_interpreter_interception/handler.py:210
next →1–100 of 12,471, ranked by callers