From 4bd2ff26d308d096f703b5b308d9660d6bbaf0fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerg=C5=91=20M=C3=B3ricz?= Date: Thu, 22 Aug 2024 14:37:09 +0200 Subject: [PATCH] fix(llm-extract): pass stacktrace properly --- apps/api/src/lib/LLM-extraction/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/api/src/lib/LLM-extraction/index.ts b/apps/api/src/lib/LLM-extraction/index.ts index 85a7e995..af8b0bb1 100644 --- a/apps/api/src/lib/LLM-extraction/index.ts +++ b/apps/api/src/lib/LLM-extraction/index.ts @@ -46,7 +46,7 @@ export async function generateCompletions( return completionResult; } catch (error) { Logger.error(`Error generating completions: ${error}`); - throw new Error(`Error generating completions: ${error.message}`); + throw error; } default: throw new Error("Invalid client");