feat: Add debug logs to git_provider and pr_description modules

This commit is contained in:
mrT23
2024-01-07 19:57:49 +02:00
parent 3154ebbf9f
commit 3ea08a6cf5
2 changed files with 5 additions and 1 deletions

View File

@ -166,6 +166,10 @@ class PRDescription:
system_prompt = environment.from_string(get_settings().pr_description_prompt.system).render(variables)
user_prompt = environment.from_string(get_settings().pr_description_prompt.user).render(variables)
if get_settings().config.verbosity_level >= 2:
get_logger().info(f"\nSystem prompt:\n{system_prompt}")
get_logger().info(f"\nUser prompt:\n{user_prompt}")
response, finish_reason = await self.ai_handler.chat_completion(
model=model,
temperature=0.2,