natureco-cli 4.8.1 → 4.8.2
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/package.json +1 -1
- package/src/commands/repl.js +5 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "natureco-cli",
|
|
3
|
-
"version": "4.8.
|
|
3
|
+
"version": "4.8.2",
|
|
4
4
|
"description": "OpenClaw'dan daha güvenli, daha hızlı, daha ucuz AI agent CLI. Multi-agent, self-evolving skills, audit log, maliyet optimizasyonu ve NatureCo platform-native.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"natureco": "bin/natureco.js"
|
package/src/commands/repl.js
CHANGED
|
@@ -250,8 +250,11 @@ async function sendStreaming(providerUrl, providerApiKey, messages, model, onChu
|
|
|
250
250
|
break;
|
|
251
251
|
}
|
|
252
252
|
|
|
253
|
-
// OpenAI uyumlu streaming
|
|
254
|
-
|
|
253
|
+
// OpenAI uyumlu streaming (veya MiniMax /v1/text/chatcompletion_v2)
|
|
254
|
+
// v4.8.2: MiniMax tool calling sadece özel endpoint'inde çalışıyor
|
|
255
|
+
const endpoint = isMM
|
|
256
|
+
? `${providerUrl.replace(/\/+$/, '')}/v1/text/chatcompletion_v2`
|
|
257
|
+
: `${providerUrl.replace(/\/+$/, '')}/chat/completions`;
|
|
255
258
|
const result = await new Promise((resolve, reject) => {
|
|
256
259
|
const req = https.request(endpoint, {
|
|
257
260
|
method: 'POST',
|