AI SDK v5 migration (#14549)

Co-authored-by: Félix Malfait <felix@twenty.com>
This commit is contained in:
Abdul Rahman
2025-09-23 01:43:43 +05:30
committed by GitHub
parent e8121919bd
commit 216d72b5d7
75 changed files with 1347 additions and 841 deletions
@@ -0,0 +1,9 @@
import type { StreamEvent } from '../types/StreamEvent';
export const parseStreamLine = (line: string): StreamEvent | null => {
try {
return JSON.parse(line) as StreamEvent;
} catch {
return null;
}
};