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() { }}>