summaryrefslogtreecommitdiff
path: root/extension
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-08-27 23:27:03 -0700
committerNate Sesti <sestinj@gmail.com>2023-08-27 23:27:03 -0700
commite839427b02fedba1f869e9f1260b9c2095611d23 (patch)
tree2ef9966dfd719c03e565a85dbafc1c893bf533d9 /extension
parent5c09b8077588a447d6eaac9b7f624571be3ddb1d (diff)
downloadsncontinue-e839427b02fedba1f869e9f1260b9c2095611d23.tar.gz
sncontinue-e839427b02fedba1f869e9f1260b9c2095611d23.tar.bz2
sncontinue-e839427b02fedba1f869e9f1260b9c2095611d23.zip
refactor: :zap: use code llama / llama2 prompt for TogetherLLM
Diffstat (limited to 'extension')
-rw-r--r--extension/src/activation/environmentSetup.ts7
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;
+ }
}
};