Change Gemini Live and OpenAI Realtime logging to trace when sending a video frame
This commit is contained in:
@@ -1346,7 +1346,7 @@ class GeminiLiveLLMService(LLMService):
|
||||
return # Ignore if less than 1 second has passed
|
||||
|
||||
self._last_sent_time = now # Update last sent time
|
||||
logger.debug(f"Sending video frame to Gemini: {frame}")
|
||||
logger.trace(f"Sending video frame to Gemini: {frame}")
|
||||
|
||||
buffer = io.BytesIO()
|
||||
Image.frombytes(frame.format, frame.size, frame.image).save(buffer, format="JPEG")
|
||||
|
||||
@@ -895,7 +895,7 @@ class OpenAIRealtimeLLMService(LLMService):
|
||||
return # Ignore if less than 1 second has passed
|
||||
|
||||
self._last_image_sent_time = now # Update last sent time
|
||||
logger.debug(f"Sending image frame to OpenAI Realtime: {frame}")
|
||||
logger.trace(f"Sending image frame to OpenAI Realtime: {frame}")
|
||||
|
||||
# Convert image to JPEG format and encode as base64
|
||||
buffer = io.BytesIO()
|
||||
|
||||
Reference in New Issue
Block a user