Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

fix prisma

Ishaan Jaffera58232ac5bc3
diff --git a/litellm/proxy/management_endpoints/key_management_endpoints.py b/litellm/proxy/management_endpoints/key_management_endpoints.py
index 7e1776714f7..f2effa95f8b 100644
--- a/litellm/proxy/management_endpoints/key_management_endpoints.py
+++ b/litellm/proxy/management_endpoints/key_management_endpoints.py
@@ -20,7 +20,6 @@ from datetime import datetime, timedelta, timezone
from typing import Any, Dict, List, Literal, Optional, Tuple, cast
import fastapi
-import prisma
import yaml
from fastapi import APIRouter, Depends, Header, HTTPException, Query, Request, status
@@ -3153,6 +3152,8 @@ async def _rotate_master_key( # noqa: PLR0915
3. Encrypt the values with the new master key
4. Update the values in the DB
"""
+ import prisma
+
from litellm.proxy.proxy_server import proxy_config
try: