Skip to content

Commit

Permalink
Set ProxyToWorker to false
Browse files Browse the repository at this point in the history
  • Loading branch information
mirko314 committed Jan 24, 2025
1 parent 73d5d2f commit 779c06b
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions packages/web/src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,17 @@ const ConfigSchema = z
.describe('The device to run the model on.'),
proxyToWorker: z
.boolean()
.default(true)
.describe('Whether to proxy inference to a web worker.'),
.default(false)
.describe('Whether to proxy inference to a web worker.')
// warn if used that it does not work:
.transform((val) => {
if (val) {
console.warn(
'proxyToWorker can currently cause issues when set to true. Please set to false if you experiencing issues.'
);
}
return val;
}),
fetchArgs: z
.any()
.default({})
Expand Down

0 comments on commit 779c06b

Please sign in to comment.