thebird 1.2.86 → 1.2.88
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/kilo-http-stream.js +3 -3
- package/package.json +1 -1
package/docs/app.js
CHANGED
|
@@ -11,7 +11,8 @@ const PROVIDERS = {
|
|
|
11
11
|
mistral: { label: 'Mistral', baseUrl: 'https://api.mistral.ai/v1', keyPlaceholder: 'MISTRAL_API_KEY', models: ['mistral-large-latest', 'mistral-small-latest', 'codestral-latest'] },
|
|
12
12
|
deepseek: { label: 'DeepSeek', baseUrl: 'https://api.deepseek.com/v1', keyPlaceholder: 'DEEPSEEK_API_KEY', models: ['deepseek-chat', 'deepseek-reasoner'] },
|
|
13
13
|
cerebras: { label: 'Cerebras', baseUrl: 'https://api.cerebras.ai/v1', keyPlaceholder: 'CEREBRAS_API_KEY', models: ['gpt-oss-120b', 'llama3.1-8b'] },
|
|
14
|
-
kilo: { label: 'Kilo Code', baseUrl: 'http://localhost:4780', keyPlaceholder: '(no key needed)', models: ['x-ai/grok-code-fast-1:optimized:free', 'openrouter/free', '
|
|
14
|
+
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'] },
|
|
15
|
+
opencode: { label: 'opencode (zen)', baseUrl: 'http://localhost:4790', keyPlaceholder: '(needs opencode auth login)', models: ['minimax-m2.5-free', 'nemotron-3-super-free'] },
|
|
15
16
|
custom: { label: 'Custom (OpenAI-compat)', baseUrl: '', keyPlaceholder: 'API_KEY', models: [] },
|
|
16
17
|
};
|
|
17
18
|
|
package/docs/kilo-http-stream.js
CHANGED
|
@@ -17,11 +17,11 @@ export async function* streamKiloHTTP({ url, model, messages, providerType, agen
|
|
|
17
17
|
typeof m.content === 'string' ? m.content : (m.content || []).filter(b => b.type === 'text').map(b => b.text).join('')
|
|
18
18
|
).join('\n');
|
|
19
19
|
|
|
20
|
-
const modelId = model || 'x-ai/grok-code-fast-1:optimized:free';
|
|
20
|
+
const modelId = model || (isOpencode ? 'minimax-m2.5-free' : 'x-ai/grok-code-fast-1:optimized:free');
|
|
21
21
|
const codingIntent = /\b(write|create|make|build|generate|save|file|html|css|script|app|page|code)\b/i.test(userText);
|
|
22
|
-
const agentName = agent || (codingIntent ? 'code' : 'ask');
|
|
22
|
+
const agentName = agent || (isOpencode ? (codingIntent ? 'build' : 'general') : (codingIntent ? 'code' : 'ask'));
|
|
23
23
|
const body = { parts: [{ type: 'text', text: userText }], agent: agentName };
|
|
24
|
-
if (isOpencode) body.model = { providerID: '
|
|
24
|
+
if (isOpencode) body.model = { providerID: 'opencode', modelID: modelId };
|
|
25
25
|
else { body.providerID = 'kilo'; body.modelID = modelId; }
|
|
26
26
|
|
|
27
27
|
let text = '';
|
package/package.json
CHANGED