Commit f460692
committed
Migrate to @google/genai SDK and fix Gemini API test
- Replace legacy @google/generative-ai with new @google/genai SDK
- Add model fallback chain: gemini-3.5-flash -> gemini-3-flash-preview -> gemini-2.5-flash
- Fix onboarding API key test checking wrong property (result.success vs result.ok)
- Improve 503/high-demand and quota error messages
- Fix packaged app icon paths using __dirname
- Unpack icons and prompts from asar so they load in packaged builds1 parent a07a046 commit f460692
7 files changed
Lines changed: 619 additions & 133 deletions
File tree
- src
- core
- services
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1551 | 1551 | | |
1552 | 1552 | | |
1553 | 1553 | | |
1554 | | - | |
| 1554 | + | |
1555 | 1555 | | |
1556 | 1556 | | |
1557 | 1557 | | |
| |||
1636 | 1636 | | |
1637 | 1637 | | |
1638 | 1638 | | |
1639 | | - | |
| 1639 | + | |
1640 | 1640 | | |
1641 | 1641 | | |
1642 | 1642 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
| 201 | + | |
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
| |||
0 commit comments