Fix not imported 'validator' (#715)

otherwise `@validator("input_variables")` do not work
harrison/document-split
Николай Шангин 1 year ago committed by GitHub
parent 2824f36401
commit 18b1466893
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -34,7 +34,7 @@ Next, we'll create a custom prompt template that takes in the function name as i
```python
from langchain.prompts import BasePromptTemplate
from pydantic import BaseModel
from pydantic import BaseModel, validator
class FunctionExplainerPromptTemplate(BasePromptTemplate, BaseModel):

Loading…
Cancel
Save