Simplified context aggregators, _handle_text() to only check frame.append_to_context instead of also checking self._started
This commit is contained in:
@@ -1059,7 +1059,7 @@ class LLMAssistantContextAggregator(LLMContextResponseAggregator):
|
|||||||
await self.push_aggregation()
|
await self.push_aggregation()
|
||||||
|
|
||||||
async def _handle_text(self, frame: TextFrame):
|
async def _handle_text(self, frame: TextFrame):
|
||||||
if not self._started or not frame.append_to_context:
|
if not frame.append_to_context:
|
||||||
return
|
return
|
||||||
|
|
||||||
if self._params.expect_stripped_words:
|
if self._params.expect_stripped_words:
|
||||||
|
|||||||
Reference in New Issue
Block a user