mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-22 14:49:29 +00:00
Add missing verb (#768)
Mini drive-by PR: I came across this sentence in a stack trace for an error I had, and it confused me because the verb I missing. So I added the verb.
This commit is contained in:
parent
a5d003f0c9
commit
5198d6f541
@ -126,7 +126,7 @@ class BasePromptTemplate(BaseModel, ABC):
|
|||||||
|
|
||||||
@root_validator()
|
@root_validator()
|
||||||
def validate_variable_names(cls, values: Dict) -> Dict:
|
def validate_variable_names(cls, values: Dict) -> Dict:
|
||||||
"""Validate variable names do not restricted names."""
|
"""Validate variable names do not include restricted names."""
|
||||||
if "stop" in values["input_variables"]:
|
if "stop" in values["input_variables"]:
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
"Cannot have an input variable named 'stop', as it is used internally,"
|
"Cannot have an input variable named 'stop', as it is used internally,"
|
||||||
|
Loading…
Reference in New Issue
Block a user