推理过程中,灰色待确认气泡现在会随 Qwen 最新临时结果更新,允许文字回改;定稿仍走原有处理流程,最终结果会替换临时气泡
parent
fb710fadff
commit
67b5542b15
|
|
@ -3156,10 +3156,17 @@ class Qwen3ASRService:
|
||||||
ctx,
|
ctx,
|
||||||
visible_observed,
|
visible_observed,
|
||||||
)
|
)
|
||||||
|
if has_native_stream_snapshot:
|
||||||
|
# 灰色待确认气泡用于展示 Qwen 当前快照,允许它随模型修正;
|
||||||
|
# final 候选仍使用上面的稳定文本,避免演示预览影响定稿。
|
||||||
|
partial_display = self._trim_previous_segment_overlap(
|
||||||
|
ctx,
|
||||||
|
current,
|
||||||
|
)
|
||||||
|
else:
|
||||||
partial_display = self._append_only_partial_preview(
|
partial_display = self._append_only_partial_preview(
|
||||||
ctx,
|
ctx,
|
||||||
visible_observed,
|
visible_observed,
|
||||||
native_stream_snapshot=has_native_stream_snapshot,
|
|
||||||
)
|
)
|
||||||
partial_display = self._clip_partial_text(partial_display, ctx)
|
partial_display = self._clip_partial_text(partial_display, ctx)
|
||||||
if (
|
if (
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue