|
@@ -479,7 +479,7 @@ class OAIAPICompatLargeLanguageModel(_CommonOaiApiCompat, LargeLanguageModel):
|
|
# ignore sse comments
|
|
# ignore sse comments
|
|
if chunk.startswith(":"):
|
|
if chunk.startswith(":"):
|
|
continue
|
|
continue
|
|
- decoded_chunk = chunk.strip().removeprefix("data: ")
|
|
|
|
|
|
+ decoded_chunk = chunk.strip().removeprefix("data:").lstrip()
|
|
if decoded_chunk == "[DONE]": # Some provider returns "data: [DONE]"
|
|
if decoded_chunk == "[DONE]": # Some provider returns "data: [DONE]"
|
|
continue
|
|
continue
|
|
|
|
|