Refactor logging statements for better readability and debugging

This commit is contained in:
mrT23
2024-02-25 10:04:04 +02:00
parent 8252b98bf5
commit 984a2888ae
2 changed files with 2 additions and 2 deletions

View File

@ -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", messages={"system": system, "user": user})
get_logger().debug("Prompts", messages={"system": system, "user": user})
response = await acompletion(**kwargs)
except (APIError, Timeout, TryAgain) as e:
get_logger().error("Error during OpenAI inference: ", e)