Skip to content

Commit

Permalink
fix: transform anthropic response (#925)
Browse files Browse the repository at this point in the history
  • Loading branch information
marknguyen1302 authored Jul 26, 2024
1 parent 1356360 commit 75c3f64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cortex-js/src/domain/abstracts/oai.abstract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export abstract class OAIEngineExtension extends EngineExtension {
if (line.trim().length > 0) {
const transformedLine = transformResponse(line);
if (transformedLine) {
transformedLines.push(transformedLine);
transformedLines.push(`data: ${transformedLine}\n\n`);
}
}
}
Expand Down

0 comments on commit 75c3f64

Please sign in to comment.