thebird 1.2.94 → 1.2.96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/app.js +2 -1
- package/docs/chat-providers.js +1 -0
- package/package.json +1 -1
package/docs/app.js
CHANGED
|
@@ -29,7 +29,7 @@ class BirdChat extends HTMLElement {
|
|
|
29
29
|
connectedCallback() {
|
|
30
30
|
this.render();
|
|
31
31
|
Object.assign(window.__debug, { acp: { baseUrl: this.state.baseUrl, provider: this.state.providerType } });
|
|
32
|
-
if (this.state.apiKey) this.loadModels();
|
|
32
|
+
if (this.state.apiKey || ['kilo','opencode','acp2openai'].includes(this.state.providerType)) this.loadModels();
|
|
33
33
|
this.statsTimer = setInterval(() => this.updateStats(), 250);
|
|
34
34
|
}
|
|
35
35
|
disconnectedCallback() { if (this.statsTimer) clearInterval(this.statsTimer); }
|
|
@@ -62,6 +62,7 @@ class BirdChat extends HTMLElement {
|
|
|
62
62
|
localStorage.setItem('provider_base_url', baseUrl);
|
|
63
63
|
localStorage.setItem('provider_model', model);
|
|
64
64
|
this.setState({ providerType: type, baseUrl, model, models: [], apiKey: localStorage.getItem('provider_api_key') || '' });
|
|
65
|
+
if (['kilo','opencode','acp2openai'].includes(type)) this.loadModels();
|
|
65
66
|
}
|
|
66
67
|
|
|
67
68
|
renderBaseUrlInput() {
|
package/docs/chat-providers.js
CHANGED
|
@@ -6,6 +6,7 @@ export const PROVIDERS = {
|
|
|
6
6
|
mistral: { label: 'Mistral', baseUrl: 'https://api.mistral.ai/v1', keyPlaceholder: 'MISTRAL_API_KEY', models: ['mistral-large-latest', 'mistral-small-latest', 'codestral-latest'] },
|
|
7
7
|
deepseek: { label: 'DeepSeek', baseUrl: 'https://api.deepseek.com/v1', keyPlaceholder: 'DEEPSEEK_API_KEY', models: ['deepseek-chat', 'deepseek-reasoner'] },
|
|
8
8
|
cerebras: { label: 'Cerebras', baseUrl: 'https://api.cerebras.ai/v1', keyPlaceholder: 'CEREBRAS_API_KEY', models: ['gpt-oss-120b', 'llama3.1-8b'] },
|
|
9
|
+
openrouter: { label: 'OpenRouter', baseUrl: 'https://openrouter.ai/api/v1', keyPlaceholder: 'OPENROUTER_API_KEY', models: ['anthropic/claude-sonnet-4.5', 'anthropic/claude-opus-4.1', 'google/gemini-2.5-flash', 'google/gemini-2.5-pro', 'openai/gpt-4.1', 'openai/gpt-4o-mini', 'x-ai/grok-code-fast-1', 'meta-llama/llama-3.3-70b-instruct', 'deepseek/deepseek-chat', 'qwen/qwen-2.5-coder-32b-instruct'] },
|
|
9
10
|
kilo: { label: 'Kilo Code', baseUrl: 'http://localhost:4780', keyPlaceholder: '(no key needed)', models: ['x-ai/grok-code-fast-1:optimized:free', 'kilo-auto/free', 'openrouter/free', 'stepfun/step-3.5-flash:free', 'nvidia/nemotron-3-super-120b-a12b:free', 'bytedance-seed/dola-seed-2.0-pro:free'] },
|
|
10
11
|
opencode: { label: 'opencode (zen)', baseUrl: 'http://localhost:4790', keyPlaceholder: '(needs opencode auth login)', models: ['minimax-m2.5-free', 'nemotron-3-super-free'] },
|
|
11
12
|
acp2openai: { label: 'acp2openai (OpenAI-compat)', baseUrl: 'http://localhost:4800/v1', keyPlaceholder: '(no key needed)', models: ['kilo/x-ai/grok-code-fast-1:optimized:free', 'kilo/kilo-auto/free', 'kilo/openrouter/free', 'opencode/minimax-m2.5-free'] },
|
package/package.json
CHANGED