Files
grok2api/app/services
chenhuawang-04andClaude Opus 4.6 53ab1fd086 fix: improve final image selection in stream processor
When n=1, the stream processor locks onto the first image received
as target. If a different image gets its final version first,
completed >= n breaks the WebSocket loop, but the processor saves
the target's medium-quality data as "final".

Now checks if the target actually has is_final=True before selecting
it. If not, falls back to the highest quality image available.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 16:13:55 +08:00
..