fix(model): route requests through Electron net

This commit is contained in:
mesalogo
2026-10-08 21:58:00 +08:00
parent 47917094ad
commit adb58d9200
3 changed files with 9 additions and 2 deletions
+2
View File
@@ -8,6 +8,7 @@ import {
dialog,
globalShortcut,
Menu,
net,
safeStorage,
session,
shell,
@@ -1115,6 +1116,7 @@ if (hasSingleInstanceLock) {
: Promise.resolve([])
])
return createAgentRuntime(defaultWorkspace, settings, {
modelFetcher: net.fetch,
outputStore: { backingStore: storageFiles.backingStore },
outputAdopt: storageFiles.attachments.outputAdopt,
observeFailure: observeDesktopFailure,