File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ classifiers = [
3131]
3232dependencies = [
3333 " httpx>=0.24.0" ,
34- " pydantic>=2.0 .0" ,
34+ " pydantic>=1.8 .0" ,
3535 " nanoid>=2.0.0" ,
3636]
3737
Original file line number Diff line number Diff line change 1010
1111import httpx
1212from nanoid import generate
13- from pydantic import BaseModel , Field , field_validator
13+ from pydantic import BaseModel , Field , validator
1414
1515
1616class EngineConfig (BaseModel ):
@@ -21,7 +21,7 @@ class EngineConfig(BaseModel):
2121 batch_size : int = Field (default = 25 , ge = 1 , le = 250 )
2222 ideal_batch_item_size : int = Field (default = 250 , ge = 1 , le = 2500 )
2323
24- @field_validator ("api_url" )
24+ @validator ("api_url" )
2525 @classmethod
2626 def validate_api_url (cls , v : str ) -> str :
2727 if not v .startswith (("http://" , "https://" )):
You can’t perform that action at this time.
0 commit comments