diff --git a/app/components/input-range.module.scss b/app/components/input-range.module.scss
index 5a555a457e3..e97410529bc 100644
--- a/app/components/input-range.module.scss
+++ b/app/components/input-range.module.scss
@@ -4,4 +4,9 @@
padding: 5px 15px 5px 10px;
font-size: 12px;
display: flex;
+ max-width: 40%;
+
+ input[type="range"] {
+ max-width: calc(100% - 50px);
+ }
}
diff --git a/app/components/message-selector.tsx b/app/components/message-selector.tsx
index 837591acb18..300d45375d1 100644
--- a/app/components/message-selector.tsx
+++ b/app/components/message-selector.tsx
@@ -126,6 +126,8 @@ export function MessageSelector(props: {
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [startIndex, endIndex]);
+ const LATEST_COUNT = 4;
+
return (
@@ -155,7 +157,7 @@ export function MessageSelector(props: {
props.updateSelection((selection) => {
selection.clear();
messages
- .slice(messageCount - 10)
+ .slice(messageCount - LATEST_COUNT)
.forEach((m) => selection.add(m.id!));
})
}
diff --git a/app/constant.ts b/app/constant.ts
index 577c0af69cd..0fb18c2fb31 100644
--- a/app/constant.ts
+++ b/app/constant.ts
@@ -42,3 +42,5 @@ export const ACCESS_CODE_PREFIX = "ak-";
export const LAST_INPUT_KEY = "last-input";
export const REQUEST_TIMEOUT_MS = 60000;
+
+export const EXPORT_MESSAGE_CLASS_NAME = "export-markdown";
diff --git a/app/locales/cn.ts b/app/locales/cn.ts
index 989a54bf669..48134e38360 100644
--- a/app/locales/cn.ts
+++ b/app/locales/cn.ts
@@ -58,7 +58,7 @@ const cn = {
Select: {
Search: "搜索消息",
All: "选取全部",
- Latest: "最近十条",
+ Latest: "最近几条",
Clear: "清除选中",
},
Memory: {
diff --git a/next.config.mjs b/next.config.mjs
index 9c0ce9fa364..34c058b7cbe 100644
--- a/next.config.mjs
+++ b/next.config.mjs
@@ -11,6 +11,10 @@ const nextConfig = {
source: "/google-fonts/:path*",
destination: "https://fonts.googleapis.com/:path*",
},
+ {
+ source: "/sharegpt",
+ destination: "https://sharegpt.com/api/conversations",
+ },
];
const apiUrl = process.env.API_URL;