mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2026-04-23 00:17:25 +08:00
[BugFix] fix audio end bug (#5464)
This commit is contained in:
@@ -115,7 +115,9 @@ class ChatResponseProcessor:
|
||||
)
|
||||
yield response
|
||||
elif decode_type == 2: # audio
|
||||
if self.eoa_token_id is not None and self.eoa_token_id in token_ids:
|
||||
if self.eoa_token_id is not None and any(
|
||||
token_id >= self.eoa_token_id for token_id in token_ids
|
||||
):
|
||||
continue
|
||||
if req_id in self._audio_buffer:
|
||||
self._audio_buffer[req_id].append(token_ids)
|
||||
|
||||
Reference in New Issue
Block a user