2 parents 9c166b2 + 2ef31d5 commit 60f4275Copy full SHA for 60f4275
1 file changed
src/engine/ov_genai/streamers.py
@@ -44,6 +44,9 @@ def write(self, token: Union[int, List[int]]) -> openvino_genai.StreamingStatus:
44
# Emit only the newly materialized portion
45
if len(text) > self.last_print_len:
46
chunk = text[self.last_print_len:]
47
+ if chr(65533) in chunk:
48
+ self.since_last_emit -= 1
49
+ return openvino_genai.StreamingStatus.RUNNING
50
if chunk:
51
self.text_queue.put_nowait(chunk)
52
self.last_print_len = len(text)
0 commit comments