Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

text #51

Closed
wants to merge 4 commits into from
Closed

text #51

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/pages/chat/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ const Chat = ({ modelId, chatId }: { modelId: string; chatId: string }) => {
</MenuButton>
<MenuList minW={`90px !important`}>
<MenuItem onClick={() => router.replace(`/chat?modelId=${modelId}`)}>
新对话
New chat
</MenuItem>
<MenuItem
onClick={async () => {
Expand Down Expand Up @@ -827,7 +827,7 @@ const Chat = ({ modelId, chatId }: { modelId: string; chatId: string }) => {
_focusVisible={{
border: 'none'
}}
placeholder="提问"
placeholder="Send a message."
resize={'none'}
rows={1}
height={'22px'}
Expand Down
4 changes: 2 additions & 2 deletions src/pages/chat/share.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ const Chat = ({ shareId, historyId }: { shareId: string; historyId: string }) =>
</MenuButton>
<MenuList minW={`90px !important`}>
<MenuItem onClick={() => router.replace(`/chat/share?shareId=${shareId}`)}>
新对话
New chat
</MenuItem>
<MenuItem
onClick={() => {
Expand Down Expand Up @@ -718,7 +718,7 @@ const Chat = ({ shareId, historyId }: { shareId: string; historyId: string }) =>
_focusVisible={{
border: 'none'
}}
placeholder="提问"
placeholder="Send a message."
resize={'none'}
value={inputVal}
rows={1}
Expand Down
16 changes: 8 additions & 8 deletions src/service/plugins/searchKb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,18 +104,18 @@ export const searchKb = async ({
? [
{
obj: ChatRoleEnum.System,
value: `知识库是关于"${model.name}"的内容,根据知识库内容回答问题.`
value: `The knowledge base contains information about "${model.name}" and is used to answer questions based on its content.`
}
]
: [
{
obj: ChatRoleEnum.System,
value: `玩一个问答游戏,规则为:
1.你完全忘记你已有的知识
2.你只回答关于"${model.name}"的问题
3.你只从知识库中选择内容进行回答
4.如果问题不在知识库中,你会回答:"我不知道。"
请务必遵守规则`
value: `Play a question and answer game with the following rules:
1. You completely forget all the knowledge you already have.
2. You can only answer questions about "${model.name}".
3. You can only choose content from the knowledge base to answer.
4. If the question is not in the knowledge base, you will answer: "I don't know."
Please make sure to follow the rules.`
}
])
];
Expand All @@ -141,7 +141,7 @@ export const searchKb = async ({
searchPrompts: [
{
obj: ChatRoleEnum.System,
value: '对不起,你的问题不在知识库中。'
value: 'I\'m sorry, your question is not in the knowledge base.'
}
]
};
Expand Down