mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
use directories for importing new endpoints
This commit is contained in:
parent
c6986c66cc
commit
349724a630
5 changed files with 12 additions and 6 deletions
|
@ -168,9 +168,11 @@ from litellm.scheduler import Scheduler, FlowItem, DefaultPriorities
|
|||
|
||||
## Import All Misc routes here ##
|
||||
from litellm.proxy.caching_routes import router as caching_router
|
||||
from litellm.proxy.team_endpoints import router as team_router
|
||||
from litellm.proxy.spend_management_endpoints import router as spend_management_router
|
||||
from litellm.proxy.health_endpoints import router as health_router
|
||||
from litellm.proxy.management_endpoints.team_endpoints import router as team_router
|
||||
from litellm.proxy.spend_reporting_endpoints.spend_management_endpoints import (
|
||||
router as spend_management_router,
|
||||
)
|
||||
from litellm.proxy.health_endpoints.health_endpoints import router as health_router
|
||||
|
||||
try:
|
||||
from litellm._version import version
|
||||
|
@ -5748,7 +5750,7 @@ async def new_user(data: NewUserRequest):
|
|||
# Admin UI Logic
|
||||
# if team_id passed add this user to the team
|
||||
if data_json.get("team_id", None) is not None:
|
||||
from litellm.proxy.team_endpoints import team_member_add
|
||||
from litellm.proxy.management_endpoints.team_endpoints import team_member_add
|
||||
|
||||
await team_member_add(
|
||||
data=TeamMemberAddRequest(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue