forked from open-webui/open-webui
chore: formatting
This commit is contained in:
parent
543707eefd
commit
8c97476140
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ async function* openAIStreamToIterator(
|
||||||
} else 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
|
// 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"
|
// OpenRouter sends heartbeats like ": OPENROUTER PROCESSING"
|
||||||
continue
|
continue;
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
const data = JSON.parse(line.replace(/^data: /, ''));
|
const data = JSON.parse(line.replace(/^data: /, ''));
|
||||||
|
|
Loading…
Reference in a new issue