init enterprise pip

This commit is contained in:
Ishaan Jaff 2025-05-09 14:43:36 -07:00
parent c50abd3254
commit a5bfe5f579
9 changed files with 36 additions and 6 deletions

Binary file not shown.

Binary file not shown.

View file

@ -7,11 +7,11 @@ app = FastAPI()
@app.post("/log-event")
async def log_event(request: Request):
try:
print("Received /log-event request") # noqa
print("Received /log-event request") # noqa
# Assuming the incoming request has JSON data
data = await request.json()
print("Received request data:") # noqa
print(data) # noqa
print("Received request data:") # noqa
print(data) # noqa
# Your additional logic can go here
# For now, just printing the received data

View file

@ -105,9 +105,9 @@ class BaseEmailLogger(CustomLogger):
support_contact = os.getenv("EMAIL_SUPPORT_CONTACT", self.DEFAULT_SUPPORT_EMAIL)
base_url = os.getenv("PROXY_BASE_URL", "http://0.0.0.0:4000")
recipient_email: Optional[str] = (
user_email or await self._lookup_user_email_from_db(user_id=user_id)
)
recipient_email: Optional[
str
] = user_email or await self._lookup_user_email_from_db(user_id=user_id)
if recipient_email is None:
raise ValueError(
f"User email not found for user_id: {user_id}. User email is required to send email."

30
enterprise/pyproject.toml Normal file
View file

@ -0,0 +1,30 @@
[tool.poetry]
name = "litellm-enterprise"
version = "0.1.1"
description = "Package for LiteLLM Enterprise features"
authors = ["BerriAI"]
readme = "README.md"
[tool.poetry.urls]
homepage = "https://litellm.ai"
Homepage = "https://litellm.ai"
repository = "https://github.com/BerriAI/litellm"
Repository = "https://github.com/BerriAI/litellm"
documentation = "https://docs.litellm.ai"
Documentation = "https://docs.litellm.ai"
[tool.poetry.dependencies]
python = ">=3.8.1,<4.0, !=3.9.7"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.commitizen]
version = "0.1.18"
version_files = [
"pyproject.toml:version",
"../requirements.txt:litellm-enterprise==",
"../pyproject.toml:litellm-enterprise = {version = \""
]