Change Gemini Live and OpenAI Realtime logging to trace when sending a video frame

This commit is contained in:
Mark Backman
2026-01-07 17:58:06 -05:00
parent 3a7b489208
commit 673d88417c
2 changed files with 2 additions and 2 deletions

View File

@@ -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")

View File

@@ -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()