mirror of
https://github.com/OMGeeky/gpt-pilot.git
synced 2026-01-20 17:21:08 +01:00
ignore ': OPENROUTER PROCESSING'
This commit is contained in:
@@ -262,7 +262,7 @@ def stream_gpt_completion(data, req_type):
|
||||
|
||||
for line in response.iter_lines():
|
||||
# Ignore keep-alive new lines
|
||||
if line:
|
||||
if line and line != b': OPENROUTER PROCESSING':
|
||||
line = line.decode("utf-8") # decode the bytes to string
|
||||
|
||||
if line.startswith('data: '):
|
||||
|
||||
Reference in New Issue
Block a user