thebird 1.2.87 → 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/kilo-http-stream.js +2 -2
- package/package.json +1 -1
package/docs/kilo-http-stream.js
CHANGED
|
@@ -17,9 +17,9 @@ 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
24
|
if (isOpencode) body.model = { providerID: 'opencode', modelID: modelId };
|
|
25
25
|
else { body.providerID = 'kilo'; body.modelID = modelId; }
|
package/package.json
CHANGED