mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-10 21:39:33 +00:00
feat(core): Upgrade pydantic to 2.x (#1428)
This commit is contained in:
@@ -197,10 +197,12 @@ def _start_http_forward(
|
||||
):
|
||||
import httpx
|
||||
import uvicorn
|
||||
from fastapi import BackgroundTasks, FastAPI, Request, Response
|
||||
from fastapi import BackgroundTasks, Request, Response
|
||||
from fastapi.responses import StreamingResponse
|
||||
|
||||
app = FastAPI()
|
||||
from dbgpt.util.fastapi import create_app
|
||||
|
||||
app = create_app()
|
||||
|
||||
@app.middleware("http")
|
||||
async def forward_http_request(request: Request, call_next):
|
||||
|
Reference in New Issue
Block a user