diff --git a/interface/web/src/App.jsx b/interface/web/src/App.jsx index f96821d..25996d7 100644 --- a/interface/web/src/App.jsx +++ b/interface/web/src/App.jsx @@ -4,6 +4,7 @@ import { Playbook } from "./Playbook"; import { Models } from "./Models"; import { Settings } from "./Settings"; import { Memory } from "./Memory"; +import { Documents } from "./Documents"; import { Logs } from "./Logs"; import { API_BASE } from "./config"; @@ -128,6 +129,15 @@ function App() { } }; + // Download ShareGPT JSONL β€” one conversation if convId given, else all. + const exportConversations = (e, convId) => { + if (e) e.stopPropagation(); + const url = convId + ? `${API_BASE}/conversations/export?conversation_id=${encodeURIComponent(convId)}` + : `${API_BASE}/conversations/export`; + window.open(url, "_blank"); + }; + const deleteConversation = async (e, conversationId) => { e.stopPropagation(); if (!window.confirm("Delete this conversation?")) return; @@ -149,6 +159,7 @@ function App() { { key: "playbook", label: "πŸ“– Playbooks" }, { key: "models", label: "πŸ€– Models", badge: isModelPulling }, { key: "memory", label: "🧠 Memory" }, + { key: "documents", label: "πŸ“„ Documents" }, { key: "logs", label: "πŸ“œ Logs" }, { key: "settings", label: "βš™οΈ Settings" }, ]; @@ -295,21 +306,39 @@ function App() { }}>
Chats - +
+ + +
{isHover && ( <> +