community[patch]: fix top_p type hint (#15452)

fix: https://github.com/langchain-ai/langchain/issues/15341

@efriis
This commit is contained in:
chyroc
2024-01-16 03:59:39 +08:00
committed by GitHub
parent 251afda549
commit d334efc848
4 changed files with 4 additions and 4 deletions

View File

@@ -90,7 +90,7 @@ class _OllamaCommon(BaseLanguageModel):
will give more diverse answers, while a lower value (e.g. 10)
will be more conservative. (Default: 40)"""
top_p: Optional[int] = None
top_p: Optional[float] = None
"""Works together with top-k. A higher value (e.g., 0.95) will lead
to more diverse text, while a lower value (e.g., 0.5) will
generate more focused and conservative text. (Default: 0.9)"""