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.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
chore(deps): update to ai-sdk/react (useChat import), isLoading → status (#5127)
Joaquin Corominadcd8e62c9d07
diff --git a/frontend/src/components/chat/chat-panel.tsx b/frontend/src/components/chat/chat-panel.tsxindex dfc9b466b6..019eb550c3 100644--- a/frontend/src/components/chat/chat-panel.tsx+++ b/frontend/src/components/chat/chat-panel.tsx@@ -28,7 +28,8 @@ import {useEffect,} from "react";import { generateUUID } from "@/utils/uuid";-import { type Message, useChat } from "ai/react";+import type { Message } from "ai/react";+import { useChat } from "@ai-sdk/react";import { PromptInput } from "../editor/ai/add-cell-with-ai";import type { ReactCodeMirrorRef } from "@uiw/react-codemirror";import { Tooltip, TooltipProvider } from "../ui/tooltip";diff --git a/frontend/src/plugins/impl/chat/chat-ui.tsx b/frontend/src/plugins/impl/chat/chat-ui.tsxindex 701413fa00..af6eefd4f7 100644--- a/frontend/src/plugins/impl/chat/chat-ui.tsx+++ b/frontend/src/plugins/impl/chat/chat-ui.tsx@@ -1,7 +1,8 @@/* Copyright 2024 Marimo. All rights reserved. */import { Spinner } from "@/components/icons/spinner";import { Logger } from "@/utils/Logger";-import { type Message, useChat } from "ai/react";+import type { Message } from "ai/react";+import { useChat } from "@ai-sdk/react";import React, { useEffect, useRef } from "react";import type {ChatMessage,@@ -92,7 +93,7 @@ export const Chatbot: React.FC<Props> = (props) => {input,setInput,handleSubmit,- isLoading,+ status,stop,error,reload,@@ -148,6 +149,8 @@ export const Chatbot: React.FC<Props> = (props) => {},});+ const isLoading = status === "submitted" || status === "streaming";+const handleDelete = (id: string) => {const index = messages.findIndex((message) => message.id === id);if (index !== -1) {