small refactor of the structure
This commit is contained in:
@@ -4,10 +4,10 @@ from contextlib import asynccontextmanager
|
||||
from fastapi import FastAPI
|
||||
from fastapi.middleware.cors import CORSMiddleware
|
||||
|
||||
from api.v1.auth import router as auth_router
|
||||
from api.v1.chat import router as v1_router
|
||||
from core.config import DEEPSEEK_API_KEY, get_config
|
||||
from core.llm import create_client
|
||||
from gateway.v1.auth import router as auth_router
|
||||
from gateway.v1.chat import router as v1_router
|
||||
from src.config import DEEPSEEK_API_KEY, get_config
|
||||
from src.llm import create_client
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Logging — tool calls will appear in the uvicorn console
|
||||
@@ -25,14 +25,14 @@ from agents import load_all_agents # noqa: E402
|
||||
|
||||
load_all_agents()
|
||||
|
||||
import auth.jellyfin # noqa: E402 — self-registers JellyfinAuth
|
||||
import gateway.auth.jellyfin # noqa: E402 — self-registers JellyfinAuth
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Lifespan
|
||||
# ---------------------------------------------------------------------------
|
||||
@asynccontextmanager
|
||||
async def lifespan(app: FastAPI):
|
||||
from bot.discord_bot import start_in_background # noqa: E402
|
||||
from gateway.discord.bot import start_in_background # noqa: E402
|
||||
|
||||
start_in_background()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user