mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-26 12:04:39 +00:00
feat(core): Upgrade pydantic to 2.x (#1428)
This commit is contained in:
@@ -138,7 +138,9 @@ async def update(
|
||||
|
||||
|
||||
@router.delete("/flows/{uid}")
|
||||
async def delete(uid: str, service: Service = Depends(get_service)) -> Result[None]:
|
||||
async def delete(
|
||||
uid: str, service: Service = Depends(get_service)
|
||||
) -> Result[ServerResponse]:
|
||||
"""Delete a Flow entity
|
||||
|
||||
Args:
|
||||
|
@@ -1,3 +1,5 @@
|
||||
from dbgpt._private.pydantic import ConfigDict
|
||||
|
||||
# Define your Pydantic schemas here
|
||||
from dbgpt.core.awel.flow.flow_factory import FlowPanel
|
||||
|
||||
@@ -10,5 +12,5 @@ class ServerResponse(FlowPanel):
|
||||
"""Flow response model"""
|
||||
|
||||
# TODO define your own fields here
|
||||
class Config:
|
||||
title = f"ServerResponse for {SERVE_APP_NAME_HUMP}"
|
||||
|
||||
model_config = ConfigDict(title=f"ServerResponse for {SERVE_APP_NAME_HUMP}")
|
||||
|
Reference in New Issue
Block a user