fix: docker rag bug

This commit is contained in:
Hk-Gosuto
2024-04-08 12:42:10 +08:00
parent b00e9f0c79
commit dc4137505e
11 changed files with 20 additions and 16 deletions

View File

@@ -374,9 +374,9 @@ export const useChatStore = createPersistStore(
session.messages.push(savedUserMessage);
session.messages.push(botMessage);
});
const isEnableRAG = attachFiles && attachFiles?.length > 0;
var api: ClientApi;
api = new ClientApi(ModelProvider.GPT);
const isEnableRAG = !!process.env.NEXT_PUBLIC_ENABLE_RAG;
if (
config.pluginConfig.enable &&
session.mask.usePlugins &&