The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
update(llms/TGI): Allow None as temperature value (#10212)
Junlin Zhou8b95dabfe31c
diff --git a/libs/langchain/langchain/llms/huggingface_text_gen_inference.py b/libs/langchain/langchain/llms/huggingface_text_gen_inference.pyindex 6545078f16..683b2f4dde 100644--- a/libs/langchain/langchain/llms/huggingface_text_gen_inference.py+++ b/libs/langchain/langchain/llms/huggingface_text_gen_inference.py@@ -65,7 +65,7 @@ class HuggingFaceTextGenInference(LLM):typical_p: Optional[float] = 0.95"""Typical Decoding mass. See [Typical Decoding for Natural LanguageGeneration](https://arxiv.org/abs/2202.00666) for more information."""- temperature: float = 0.8+ temperature: Optional[float] = 0.8"""The value used to module the logits distribution."""repetition_penalty: Optional[float] = None"""The parameter for repetition penalty. 1.0 means no penalty.