diff --git a/core/llm/index.ts b/core/llm/index.ts index cc7d7123c..de55528a9 100644 --- a/core/llm/index.ts +++ b/core/llm/index.ts @@ -460,11 +460,7 @@ export abstract class BaseLLM implements ILLM { throw new Error(message); } } - //if e instance of LLMError, rethrow - if (e instanceof LLMError) { - throw e; - } - throw new Error(e.message); + throw e; } }; return withExponentialBackoff(