Skip to content

Open-source AI browser agent for Chrome and Firefox (monorepo) 🧠

Merge pull request #3035 from xianhongtao/feat/deepseek-provider

Emre Sokullu7ca0c6eca406
diff --cc src/chrome/src/providers/manager.js
index 54fe85ea6,73f3d5691..964520242
--- a/src/chrome/src/providers/manager.js
+++ b/src/chrome/src/providers/manager.js
@@@ -980,33 -983,13 +995,37 @@@ export class ProviderManager
if (untouchedDeepSeekDefault) {
migrated.deepseek = {
...storedDeepSeek,
- baseUrl: DEEPSEEK_DEFAULT_BASE_URL,
+ baseUrl: DEEPSEEK_BASE_URL,
+ model: DEEPSEEK_DEFAULT_MODEL,
+ inputCostPerMillionUsd: 0.14,
+ cacheReadCostPerMillionUsd: 0.0028,
+ outputCostPerMillionUsd: 0.56,
};
}
+ // WebGPU now ships Compass Tiny v2.1 only (32k). Migrate untouched
+ // LFM2.5 2.6B 16k defaults so fresh and uncustomized installs land on
+ // Compass without wiping an explicitly chosen model.
+ if (migrated.webgpu
+ && String(migrated.webgpu.model || '').trim() === WEBGPU_MODEL_ID
+ && migrated.webgpu.configured !== true
+ && Number(migrated.webgpu.contextWindow) === 16384) {
+ migrated.webgpu = {
+ ...migrated.webgpu,
+ model: WEBGPU_COMPASS_TINY_V2_MODEL_ID,
+ contextWindow: 32768,
+ };
+ }
+ // Compass itself shipped at 16k before the 32k default. Bump untouched
+ // Compass 16k configs to 32k.
+ if (migrated.webgpu
+ && String(migrated.webgpu.model || '').trim() === WEBGPU_COMPASS_TINY_V2_MODEL_ID
+ && migrated.webgpu.configured !== true
+ && Number(migrated.webgpu.contextWindow) === 16384) {
+ migrated.webgpu = {
+ ...migrated.webgpu,
+ contextWindow: 32768,
+ };
+ }
this._migrateUntouchedShippedDefaults(migrated);
// The OpenCode entry is editable, so only replace the retired shipped
// model while it still points at the official Zen endpoint. In particular,