mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-10-02 08:50:11 +02:00
UI updates and linting
This commit is contained in:
parent
98d7266291
commit
032c9d27b6
@ -150,13 +150,11 @@ export default function WorkspaceSettings({ workspace }) {
|
|||||||
Chat History
|
Chat History
|
||||||
</label>
|
</label>
|
||||||
<p className="text-xs text-gray-600 dark:text-stone-400">
|
<p className="text-xs text-gray-600 dark:text-stone-400">
|
||||||
Chat history: The number of previous chats that
|
The number of previous chats that will be included in the
|
||||||
will be included in the response's short-term memory.
|
response's short-term memory.
|
||||||
<br />
|
<br />
|
||||||
Recommend 20. Anything more than 45 is likely to lead to
|
Recommend 20. Anything more than 45 is likely to lead to
|
||||||
continuous chat failures depending on message size.
|
continuous chat failures depending on message size.
|
||||||
<br />
|
|
||||||
Recommended: 20
|
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<input
|
<input
|
||||||
|
@ -106,7 +106,10 @@ async function chatWithWorkspace(workspace, message, chatMode = "chat") {
|
|||||||
} else {
|
} else {
|
||||||
var messageLimit = workspace?.openAiHistory;
|
var messageLimit = workspace?.openAiHistory;
|
||||||
|
|
||||||
const rawHistory = await WorkspaceChats.forWorkspace(workspace.id, messageLimit);
|
const rawHistory = await WorkspaceChats.forWorkspace(
|
||||||
|
workspace.id,
|
||||||
|
messageLimit
|
||||||
|
);
|
||||||
const chatHistory = convertToPromptHistory(rawHistory);
|
const chatHistory = convertToPromptHistory(rawHistory);
|
||||||
const {
|
const {
|
||||||
response,
|
response,
|
||||||
|
Loading…
Reference in New Issue
Block a user