Merge branch 'upstream' into concedo_experimental

# Conflicts:
#	.github/workflows/build.yml
#	CODEOWNERS
#	CONTRIBUTING.md
#	README.md
#	ci/run.sh
#	examples/embedding/README.md
#	tests/test-backend-ops.cpp
This commit is contained in:
Concedo
2025-09-22 21:25:29 +08:00
9 changed files with 395 additions and 206 deletions
+3 -1
View File
@@ -264,12 +264,14 @@ export class ChatService {
let lastTimings: ChatMessageTimings | undefined;
try {
let chunk = '';
while (true) {
const { done, value } = await reader.read();
if (done) break;
const chunk = decoder.decode(value, { stream: true });
chunk += decoder.decode(value, { stream: true });
const lines = chunk.split('\n');
chunk = lines.pop() || ''; // Save incomplete line for next read
for (const line of lines) {
if (line.startsWith('data: ')) {