mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-03 04:10:49 +08:00
Update seed handling: log fixed seed usage; adjust default seed and temperature in config
This commit is contained in:
@ -132,7 +132,8 @@ class LiteLLMAIHandler(BaseAiHandler):
|
||||
seed = get_settings().config.get("seed", -1)
|
||||
if temperature > 0 and seed >= 0:
|
||||
raise ValueError("Seed is not supported with temperature > 0")
|
||||
elif seed > 0:
|
||||
elif seed >= 0:
|
||||
get_logger().info(f"Using fixed seed of {seed}")
|
||||
kwargs["seed"] = get_settings().config.seed
|
||||
|
||||
if self.repetition_penalty:
|
||||
|
Reference in New Issue
Block a user