mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2026-06-12 21:25:46 +03:00
Fix undefined result in llm-instruction agent flow executor (#4676)
fix typo in llm-instruction agent flow executor
This commit is contained in:
@@ -33,7 +33,7 @@ async function executeLLMInstruction(config, context) {
|
||||
|
||||
introspect(`Successfully received LLM response`);
|
||||
if (resultVariable) config.resultVariable = resultVariable;
|
||||
return completion.result;
|
||||
return completion.textResponse;
|
||||
} catch (error) {
|
||||
logger(`LLM processing failed: ${error.message}`, error);
|
||||
throw new Error(`LLM processing failed: ${error.message}`);
|
||||
|
||||
Reference in New Issue
Block a user