Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { SpeedInsights } from "@vercel/speed-insights/next";
import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import { Toaster } from "sonner";
Expand Down Expand Up @@ -81,6 +82,7 @@ export default function RootLayout({
<Toaster position="top-center" />
<SessionProvider>{children}</SessionProvider>
</ThemeProvider>
<SpeedInsights />
</body>
</html>
);
Expand Down
6 changes: 3 additions & 3 deletions components/multimodal-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -323,10 +323,10 @@ function PureMultimodalInput({
if (!input.trim() && attachments.length === 0) {
return;
}
if (status !== "ready") {
toast.error("Please wait for the model to finish its response!");
} else {
if (status === "ready") {
submitForm();
} else {
toast.error("Please wait for the model to finish its response!");
}
}}
>
Expand Down
6 changes: 3 additions & 3 deletions components/toolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ const Tool = ({
return;
}

if (selectedTool !== description) {
setSelectedTool(description);
} else {
if (selectedTool === description) {
setSelectedTool(null);
onClick({ sendMessage });
} else {
setSelectedTool(description);
}
};

Expand Down
2 changes: 1 addition & 1 deletion lib/editor/diff.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ export const patchTextNodes = (schema, oldNode, newNode) => {
const node = createTextNode(
schema,
sentence,
type !== DiffType.Unchanged ? [createDiffMark(schema, type)] : []
type === DiffType.Unchanged ? [] : [createDiffMark(schema, type)]
);
return node;
});
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"@vercel/blob": "^0.24.1",
"@vercel/functions": "^2.0.0",
"@vercel/otel": "^1.12.0",
"@vercel/speed-insights": "^2.0.0",
"@xyflow/react": "^12.10.0",
"ai": "6.0.37",
"bcrypt-ts": "^5.0.2",
Expand Down
34 changes: 34 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.