mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-30 20:50:34 +00:00
When an error occurs stop processing.
This commit is contained in:
parent
8537aabba4
commit
df74594b8f
2 changed files with 9 additions and 3 deletions
|
|
@ -333,8 +333,6 @@ export const useGeminiStream = (
|
|||
{ type: 'error', text: `[API Error: ${event.value.message}]` },
|
||||
userMessageTimestamp,
|
||||
);
|
||||
setStreamingState(StreamingState.Idle);
|
||||
// Allow stream to end naturally
|
||||
}
|
||||
} // End stream loop
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue