Skip to content

Commit

Permalink
Update the default model. Error capture when not running in the chrom…
Browse files Browse the repository at this point in the history
…e extension scope
  • Loading branch information
Thomas101 committed Nov 4, 2024
1 parent 64f4c3a commit 77ad2d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/shared/IPC/IPCClient/IPCInflightRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 77ad2d1

Please sign in to comment.