mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-24 10:13:01 +08:00
chore: apply pep8-naming rules for naming convention (#8261)
This commit is contained in:
@@ -27,6 +27,7 @@ class ElasticSearchConfig(BaseModel):
|
||||
password: str
|
||||
|
||||
@model_validator(mode="before")
|
||||
@classmethod
|
||||
def validate_config(cls, values: dict) -> dict:
|
||||
if not values["host"]:
|
||||
raise ValueError("config HOST is required")
|
||||
|
||||
Reference in New Issue
Block a user