fix(basic.gblib): update ChatServices.ts #420

Closed
eltociear wants to merge 2540 commits from patch-1 into main
Showing only changes of commit 4a4a69790e - Show all commits

View file

@ -415,7 +415,8 @@ export class ChatServices {
result = result.content;
} else if (LLMMode === 'document-ref' || LLMMode === 'document') {
const res = await combineDocumentsChain.invoke(question);
result = res.text;
result = res.text? res.text: res;
sources = res.sources;
} else if (LLMMode === 'function') {
result = await conversationalToolChain.invoke({