mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-02 11:50:37 +08:00
Refactor logging statements for better readability and debugging
This commit is contained in:
@ -115,7 +115,7 @@ class LiteLLMAIHandler(BaseAiHandler):
|
||||
if self.aws_bedrock_client:
|
||||
kwargs["aws_bedrock_client"] = self.aws_bedrock_client
|
||||
|
||||
get_logger().debug(f"Prompts", system=system, user=user)
|
||||
get_logger().debug(f"Prompts", messages={"system": system, "user": user})
|
||||
response = await acompletion(**kwargs)
|
||||
except (APIError, Timeout, TryAgain) as e:
|
||||
get_logger().error("Error during OpenAI inference: ", e)
|
||||
|
Reference in New Issue
Block a user