We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf9087f commit 245abaaCopy full SHA for 245abaa
tools/server/webui/src/components/Sidebar.tsx
@@ -149,14 +149,16 @@ export default function Sidebar() {
149
navigate('/');
150
}
151
}}
152
- onDownload={() => {
+ onDownload={async () => {
153
if (isGenerating(conv.id)) {
154
toast.error(
155
'Cannot download conversation while generating'
156
);
157
return;
158
159
- const conversationJson = JSON.stringify(conv, null, 2);
+ const msgs = await StorageUtils.getMessages(conv.id);
160
+ const dict = { conv: conv, messages: msgs };
161
+ const conversationJson = JSON.stringify(dict, null, 2);
162
const blob = new Blob([conversationJson], {
163
type: 'application/json',
164
});
0 commit comments