Vvladimir-ikryanovUpdate MoBrowser to 2.13.0
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
Update MoBrowser to 2.13.0 | 1 个月前 | |
Update MoBrowser to 2.13.0 | 1 个月前 | |
fix: launch crash on Apple Silicon and add OpenRouter API-key support Two main-process changes, entangled in src/main/index.ts: 1. Fix #5 — app fails to launch (no window, no error) on macOS / Apple Silicon. MoBrowser 2.9 changed `ipc.registerService` to take the generated ServiceDescriptor as its first argument; the code still used the old single-argument form `registerService(AppService({...}))`, so the main process threw "invalid service descriptor" on startup and exited before showing a window. Switch to `registerService(AppServiceDescriptor, { ... })`. 2. Add OpenRouter as an image provider. OpenRouter generates images via the chat-completions endpoint (`modalities: ["image","text"]`) rather than OpenAI's /images/generations, so add a dedicated OpenRouterProvider and route to it automatically when the stored key is an OpenRouter key (`sk-or-…`); any other key keeps using OpenAI. The prefs slot and IPC surface are unchanged, so existing OpenAI keys keep working. API-key dialog copy now mentions both providers and links to the matching console. | 2 个月前 | |
Extract components into separate files | 3 个月前 |