feat(core): Upgrade pydantic to 2.x (#1428)

This commit is contained in:
Fangyin Cheng
2024-04-20 09:41:16 +08:00
committed by GitHub
parent baa1e3f9f6
commit 57be1ece18
103 changed files with 1146 additions and 534 deletions

View File

@@ -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):