Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 75c3f64

Browse files
fix: transform anthropic response (#925)
1 parent 1356360 commit 75c3f64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cortex-js/src/domain/abstracts/oai.abstract.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export abstract class OAIEngineExtension extends EngineExtension {
5656
if (line.trim().length > 0) {
5757
const transformedLine = transformResponse(line);
5858
if (transformedLine) {
59-
transformedLines.push(transformedLine);
59+
transformedLines.push(`data: ${transformedLine}\n\n`);
6060
}
6161
}
6262
}

0 commit comments

Comments
 (0)