Add end-to-end tests for GitHub, GitLab, and Bitbucket apps; update temperature setting usage across tools

This commit is contained in:
mrT23
2024-07-27 17:19:32 +03:00
parent 3a77652660
commit ac247dbc2c
15 changed files with 352 additions and 18 deletions

View File

@ -129,6 +129,11 @@ class LiteLLMAIHandler(BaseAiHandler):
"force_timeout": get_settings().config.ai_timeout,
"api_base": self.api_base,
}
if get_settings().config.get("seed", -1) > 0:
if temperature > 0:
raise ValueError("Seed is not supported with temperature > 0")
kwargs["seed"] = get_settings().config.seed
if self.repetition_penalty:
kwargs["repetition_penalty"] = self.repetition_penalty