The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
rename validator (#25)
Harrison Chase316aae8223b7
diff --git a/langchain/llms/cohere.py b/langchain/llms/cohere.pyindex 340ae95595..4394a6dc3b 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(