mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-09 11:36:38 +08:00
Merge 2b5fbb7f18
into afa1a4303b
This commit is contained in:
commit
252be6b3a1
@ -37,6 +37,7 @@ import AutoIcon from "../icons/auto.svg";
|
||||
import BottomIcon from "../icons/bottom.svg";
|
||||
import StopIcon from "../icons/pause.svg";
|
||||
import RobotIcon from "../icons/robot.svg";
|
||||
import AddIcon from "../icons/add.svg";
|
||||
|
||||
import {
|
||||
ChatMessage,
|
||||
@ -99,6 +100,8 @@ import { ExportMessageModal } from "./exporter";
|
||||
import { getClientConfig } from "../config/client";
|
||||
import { useAllModels } from "../utils/hooks";
|
||||
import { MultimodalContent } from "../client/api";
|
||||
import { InputRange } from "./input-range";
|
||||
import { config } from "process";
|
||||
|
||||
const Markdown = dynamic(async () => (await import("./markdown")).Markdown, {
|
||||
loading: () => <LoadingIcon />,
|
||||
@ -587,6 +590,15 @@ export function ChatActions(props: {
|
||||
icon={<RobotIcon />}
|
||||
/>
|
||||
|
||||
<ChatAction
|
||||
text={Locale.Chat.InputActions.NewChat}
|
||||
icon={<AddIcon />}
|
||||
onClick={() => {
|
||||
chatStore.newSession(chatStore.currentSession().mask);
|
||||
navigate(Path.Chat);
|
||||
}}
|
||||
/>
|
||||
|
||||
{showModelSelector && (
|
||||
<Selector
|
||||
defaultSelectedValue={`${currentModel}@${currentProviderName}`}
|
||||
|
@ -62,6 +62,7 @@ const cn = {
|
||||
Prompt: "快捷指令",
|
||||
Masks: "所有面具",
|
||||
Clear: "清除聊天",
|
||||
NewChat: "另起聊天",
|
||||
Settings: "对话设置",
|
||||
UploadImage: "上传图片",
|
||||
},
|
||||
|
@ -64,6 +64,7 @@ const en: LocaleType = {
|
||||
Prompt: "Prompts",
|
||||
Masks: "Masks",
|
||||
Clear: "Clear Context",
|
||||
NewChat: "New Chat",
|
||||
Settings: "Settings",
|
||||
UploadImage: "Upload Images",
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user