From 316aae8223b76456011a49a6152e870ae2184277 Mon Sep 17 00:00:00 2001 From: Harrison Chase Date: Tue, 25 Oct 2022 20:56:48 -0700 Subject: [PATCH] rename validator (#25) more appropriate name --- langchain/llms/cohere.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/langchain/llms/cohere.py b/langchain/llms/cohere.py index 340ae95595b..4394a6dc3bf 100644 --- a/langchain/llms/cohere.py +++ b/langchain/llms/cohere.py @@ -56,7 +56,7 @@ class Cohere(BaseModel, LLM): extra = Extra.forbid @root_validator() - def template_is_valid(cls, values: Dict) -> Dict: + def validate_environment(cls, values: Dict) -> Dict: """Validate that api key and python package exists in environment.""" if "COHERE_API_KEY" not in os.environ: raise ValueError(