Skip to content

Commit 18b1466

Browse files
authored
Fix not imported 'validator' (#715)
otherwise `@validator("input_variables")` do not work
1 parent 2824f36 commit 18b1466

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/modules/prompts/examples/custom_prompt_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Next, we'll create a custom prompt template that takes in the function name as i
3434

3535
```python
3636
from langchain.prompts import BasePromptTemplate
37-
from pydantic import BaseModel
37+
from pydantic import BaseModel, validator
3838

3939

4040
class FunctionExplainerPromptTemplate(BasePromptTemplate, BaseModel):

0 commit comments

Comments
 (0)