diff --git a/app/components/new-chat.tsx b/app/components/new-chat.tsx
index 76cbbeeb1..54c646f23 100644
--- a/app/components/new-chat.tsx
+++ b/app/components/new-chat.tsx
@@ -17,21 +17,13 @@ import { useCommand } from "../command";
import { showConfirm } from "./ui-lib";
import { BUILTIN_MASK_STORE } from "../masks";
-function getIntersectionArea(aRect: DOMRect, bRect: DOMRect) {
- const xmin = Math.max(aRect.x, bRect.x);
- const xmax = Math.min(aRect.x + aRect.width, bRect.x + bRect.width);
- const ymin = Math.max(aRect.y, bRect.y);
- const ymax = Math.min(aRect.y + aRect.height, bRect.y + bRect.height);
- const width = xmax - xmin;
- const height = ymax - ymin;
- const intersectionArea = width < 0 || height < 0 ? 0 : width * height;
- return intersectionArea;
-}
-
function MaskItem(props: { mask: Mask; onClick?: () => void }) {
return (
);
diff --git a/app/constant.ts b/app/constant.ts
index 561899769..69d5c511f 100644
--- a/app/constant.ts
+++ b/app/constant.ts
@@ -84,6 +84,8 @@ You are ChatGPT, a large language model trained by OpenAI.
Knowledge cutoff: {{cutoff}}
Current model: {{model}}
Current time: {{time}}
+Latex inline: $x^2$
+Latex block: $$e=mc^2$$
`;
export const SUMMARIZE_MODEL = "gpt-3.5-turbo";
diff --git a/app/locales/cn.ts b/app/locales/cn.ts
index e721adef7..50dd44284 100644
--- a/app/locales/cn.ts
+++ b/app/locales/cn.ts
@@ -85,8 +85,8 @@ const cn = {
Copy: "全部复制",
Download: "下载文件",
Share: "分享到 ShareGPT",
- MessageFromYou: "来自你的消息",
- MessageFromChatGPT: "来自 ChatGPT 的消息",
+ MessageFromYou: "用户",
+ MessageFromChatGPT: "ChatGPT",
Format: {
Title: "导出格式",
SubTitle: "可以导出 Markdown 文本或者 PNG 图片",
@@ -441,6 +441,9 @@ const cn = {
Config: "配置",
},
Exporter: {
+ Description : {
+ Title: "只有清除上下文之后的消息会被展示"
+ },
Model: "模型",
Messages: "消息",
Topic: "主题",
diff --git a/app/locales/en.ts b/app/locales/en.ts
index c6e61ecab..f90cffd4c 100644
--- a/app/locales/en.ts
+++ b/app/locales/en.ts
@@ -442,6 +442,9 @@ const en: LocaleType = {
Config: "Config",
},
Exporter: {
+ Description: {
+ Title: "Only messages after clearing the context will be displayed"
+ },
Model: "Model",
Messages: "Messages",
Topic: "Topic",
diff --git a/app/locales/id.ts b/app/locales/id.ts
index 4da55948e..571156a57 100644
--- a/app/locales/id.ts
+++ b/app/locales/id.ts
@@ -368,6 +368,9 @@ const id: PartialLocaleType = {
Edit: "Edit",
},
Exporter: {
+ Description: {
+ Title: "Hanya pesan setelah menghapus konteks yang akan ditampilkan"
+ },
Model: "Model",
Messages: "Pesan",
Topic: "Topik",