From 1f59d7b16783503829c9a5e40c1f8c92481a856f Mon Sep 17 00:00:00 2001 From: 0xSage Date: Tue, 28 Nov 2023 18:15:36 +0800 Subject: [PATCH 1/2] chore: updated copy grammar --- web/hooks/useActiveModel.ts | 8 ++++---- web/hooks/useSendChatMessage.ts | 2 +- web/screens/Chat/ChatInstruction/index.tsx | 9 +++------ web/screens/Chat/index.tsx | 6 +++--- web/screens/MyModels/BlankState/index.tsx | 6 +++--- web/screens/MyModels/index.tsx | 2 +- .../Settings/CorePlugins/PreferencePlugins/index.tsx | 2 +- web/screens/Welcome/index.tsx | 6 +++--- 8 files changed, 19 insertions(+), 22 deletions(-) diff --git a/web/hooks/useActiveModel.ts b/web/hooks/useActiveModel.ts index eb207a8fd..5da30ecf7 100644 --- a/web/hooks/useActiveModel.ts +++ b/web/hooks/useActiveModel.ts @@ -27,7 +27,7 @@ export function useActiveModel() { (activeModel && activeModel.id === modelId) || (stateModel.model === modelId && stateModel.loading) ) { - console.debug(`Model ${modelId} is already init. Ignore..`) + console.debug(`Model ${modelId} is already initialized. Ignore..`) return } @@ -64,13 +64,13 @@ export function useActiveModel() { })) } else { console.debug( - `Init model ${modelId} successfully!, take ${ + `Model ${modelId} successfully initialized! Took ${ Date.now() - currentTime }ms` ) setActiveModel(model) toaster({ - title: 'Success start a Model', + title: 'Success!', description: `Model ${modelId} has been started.`, }) setStateModel(() => ({ @@ -89,7 +89,7 @@ export function useActiveModel() { setActiveModel(undefined) setStateModel({ state: 'start', loading: false, model: '' }) toaster({ - title: 'Success stop a Model', + title: 'Success!', description: `Model ${modelId} has been stopped.`, }) }, 500) diff --git a/web/hooks/useSendChatMessage.ts b/web/hooks/useSendChatMessage.ts index 42ccda9b2..ad03abfb6 100644 --- a/web/hooks/useSendChatMessage.ts +++ b/web/hooks/useSendChatMessage.ts @@ -49,7 +49,7 @@ export default function useSendChatMessage() { const summaryMsg: ChatCompletionMessage = { role: ChatCompletionRole.User, content: - 'summary this conversation in less than 5 words, the response should just include the summary', + 'Summarize this conversation in less than 5 words, the response should just include the summary', } // Request convo summary setTimeout(async () => { diff --git a/web/screens/Chat/ChatInstruction/index.tsx b/web/screens/Chat/ChatInstruction/index.tsx index bff82101e..a85faffbb 100644 --- a/web/screens/Chat/ChatInstruction/index.tsx +++ b/web/screens/Chat/ChatInstruction/index.tsx @@ -31,10 +31,7 @@ const ChatInstruction = () => { } return (
-

- What does this Assistant do? How does it behave? What should it avoid - doing? -

+

(Optional) Give your assistant an initial prompt.

{!isSettingInstruction && activeConvoId && ( <> )} @@ -60,7 +57,7 @@ const ChatInstruction = () => { className="w-32" onClick={() => setSystemPrompt(instruction)} > - Set Instruction + Give Instructions
)} diff --git a/web/screens/Chat/index.tsx b/web/screens/Chat/index.tsx index 492880e00..633c699cc 100644 --- a/web/screens/Chat/index.tsx +++ b/web/screens/Chat/index.tsx @@ -197,8 +197,8 @@ const ChatScreen = () => {
{downloadedModels.length === 0 && ( -

{`Ups, you don't have a Model`}

-

{`let’s download your first model.`}

+

{`Oops, you don't have a Model`}

+

{`Let’s download your first model.`}

diff --git a/web/screens/MyModels/index.tsx b/web/screens/MyModels/index.tsx index 43b421772..941fc1cbe 100644 --- a/web/screens/MyModels/index.tsx +++ b/web/screens/MyModels/index.tsx @@ -149,7 +149,7 @@ const MyModelsScreen = () => {
-

Download more model?

+

Download more models?

You have {downloadedModels.length} model(s) downloaded.  diff --git a/web/screens/Settings/CorePlugins/PreferencePlugins/index.tsx b/web/screens/Settings/CorePlugins/PreferencePlugins/index.tsx index a0d979998..8486c0ac0 100644 --- a/web/screens/Settings/CorePlugins/PreferencePlugins/index.tsx +++ b/web/screens/Settings/CorePlugins/PreferencePlugins/index.tsx @@ -52,7 +52,7 @@ const PreferencePlugins = (props: Props) => { } toaster({ title: formatPluginsName(pluginName), - description: 'Success update preferences', + description: 'Successfully updated preferences', }) } diff --git a/web/screens/Welcome/index.tsx b/web/screens/Welcome/index.tsx index 30ca9a0f6..55e4f20ac 100644 --- a/web/screens/Welcome/index.tsx +++ b/web/screens/Welcome/index.tsx @@ -35,7 +35,7 @@ const WelcomeScreen = () => { > Welcome to Jan -

{`let’s download your first model`}

+

{`Let’s download your first model`}

)} @@ -57,7 +57,7 @@ const ChatInstruction = () => { className="w-32" onClick={() => setSystemPrompt(instruction)} > - Give Instructions + Set a Prompt
)}