Open-source AI browser agent for Chrome and Firefox (monorepo) ðŸ§
JavaScript ai-agentai-agentsai-toolsbrowser-aibrowser-automationbrowser-extensionchrome-aichrome-devtoolschrome-extensionchrome-extensionsfirefox-addonfirefox-addonsfirefox-extensionfirefox-extensionsgemmagemma4minimaxoffline-aioffline-llmqwen
fix(providers): resolve api-route catalog, vision, firefox icon and doc issues
Codex release-state testad6d3c198ff6
diff --git a/README.md b/README.mdindex 38d7ee576..4c81b25df 100644--- a/README.md+++ b/README.md@@ -126,7 +126,7 @@ preview `ollama launch webbrain --model <model>` handoff. Details:**Cloud APIs** — OpenAI, Anthropic Claude, Google Gemini, Azure OpenAI, AWSBedrock, Mistral, DeepSeek, xAI Grok, MiniMax, Kimi, Qwen, z.ai GLM, Groq,Together, Cloudflare, Nvidia NIM, Hugging Face, Fireworks, OpenRouter, and more.-The Providers page ships **116 built-in provider cards on Chromium** (115 on Firefox),+The Providers page ships **117 built-in provider cards on Chromium** (116 on Firefox),including an endpoint-free local WebGPU option with the tested LFM2.5 2.6Bpreset and an experimental custom Hugging Face ONNX repository option —see the [full catalog](docs/providers-and-models.md#extended-provider-catalog).diff --git a/docs/providers-and-models.md b/docs/providers-and-models.mdindex 46a164730..2f8516d3b 100644--- a/docs/providers-and-models.md+++ b/docs/providers-and-models.md@@ -506,11 +506,11 @@ times the standard rate.### Extended provider catalog-WebBrain also ships 82 disabled-by-default provider cards. Most are sourced+WebBrain also ships 83 disabled-by-default provider cards. Most are sourcedfrom the OpenCode provider catalog snapshot at commit`62e4641235d7847dadc60da37cca8a023dd54fc1`; provider-specific additions usetheir official API documentation. Together with the original cards, the-Providers page lists **116 built-in providers on Chromium** and **115 on Firefox**; the+Providers page lists **117 built-in providers on Chromium** and **116 on Firefox**; thedifference is the Chromium-only in-browser WebGPU runtime.| IDs |@@ -599,6 +599,18 @@ the default `gpt-5.4-mini` model (400000 tokens), then click **TestConnection**. Interactive Ask streaming, tool calls, and vision work throughthe existing OpenAI-compatible path.+#### API Route++[API Route](https://api-route.com) is an OpenAI-compatible provider at+`https://global.api-route.com/v1`. Open **Providers -> LLM -> API Route**, enter+your own API key, keep the default model `gpt-6.1-sol`, and click **Test+Connection**. API Route bills usage separately. The card starts disabled.++Interactive Ask streaming, tool calls, and vision work through the existing+OpenAI-compatible path. The 32768-token context setting is a conservative+application budget, not an advertised model context limit; adjust it to a limit+verified for your selected model and account.+### Ask response streamingProviders with `supportsAskStreaming` stream visible text during interactive@@ -1210,9 +1222,3 @@ myprovider: {```Vision is auto-detected via model-name regex. If the provider has a known set of vision models, extend `_modelNameSniffedVision()` in `openai.js`, or add a vendor subclass the way `providers/deepseek.js` does. Set `supportsStreamUsageOptions: true` only for providers that accept OpenAI-style `stream_options.include_usage`; leave it false when a provider returns usage without accepting that request field.--## API Route--[API Route](https://api-route.com) is an OpenAI-compatible provider. Open **Providers -> LLM -> API Route**, enter your own API key, keep the default model gpt-6.1-sol, and click **Test Connection**. Requests use https://global.api-route.com/v1; API Route bills usage separately. The card starts disabled.--Text chat, Ask streaming and tool calls use the existing compatible adapter. Vision is disabled by default. The 32768-token context setting is a conservative WebBrain budget, not a claim about the model or upstream context limit; adjust it only to a limit verified for your selected model and account. No price metadata is assumed.diff --git a/src/chrome/src/providers/provider-catalog.js b/src/chrome/src/providers/provider-catalog.jsindex 7994a1872..a4defd8c9 100644--- a/src/chrome/src/providers/provider-catalog.js+++ b/src/chrome/src/providers/provider-catalog.js@@ -61,7 +61,7 @@ function provider(id, label, baseUrl, model, contextWindow, options = {}) {const PROVIDERS = [// Conservative application budget, not an advertised model context limit.- provider('api-route', 'API Route', 'https://global.api-route.com/v1', 'gpt-6.1-sol', 32768, { apiKeyUrl: 'https://api-route.com' }),+ provider('api-route', 'API Route', 'https://global.api-route.com/v1', 'gpt-6.1-sol', 32768, { apiKeyUrl: 'https://api-route.com', supportsVision: true }),provider('302ai', '302.AI', 'https://api.302.ai/v1', 'gpt-5.4-mini-2026-03-17', 400000, { apiKeyUrl: 'https://doc.302.ai', supportsVision: true, inputCostPerMillionUsd: 0.75, outputCostPerMillionUsd: 4.5 }),provider('abacus', 'Abacus', 'https://routellm.abacus.ai/v1', 'o3', 200000, { apiKeyUrl: 'https://abacus.ai/help/api', supportsVision: true, inputCostPerMillionUsd: 2, cacheReadCostPerMillionUsd: 0.5, outputCostPerMillionUsd: 8 }),provider('aihubmix', 'AIHubMix', 'https://aihubmix.com/v1', 'coding-minimax-m2.7', 204800, { apiKeyUrl: 'https://docs.aihubmix.com', inputCostPerMillionUsd: 0.2, outputCostPerMillionUsd: 0.2 }),diff --git a/src/firefox/src/providers/provider-catalog.js b/src/firefox/src/providers/provider-catalog.jsindex 7994a1872..a4defd8c9 100644--- a/src/firefox/src/providers/provider-catalog.js+++ b/src/firefox/src/providers/provider-catalog.js@@ -61,7 +61,7 @@ function provider(id, label, baseUrl, model, contextWindow, options = {}) {const PROVIDERS = [// Conservative application budget, not an advertised model context limit.- provider('api-route', 'API Route', 'https://global.api-route.com/v1', 'gpt-6.1-sol', 32768, { apiKeyUrl: 'https://api-route.com' }),+ provider('api-route', 'API Route', 'https://global.api-route.com/v1', 'gpt-6.1-sol', 32768, { apiKeyUrl: 'https://api-route.com', supportsVision: true }),provider('302ai', '302.AI', 'https://api.302.ai/v1', 'gpt-5.4-mini-2026-03-17', 400000, { apiKeyUrl: 'https://doc.302.ai', supportsVision: true, inputCostPerMillionUsd: 0.75, outputCostPerMillionUsd: 4.5 }),provider('abacus', 'Abacus', 'https://routellm.abacus.ai/v1', 'o3', 200000, { apiKeyUrl: 'https://abacus.ai/help/api', supportsVision: true, inputCostPerMillionUsd: 2, cacheReadCostPerMillionUsd: 0.5, outputCostPerMillionUsd: 8 }),provider('aihubmix', 'AIHubMix', 'https://aihubmix.com/v1', 'coding-minimax-m2.7', 204800, { apiKeyUrl: 'https://docs.aihubmix.com', inputCostPerMillionUsd: 0.2, outputCostPerMillionUsd: 0.2 }),diff --git a/src/firefox/src/ui/provider-icons.js b/src/firefox/src/ui/provider-icons.jsindex 5a4044672..050b7d609 100644--- a/src/firefox/src/ui/provider-icons.js+++ b/src/firefox/src/ui/provider-icons.js@@ -27,7 +27,6 @@ export const PROVIDER_ICON_FILES = {gpt4all: 'gpt4all.svg',local_openai_proxy: 'local_openai_proxy.svg',unsloth: 'unsloth.svg',- webgpu: 'webgpu.svg',azure_openai: 'azure_openai.svg',aws_bedrock: 'aws_bedrock.svg',openai: 'openai.svg',@@ -99,7 +98,6 @@ export const PROVIDER_SHORT_LABELS = {gpt4all: 'GPT4All',local_openai_proxy: 'Local Proxy',unsloth: 'Unsloth Studio',- webgpu: 'WebGPU',azure_openai: 'Azure OpenAI',aws_bedrock: 'AWS Bedrock',openai: 'OpenAI',diff --git a/test/provider-catalog-integrations.mjs b/test/provider-catalog-integrations.mjsindex ef715907e..830be5bbb 100644--- a/test/provider-catalog-integrations.mjs+++ b/test/provider-catalog-integrations.mjs@@ -18,7 +18,7 @@ for (const browser of ['chrome', 'firefox']) {assert.equal(apiRoute.contextWindow, 32768);assert.equal(apiRoute.enabled, false);assert.equal(apiRoute.apiKey, '');- assert.equal(apiRoute.supportsVision, false);+ assert.equal(apiRoute.supportsVision, true);assert.equal(apiRoute.supportsTools, true);assert.equal(apiRoute.supportsAskStreaming, true);assert.deepEqual(ADDITIONAL_PROVIDER_UI['api-route'].suggestions, ['gpt-6.1-sol']);diff --git a/test/run.js b/test/run.jsindex ff7f024eb..e1ea79f88 100644--- a/test/run.js+++ b/test/run.js@@ -76473,7 +76473,7 @@ test('extended provider catalog is complete, mirrored, safe, and excluded-provid`.trim().split(/\s+/);const excluded = ['github-models', 'github-copilot', 'gitlab', 'sap-ai-core'];- assert.equal(expectedIds.length, 82);+ assert.equal(expectedIds.length, 83);assert.deepEqual(ProviderCatalogCh.ADDITIONAL_PROVIDER_IDS, expectedIds);assert.deepEqual(ProviderCatalogFx.ADDITIONAL_PROVIDER_IDS, expectedIds);assert.deepEqual(@@ -76488,8 +76488,8 @@ test('extended provider catalog is complete, mirrored, safe, and excluded-provid]) {const defaults = new PM()._defaultConfigs();// Includes the sidepanel-only WebBrain Compass XL runtime profile, which is- // deliberately omitted from the 116/115 Settings provider cards.- const expectedDefaultCount = label === 'chrome' ? 117 : 116;+ // deliberately omitted from the 117/116 Settings provider cards.+ const expectedDefaultCount = label === 'chrome' ? 118 : 117;assert.equal(Object.keys(defaults).length,expectedDefaultCount,@@ -76665,6 +76665,30 @@ test('extended provider catalog is complete, mirrored, safe, and excluded-providProviderCatalogCh.ADDITIONAL_PROVIDER_UI.opper.suggestions,['gpt-5.4-mini', 'claude-sonnet-4-6', 'gemini-3.8-flash', 'deepseek-v4-flash'],);+ assert.deepEqual(+ {+ baseUrl: ProviderCatalogCh.ADDITIONAL_PROVIDER_DEFAULTS['api-route'].baseUrl,+ model: ProviderCatalogCh.ADDITIONAL_PROVIDER_DEFAULTS['api-route'].model,+ contextWindow: ProviderCatalogCh.ADDITIONAL_PROVIDER_DEFAULTS['api-route'].contextWindow,+ supportsVision: ProviderCatalogCh.ADDITIONAL_PROVIDER_DEFAULTS['api-route'].supportsVision,+ supportsTools: ProviderCatalogCh.ADDITIONAL_PROVIDER_DEFAULTS['api-route'].supportsTools,+ supportsAskStreaming: ProviderCatalogCh.ADDITIONAL_PROVIDER_DEFAULTS['api-route'].supportsAskStreaming,+ apiKeyUrl: ProviderCatalogCh.ADDITIONAL_PROVIDER_DEFAULTS['api-route'].apiKeyUrl,+ },+ {+ baseUrl: 'https://global.api-route.com/v1',+ model: 'gpt-6.1-sol',+ contextWindow: 32768,+ supportsVision: true,+ supportsTools: true,+ supportsAskStreaming: true,+ apiKeyUrl: 'https://api-route.com',+ },+ );+ assert.deepEqual(+ ProviderCatalogCh.ADDITIONAL_PROVIDER_UI['api-route'].suggestions,+ ['gpt-6.1-sol'],+ );assert.deepEqual(ProviderCatalogCh.ADDITIONAL_PROVIDER_UI['kimi-for-coding'].suggestions,['kimi-for-coding', 'kimi-for-coding-highspeed', 'k3'],