Compare commits

...

2 Commits

Author SHA1 Message Date
timothycarambat
bbeec4dcf7 Merge branch 'desktop' of github.com:Mintplex-Labs/anything-llm into desktop 2024-02-23 11:15:43 -08:00
timothycarambat
7f88943838 patch bug with re-request on re-focus 2024-02-23 11:15:31 -08:00
2 changed files with 3 additions and 5 deletions

View File

@ -67,6 +67,7 @@ const Workspace = {
body: JSON.stringify({ message, mode }),
headers: baseHeaders(),
signal: ctrl.signal,
openWhenHidden: true,
async onopen(response) {
if (response.ok) {
return; // everything's good

View File

@ -1,3 +1,4 @@
const { NativeEmbedder } = require("../../EmbeddingEngines/native");
const { chatPrompt } = require("../../chats");
const { handleDefaultStreamResponse } = require("../../chats/stream");
@ -21,11 +22,7 @@ class LMStudioLLM {
user: this.promptWindowLimit() * 0.7,
};
if (!embedder)
throw new Error(
"INVALID LM STUDIO SETUP. No embedding engine has been set. Go to instance settings and set up an embedding interface to use LMStudio as your LLM."
);
this.embedder = embedder;
this.embedder = embedder ?? new NativeEmbedder();
this.defaultTemp = 0.7;
}