fix(llm-extract): pass stacktrace properly

This commit is contained in:
Gergő Móricz 2024-08-22 14:37:09 +02:00
parent e4adbaa88e
commit 4bd2ff26d3

View File

@ -46,7 +46,7 @@ export async function generateCompletions(
return completionResult; return completionResult;
} catch (error) { } catch (error) {
Logger.error(`Error generating completions: ${error}`); Logger.error(`Error generating completions: ${error}`);
throw new Error(`Error generating completions: ${error.message}`); throw error;
} }
default: default:
throw new Error("Invalid client"); throw new Error("Invalid client");