Merge pull request #1996 from yamoyamoto/fix/add-temperature-arg-to-self-reflect-of-suggestion

fix: add temperature arg to self reflect of improve
This commit is contained in:
Tal 2025-08-14 17:56:09 +03:00 committed by GitHub
commit ae799d1327
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -944,6 +944,7 @@ class PRCodeSuggestions:
with get_logger().contextualize(command="self_reflect_on_suggestions"):
response_reflect, finish_reason_reflect = await self.ai_handler.chat_completion(model=model,
system=system_prompt_reflect,
temperature=get_settings().config.temperature,
user=user_prompt_reflect)
except Exception as e:
get_logger().info(f"Could not reflect on suggestions, error: {e}")