Skip to content

Commit 6ef7e56

Browse files
committed
fix llama cpp service
1 parent d4268b3 commit 6ef7e56

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/core/src/services/LlamaCppService.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -143,16 +143,13 @@ class LlamaCppService {
143143
error
144144
);
145145
await this.deleteModel();
146-
await this.initializeModel();
146+
await this.checkModel();
147147
}
148148
this.modelInitializing = false;
149149
}
150150

151151
async checkModel() {
152-
console.log("Checking model")
153152
if (!fs.existsSync(this.modelPath)) {
154-
console.log("this.modelPath", this.modelPath);
155-
console.log("Model not found. Downloading...");
156153
await new Promise<void>((resolve, reject) => {
157154
const file = fs.createWriteStream(this.modelPath);
158155
let downloadedSize = 0;

0 commit comments

Comments
 (0)