Skip to content

Commit c6f9e9d

Browse files
committed
providers: add API Route card
Signed-off-by: dennyho0917 <dennyho0917@gmail.com>
1 parent 24aa3c9 commit c6f9e9d

12 files changed

Lines changed: 43 additions & 8 deletions

File tree

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ preview `ollama launch webbrain --model <model>` handoff. Details:
126126
**Cloud APIs** — OpenAI, Anthropic Claude, Google Gemini, Azure OpenAI, AWS
127127
Bedrock, Mistral, DeepSeek, xAI Grok, MiniMax, Kimi, Qwen, z.ai GLM, Groq,
128128
Together, Cloudflare, Nvidia NIM, Hugging Face, Fireworks, OpenRouter, and more.
129-
The Providers page ships **115 built-in provider cards on Chromium** (114 on Firefox),
129+
The Providers page ships **116 built-in provider cards on Chromium** (115 on Firefox),
130130
including an endpoint-free local WebGPU option with the tested LFM2.5 2.6B
131131
preset and an experimental custom Hugging Face ONNX repository option —
132132
see the [full catalog](docs/providers-and-models.md#extended-provider-catalog).

‎docs/providers-and-models.md‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -506,16 +506,16 @@ times the standard rate.
506506

507507
### Extended provider catalog
508508

509-
WebBrain also ships 81 disabled-by-default provider cards. Most are sourced
509+
WebBrain also ships 82 disabled-by-default provider cards. Most are sourced
510510
from the OpenCode provider catalog snapshot at commit
511511
`62e4641235d7847dadc60da37cca8a023dd54fc1`; provider-specific additions use
512512
their official API documentation. Together with the original cards, the
513-
Providers page lists **115 built-in providers on Chromium** and **114 on Firefox**; the
513+
Providers page lists **116 built-in providers on Chromium** and **115 on Firefox**; the
514514
difference is the Chromium-only in-browser WebGPU runtime.
515515

516516
| IDs |
517517
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
518-
| `302ai`, `abacus`, `aihubmix`, `alibaba-coding-plan`, `alibaba-coding-plan-cn`, `azure-cognitive-services`, `bailing`, `baseten`, `berget`, `cerebras`, `cheaperinference`, `chutes`, `clarifai`, `cloudferro-sherlock`, `cohere`, `cortecs`, `deepinfra`, `digitalocean`, `dinference`, `drun`, `evroc`, `fastrouter`, `friendli` |
518+
| `api-route`, `302ai`, `abacus`, `aihubmix`, `alibaba-coding-plan`, `alibaba-coding-plan-cn`, `azure-cognitive-services`, `bailing`, `baseten`, `berget`, `cerebras`, `cheaperinference`, `chutes`, `clarifai`, `cloudferro-sherlock`, `cohere`, `cortecs`, `deepinfra`, `digitalocean`, `dinference`, `drun`, `evroc`, `fastrouter`, `friendli` |
519519
| `freebuff2api`, `google-vertex`, `google-vertex-anthropic`, `helicone`, `iflowcn`, `inception`, `inference`, `io-net`, `jiekou`, `kilo`, `kimi-for-coding`, `kuae-cloud-coding-plan`, `llama`, `lucidquery`, `meganova`, `minimax-cn-coding-plan`, `minimax-coding-plan`, `moark`, `modelscope`, `morph` |
520520
| `nano-gpt`, `nearai`, `nebius`, `nova`, `novita-ai`, `ollama-cloud`, `opencode`, `opencode-go`, `orcarouter`, `ovhcloud`, `perplexity`, `perplexity-agent`, `poe`, `pollinations`, `privatemode-ai`, `qihang-ai`, `qiniu-ai`, `requesty`, `scaleway`, `siliconflow`, `siliconflow-cn`, `stackit` |
521521
| `stepfun`, `submodel`, `synthetic`, `tencent-coding-plan`, `upstage`, `v0`, `venice`, `vercel`, `vivgrid`, `vultr`, `wandb`, `xiaomi`, `zai-coding-plan`, `zenmux`, `zhipuai`, `zhipuai-coding-plan` |
@@ -1195,3 +1195,9 @@ myprovider: {
11951195
```
11961196

11971197
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.
1198+
1199+
## API Route
1200+
1201+
[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.
1202+
1203+
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.

‎src/chrome/icons/providers/SOURCES.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,4 @@ Brand trademarks remain property of their owners; used only for provider identif
2828
| Where | Source |
2929
|-------|--------|
3030
| Settings → Advanced → Vision mode (inline SVG in `src/ui/settings.html`) | [Simple Icons](https://simpleicons.org/) `tesla` path data (CC0). Tesla is a trademark of Tesla, Inc.; the mark only illustrates the "Tesla" mode analogy and implies no affiliation. |
31+
| api-route.png | API Route official two-color ginkgo logo, supplied by the contributor affiliated with [API Route](https://api-route.com) |
23.5 KB
Loading

‎src/chrome/src/providers/provider-catalog.js‎

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/chrome/src/ui/provider-icons.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export const PROVIDER_ICON_FILES = {
4848
fireworks: 'fireworks.svg',
4949
z_ai: 'z_ai.svg',
5050
...Object.fromEntries(ADDITIONAL_PROVIDER_IDS.map((id) => [id, `${id}.svg`])),
51+
'api-route': 'api-route.png',
5152
};
5253

5354
export function providerIconUrl(id) {

‎src/firefox/icons/providers/SOURCES.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,4 @@ Brand trademarks remain property of their owners; used only for provider identif
2828
| Where | Source |
2929
|-------|--------|
3030
| Settings → Advanced → Vision mode (inline SVG in `src/ui/settings.html`) | [Simple Icons](https://simpleicons.org/) `tesla` path data (CC0). Tesla is a trademark of Tesla, Inc.; the mark only illustrates the "Tesla" mode analogy and implies no affiliation. |
31+
| api-route.png | API Route official two-color ginkgo logo, supplied by the contributor affiliated with [API Route](https://api-route.com) |
23.5 KB
Loading

‎src/firefox/src/providers/provider-catalog.js‎

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/firefox/src/ui/provider-icons.js‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export const PROVIDER_ICON_FILES = {
2727
gpt4all: 'gpt4all.svg',
2828
local_openai_proxy: 'local_openai_proxy.svg',
2929
unsloth: 'unsloth.svg',
30+
webgpu: 'webgpu.svg',
3031
azure_openai: 'azure_openai.svg',
3132
aws_bedrock: 'aws_bedrock.svg',
3233
openai: 'openai.svg',
@@ -47,6 +48,7 @@ export const PROVIDER_ICON_FILES = {
4748
fireworks: 'fireworks.svg',
4849
z_ai: 'z_ai.svg',
4950
...Object.fromEntries(ADDITIONAL_PROVIDER_IDS.map((id) => [id, `${id}.svg`])),
51+
'api-route': 'api-route.png',
5052
};
5153

5254
export function providerIconUrl(id) {
@@ -97,6 +99,7 @@ export const PROVIDER_SHORT_LABELS = {
9799
gpt4all: 'GPT4All',
98100
local_openai_proxy: 'Local Proxy',
99101
unsloth: 'Unsloth Studio',
102+
webgpu: 'WebGPU',
100103
azure_openai: 'Azure OpenAI',
101104
aws_bedrock: 'AWS Bedrock',
102105
openai: 'OpenAI',

0 commit comments

Comments
 (0)