Commit 8c974761 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

chore: formatting

parent 543707ee
...@@ -34,7 +34,7 @@ async function* openAIStreamToIterator( ...@@ -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: /, ''));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment