diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-08-27 23:27:03 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-08-27 23:27:03 -0700 |
commit | e839427b02fedba1f869e9f1260b9c2095611d23 (patch) | |
tree | 2ef9966dfd719c03e565a85dbafc1c893bf533d9 /extension/src/activation | |
parent | 5c09b8077588a447d6eaac9b7f624571be3ddb1d (diff) | |
download | sncontinue-e839427b02fedba1f869e9f1260b9c2095611d23.tar.gz sncontinue-e839427b02fedba1f869e9f1260b9c2095611d23.tar.bz2 sncontinue-e839427b02fedba1f869e9f1260b9c2095611d23.zip |
refactor: :zap: use code llama / llama2 prompt for TogetherLLM
Diffstat (limited to 'extension/src/activation')
-rw-r--r-- | extension/src/activation/environmentSetup.ts | 7 |
1 files changed, 5 insertions, 2 deletions
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; + } } }; |