From e839427b02fedba1f869e9f1260b9c2095611d23 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Sun, 27 Aug 2023 23:27:03 -0700 Subject: refactor: :zap: use code llama / llama2 prompt for TogetherLLM --- extension/src/activation/environmentSetup.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'extension/src/activation/environmentSetup.ts') diff --git a/extension/src/activation/environmentSetup.ts b/extension/src/activation/environmentSetup.ts index 2067f0fb..6b434756 100644 --- a/extension/src/activation/environmentSetup.ts +++ b/extension/src/activation/environmentSetup.ts @@ -330,8 +330,11 @@ export async function startContinuePythonServer(redownload: boolean = true) { child.unref(); } } catch (e: any) { - console.log("Error starting server:", e); - retry(e); + if (attempts < maxAttempts) { + retry(e); + } else { + throw e; + } } }; -- cgit v1.2.3-70-g09d2