mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-25 02:33:00 +08:00
fix(core): Reorder field_validator and classmethod to fit Pydantic V2. (#5257)
This commit is contained in:
@@ -32,8 +32,8 @@ class TwilioAPIWrapper(BaseModel):
|
||||
must be empty.
|
||||
"""
|
||||
|
||||
@classmethod
|
||||
@field_validator('client', mode='before')
|
||||
@classmethod
|
||||
def set_validator(cls, values: dict) -> dict:
|
||||
"""Validate that api key and python package exists in environment."""
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user