Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
fix: add correct logging (#9603)
Ari Webba9a6a5f29db5
diff --git a/letta/interfaces/openai_streaming_interface.py b/letta/interfaces/openai_streaming_interface.pyindex 8823513e2..966fe4087 100644--- a/letta/interfaces/openai_streaming_interface.py+++ b/letta/interfaces/openai_streaming_interface.py@@ -320,9 +320,6 @@ class OpenAIStreamingInterface:# Track events for diagnosticsself.total_events_received += 1self.last_event_type = "ChatCompletionChunk"- # Track events for diagnostics- self.total_events_received += 1- self.last_event_type = "ChatCompletionChunk"if not self.model or not self.message_id:self.model = chunk.model@@ -833,6 +830,10 @@ class SimpleOpenAIStreamingInterface:prev_message_type: Optional[str] = None,message_index: int = 0,) -> AsyncGenerator[LettaMessage | LettaStopReason, None]:+ # Track events for diagnostics+ self.total_events_received += 1+ self.last_event_type = "ChatCompletionChunk"+if not self.model or not self.message_id:self.model = chunk.modelself.message_id = chunk.id