mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-13 08:52:02 +00:00
fix: keep the gateway launcher from importing the litellm package
This commit is contained in:
parent
f5e42d9f24
commit
9a68b3a1f2
1 changed files with 2 additions and 2 deletions
|
|
@ -24,8 +24,6 @@ from typing import TYPE_CHECKING, Final
|
|||
|
||||
from uvicorn.main import main as uvicorn_main
|
||||
|
||||
from litellm.cli.main import without_gc_pauses
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from fastapi import FastAPI
|
||||
|
||||
|
|
@ -66,6 +64,8 @@ def pool_database_url(
|
|||
|
||||
|
||||
def worker_app() -> "FastAPI":
|
||||
from litellm.cli.main import without_gc_pauses
|
||||
|
||||
with without_gc_pauses():
|
||||
from gateway.main import app
|
||||
return app
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue