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:
parent
819e4bbaae
commit
63dc903123
1 changed files with 0 additions and 2 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue