Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
8c974761
Commit
8c974761
authored
Apr 26, 2024
by
Timothy J. Baek
Browse files
chore: formatting
parent
543707ee
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/lib/apis/streaming/index.ts
src/lib/apis/streaming/index.ts
+1
-1
No files found.
src/lib/apis/streaming/index.ts
View file @
8c974761
...
...
@@ -34,7 +34,7 @@ async function* openAIStreamToIterator(
}
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
continue
;
}
else
{
try
{
const
data
=
JSON
.
parse
(
line
.
replace
(
/^data: /
,
''
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment