refactor(openai.py): remove redundant logging

Removed an extraneous log statement that recorded the first message content in the OpenAI class. This change streamlines the logging process by eliminating unnecessary log clutter, improving the readability of logs and potentially enhancing performance by reducing I/O operations on the logging system. This adjustment is pivotal for maintaining a clean and efficient codebase, especially in production environments where excessive logging can lead to inflated log sizes and make troubleshooting more challenging.
This commit is contained in:
Kumi 2024-04-23 08:14:33 +02:00
parent 819e4bbaae
commit 63dc903123
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -253,8 +253,6 @@ class OpenAI:
+ messages + messages
) )
self.logger.log(f"{messages[0]['content']}")
kwargs = { kwargs = {
"model": chat_model, "model": chat_model,
"messages": messages, "messages": messages,