[Bug fix] Fix typos, static methods and other sanity improvements in the package (#1129)
This commit is contained in:
@@ -44,7 +44,7 @@ class GoogleLlm(BaseLlm):
|
||||
"temperature": self.config.temperature or 0.5,
|
||||
}
|
||||
|
||||
if self.config.top_p >= 0.0 and self.config.top_p <= 1.0:
|
||||
if 0.0 <= self.config.top_p <= 1.0:
|
||||
generation_config_params["top_p"] = self.config.top_p
|
||||
else:
|
||||
raise ValueError("`top_p` must be > 0.0 and < 1.0")
|
||||
|
||||
Reference in New Issue
Block a user