Skip to content

Commit 159c34c

Browse files
committed
fix build
1 parent 9560bef commit 159c34c

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

examples/09-ai/01-minimal/src/App.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,6 @@ export default function App() {
7171
],
7272
});
7373

74-
useEffect(() => {
75-
(window as any).editor = getAIExtension(editor);
76-
}, [editor]);
77-
7874
// Renders the editor instance using a React component.
7975
return (
8076
<div>

packages/xl-ai/src/streamTool/vercelAiSdk/util/appendableStream.test.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@ async function collectStream<T>(stream: ReadableStream<T>): Promise<T[]> {
55
const reader = stream.getReader();
66
const results: T[] = [];
77
try {
8+
// eslint-disable-next-line no-constant-condition
89
while (true) {
910
const { done, value } = await reader.read();
10-
if (done) break;
11+
if (done) {
12+
break;
13+
}
1114
results.push(value);
1215
}
1316
} finally {
@@ -22,7 +25,9 @@ describe("createAppendableStream", () => {
2225

2326
// Create a stream that never ends and provides no data
2427
const infiniteStream = new ReadableStream<string>({
25-
start() {},
28+
start() {
29+
// noop
30+
},
2631
});
2732

2833
append(infiniteStream);

packages/xl-ai/src/streamTool/vercelAiSdk/util/chatHandlers.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,6 @@ export async function setupToolCallStreaming(
139139
}
140140
}
141141

142-
debugger;
143-
144142
let errorSeen = false;
145143
// process results
146144
const toolCalls = Array.from(

0 commit comments

Comments
 (0)