diff --git a/frontend/src/_locales/ja/main.json b/frontend/src/_locales/ja/main.json
index 15b1c9e..8042868 100644
--- a/frontend/src/_locales/ja/main.json
+++ b/frontend/src/_locales/ja/main.json
@@ -269,5 +269,6 @@
"Server is working on deployment mode, please close the terminal window manually": "サーバーはデプロイモードで動作しています、ターミナルウィンドウを手動で閉じてください",
"Server is working on deployment mode, please exit the program manually to stop the server": "サーバーはデプロイモードで動作しています、サーバーを停止するにはプログラムを手動で終了してください",
"You can increase the number of stored layers in Configs page to improve performance": "パフォーマンスを向上させるために、保存されるレイヤーの数を設定ページで増やすことができます",
- "Failed to load model, try to increase the virtual memory (Swap of WSL) or use a smaller base model.": "モデルの読み込みに失敗しました、仮想メモリ (WSL Swap) を増やすか小さなベースモデルを使用してみてください。"
+ "Failed to load model, try to increase the virtual memory (Swap of WSL) or use a smaller base model.": "モデルの読み込みに失敗しました、仮想メモリ (WSL Swap) を増やすか小さなベースモデルを使用してみてください。",
+ "Save Conversation": "会話を保存"
}
\ No newline at end of file
diff --git a/frontend/src/_locales/zh-hans/main.json b/frontend/src/_locales/zh-hans/main.json
index 9cb4d4b..7f68e64 100644
--- a/frontend/src/_locales/zh-hans/main.json
+++ b/frontend/src/_locales/zh-hans/main.json
@@ -269,5 +269,6 @@
"Server is working on deployment mode, please close the terminal window manually": "服务器正在部署模式下运行,请手动关闭终端窗口",
"Server is working on deployment mode, please exit the program manually to stop the server": "服务器正在部署模式下运行,请手动退出程序以停止服务器",
"You can increase the number of stored layers in Configs page to improve performance": "你可以在配置页面增加载入显存层数以提升性能",
- "Failed to load model, try to increase the virtual memory (Swap of WSL) or use a smaller base model.": "模型载入失败,尝试增加虚拟内存(WSL Swap),或使用一个更小规模的基底模型"
+ "Failed to load model, try to increase the virtual memory (Swap of WSL) or use a smaller base model.": "模型载入失败,尝试增加虚拟内存(WSL Swap),或使用一个更小规模的基底模型",
+ "Save Conversation": "保存对话"
}
\ No newline at end of file
diff --git a/frontend/src/pages/Chat.tsx b/frontend/src/pages/Chat.tsx
index c2f2686..d0e8317 100644
--- a/frontend/src/pages/Chat.tsx
+++ b/frontend/src/pages/Chat.tsx
@@ -16,8 +16,11 @@ import {
Attach16Regular,
Delete28Regular,
Dismiss16Regular,
+ Dismiss24Regular,
RecordStop28Regular,
- Save28Regular
+ SaveRegular,
+ TextAlignJustify24Regular,
+ TextAlignJustifyRotate9024Regular
} from '@fluentui/react-icons';
import { CopyButton } from '../components/CopyButton';
import { ReadButton } from '../components/ReadButton';
@@ -26,9 +29,11 @@ import { WorkHeader } from '../components/WorkHeader';
import { DialogButton } from '../components/DialogButton';
import { OpenFileFolder, OpenOpenFileDialog, OpenSaveFileDialog } from '../../wailsjs/go/backend_golang/App';
import { absPathAsset, bytesToReadable, getServerRoot, toastWithButton } from '../utils';
-import { PresetsButton } from './PresetsManager/PresetsButton';
import { useMediaQuery } from 'usehooks-ts';
import { botName, ConversationMessage, MessageType, userName, welcomeUuid } from '../types/chat';
+import { Labeled } from '../components/Labeled';
+import { ValuedSlider } from '../components/ValuedSlider';
+import { PresetsButton } from './PresetsManager/PresetsButton';
let chatSseControllers: {
[id: string]: AbortController
@@ -188,11 +193,125 @@ const ChatMessageItem: FC<{
;
});
+const SidePanel: FC = observer(() => {
+ const [t] = useTranslation();
+ const mq = useMediaQuery('(min-width: 640px)');
+ const params = commonStore.chatParams;
+
+ return
-
- }
- size={mq ? 'large' : 'small'} shape="circular" appearance="subtle" title={t('Clear')}
- contentText={t('Are you sure you want to clear the conversation? It cannot be undone.')}
- onConfirm={() => {
- if (generating) {
- for (const id in chatSseControllers) {
- chatSseControllers[id].abort();
+