Skip to content

Commit

Permalink
Fix not imported 'validator' (#715)
Browse files Browse the repository at this point in the history
otherwise `@validator("input_variables")` do not work
  • Loading branch information
shanginn authored Jan 24, 2023
1 parent 2824f36 commit 18b1466
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/modules/prompts/examples/custom_prompt_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 18b1466

Please sign in to comment.