mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-01 00:49:25 +00:00
Fix not imported 'validator' (#715)
otherwise `@validator("input_variables")` do not work
This commit is contained in:
parent
2824f36401
commit
18b1466893
@ -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…
Reference in New Issue
Block a user