mirror of
https://github.com/open-webui/open-webui
synced 2024-11-22 08:07:55 +00:00
add else
This commit is contained in:
parent
7449634290
commit
4ad7ef84a4
@ -31,7 +31,7 @@ async function* openAIStreamToIterator(
|
||||
console.log(line);
|
||||
if (line === 'data: [DONE]') {
|
||||
yield { done: true, value: '' };
|
||||
} if (line.startsWith(':')) {
|
||||
} else if (line.startsWith(':')) {
|
||||
// Events starting with : are comments https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#event_stream_format
|
||||
// OpenRouter sends heartbeats like ": OPENROUTER PROCESSING"
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user