feat: 项目初始化、完成基本流式传输和语音识别功能
This commit is contained in:
16
backend/app/main.py
Normal file
16
backend/app/main.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from fastapi import FastAPI
|
||||
from app.api.v1.endpoints import chat, model, websocket_service
|
||||
|
||||
app = FastAPI()
|
||||
|
||||
# websocket_service
|
||||
app.include_router(websocket_service.router, prefix="", tags=["websocket_service"])
|
||||
# Chat服务
|
||||
app.include_router(chat.router, prefix="/v1/chat", tags=["chat"])
|
||||
# 获取模型列表服务
|
||||
app.include_router(model.router, prefix="/v1/model", tags=["model_list"])
|
||||
|
||||
if __name__ == "__main__":
|
||||
import uvicorn
|
||||
|
||||
uvicorn.run(app, host="127.0.0.1", port=8000)
|
||||
Reference in New Issue
Block a user