Fix not imported 'validator' (#715)

otherwise `@validator("input_variables")` do not work
This commit is contained in:
Николай Шангин 2023-01-24 23:06:50 +08:00 committed by GitHub
parent 2824f36401
commit 18b1466893
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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):