diff --git a/config.json b/config.json index 4adc091..052a6b3 100644 --- a/config.json +++ b/config.json @@ -22,11 +22,11 @@ "name": "@aibrow/extension" }, - "defaultAiModel": "gemma-2b-instruct-q4-k-m", - "permissionRequiredForDefaultModel": true, + "defaultAiModel": "smollm2-1-7b-instruct-q4-k-m", + "permissionRequiredForDefaultModel": false, "permissionAlwaysAllowedOrigins": ["https://aibrow.ai"], - "autoDisposeModelTimeout": 300000, + "autoDisposeModelTimeout": 60000, "autoShutdownNativeClientTimeout": 300000, "updateCheckInterval": 21600000 diff --git a/src/shared/IPC/IPCClient/IPCInflightRequest.ts b/src/shared/IPC/IPCClient/IPCInflightRequest.ts index 153b558..abb673c 100644 --- a/src/shared/IPC/IPCClient/IPCInflightRequest.ts +++ b/src/shared/IPC/IPCClient/IPCInflightRequest.ts @@ -107,7 +107,7 @@ export class IPCInflightRequest { } #handleDisconnect = () => { - const lastError = chrome.runtime.lastError + const lastError = chrome?.runtime?.lastError if (lastError && typeof (lastError.message) === 'string') { this.#reject(new Error(lastError.message)) } else {