The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
Fix stop key of TextGen. (#11109)
Akio Nishimura785b9d47b7c1
diff --git a/libs/langchain/langchain/llms/textgen.py b/libs/langchain/langchain/llms/textgen.pyindex 6b409ecb12..e962c7be27 100644--- a/libs/langchain/langchain/llms/textgen.py+++ b/libs/langchain/langchain/llms/textgen.py@@ -175,7 +175,7 @@ class TextGen(LLM):params = {"preset": self.preset}# then sets it as configured, or default to an empty list:- params["stop"] = self.stopping_strings or stop or []+ params["stopping_strings"] = self.stopping_strings or stop or []return params