mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-12 04:16:54 +08:00
chore(api/core): apply ruff reformatting (#7624)
This commit is contained in:
@@ -3,7 +3,7 @@ from pydantic import BaseModel
|
||||
|
||||
|
||||
def dump_model(model: BaseModel) -> dict:
|
||||
if hasattr(pydantic, 'model_dump'):
|
||||
if hasattr(pydantic, "model_dump"):
|
||||
return pydantic.model_dump(model)
|
||||
else:
|
||||
return model.model_dump()
|
||||
|
||||
Reference in New Issue
Block a user