mirror of
https://github.com/langgenius/dify.git
synced 2026-05-02 16:38:04 +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