优化项目结构

This commit is contained in:
2026-07-03 22:37:29 +08:00
parent 98a92b83fa
commit 3a73c345f1
29 changed files with 388 additions and 237 deletions
+9 -3
View File
@@ -1,8 +1,14 @@
from app import app
from config import Settings
from chat_api import app
from chat_api.config import Settings
if __name__ == "__main__":
import uvicorn
settings = Settings.from_env()
uvicorn.run("main:app", host="0.0.0.0", port=settings.port, reload=True)
uvicorn.run(
"chat_api:app",
host="0.0.0.0",
port=settings.port,
reload=True,
reload_dirs=["src"],
)