From 6e63cf4014efbd33a1e8d6c32eb8b34c4a2f7651 Mon Sep 17 00:00:00 2001 From: "Hussam.lawen" Date: Mon, 18 Dec 2023 17:35:04 +0200 Subject: [PATCH] Add log --- pr_agent/tools/pr_code_suggestions.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pr_agent/tools/pr_code_suggestions.py b/pr_agent/tools/pr_code_suggestions.py index 6b30a8a8..f2f612a1 100644 --- a/pr_agent/tools/pr_code_suggestions.py +++ b/pr_agent/tools/pr_code_suggestions.py @@ -109,6 +109,9 @@ class PRCodeSuggestions: response, finish_reason = await self.ai_handler.chat_completion(model=model, temperature=0.2, system=system_prompt, user=user_prompt) + if get_settings().config.verbosity_level >= 2: + get_logger().info(f"\nAI response:\n{response}") + return response def _prepare_pr_code_suggestions(self) -> Dict: