Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

fix: ai completion streaming (#1349)

Myles Scolnick2b15baada08c
diff --git a/frontend/src/components/editor/cell/code/ai-completion-editor.tsx b/frontend/src/components/editor/cell/code/ai-completion-editor.tsx
index 32a2509135..b946e1af42 100644
--- a/frontend/src/components/editor/cell/code/ai-completion-editor.tsx
+++ b/frontend/src/components/editor/cell/code/ai-completion-editor.tsx
@@ -57,6 +57,7 @@ export const AiCompletionEditor: React.FC<Props> = ({
} = useCompletion({
api: "/api/ai/completion",
headers: API.headers(),
+ streamMode: "text",
body: {
includeOtherCode: includeOtherCells ? getCodes(currentCode) : "",
code: currentCode,