diff --git a/app/about/page.tsx b/app/about/page.tsx
index 98ce7fa..7060f7e 100644
--- a/app/about/page.tsx
+++ b/app/about/page.tsx
@@ -58,6 +58,12 @@ export default function About() {
+
+
+ This app is designed to run on Claude Opus 4.5 for best performance. However, due to higher-than-expected traffic, running the top-tier model has become cost-prohibitive. To avoid service interruptions and manage costs, I have switched the backend to Claude Haiku 4.5.
+
+
+
A Next.js web application that integrates AI capabilities with draw.io diagrams.
Create, modify, and enhance diagrams through natural language commands and AI-assisted visualization.
@@ -150,7 +156,16 @@ export default function About() {
{/* Support */}
- Support & Contact
+
+
Support & Contact
+
+
If you find this project useful, please consider{" "}
diff --git a/components/chat-panel.tsx b/components/chat-panel.tsx
index 3170cec..6f72067 100644
--- a/components/chat-panel.tsx
+++ b/components/chat-panel.tsx
@@ -26,7 +26,10 @@ interface ChatPanelProps {
onToggleVisibility: () => void;
}
-export default function ChatPanel({ isVisible, onToggleVisibility }: ChatPanelProps) {
+export default function ChatPanel({
+ isVisible,
+ onToggleVisibility,
+}: ChatPanelProps) {
const {
loadDiagram: onDisplayChart,
handleExport: onExport,
@@ -44,8 +47,14 @@ export default function ChatPanel({ isVisible, onToggleVisibility }: ChatPanelPr
onExport();
}),
new Promise((_, reject) =>
- setTimeout(() => reject(new Error("Chart export timed out after 10 seconds")), 10000)
- )
+ setTimeout(
+ () =>
+ reject(
+ new Error("Chart export timed out after 10 seconds")
+ ),
+ 10000
+ )
+ ),
]);
};
// Add a step counter to track updates
@@ -96,7 +105,7 @@ export default function ChatPanel({ isVisible, onToggleVisibility }: ChatPanelPr
edits: Array<{ search: string; replace: string }>;
};
- let currentXml = '';
+ let currentXml = "";
try {
// Fetch current chart XML
currentXml = await onFetchChart();
@@ -116,7 +125,10 @@ export default function ChatPanel({ isVisible, onToggleVisibility }: ChatPanelPr
} catch (error) {
console.error("Edit diagram failed:", error);
- const errorMessage = error instanceof Error ? error.message : String(error);
+ const errorMessage =
+ error instanceof Error
+ ? error.message
+ : String(error);
// Provide detailed error with current diagram XML
addToolResult({
@@ -148,7 +160,7 @@ Please retry with an adjusted search pattern or use display_diagram if retries a
// Debug: Log status changes
useEffect(() => {
- console.log('[ChatPanel] Status changed to:', status);
+ console.log("[ChatPanel] Status changed to:", status);
}, [status]);
const onFormSubmit = async (e: React.FormEvent) => {
@@ -227,7 +239,10 @@ Please retry with an adjusted search pattern or use display_diagram if retries a
Chat
@@ -241,18 +256,14 @@ Please retry with an adjusted search pattern or use display_diagram if retries a
Next-AI-Drawio
-
+
About