natureco-cli 4.7.2 → 4.7.4
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 +6 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "natureco-cli",
|
|
3
|
-
"version": "4.7.
|
|
3
|
+
"version": "4.7.4",
|
|
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
|
@@ -196,7 +196,7 @@ function apiRequest(providerUrl, providerApiKey, body, stream = false) {
|
|
|
196
196
|
|
|
197
197
|
async function sendStreaming(providerUrl, providerApiKey, messages, model, onChunk) {
|
|
198
198
|
const isMM = isMiniMax(providerUrl);
|
|
199
|
-
const body = { model, messages, stream: !isMM, temperature: 0.
|
|
199
|
+
const body = { model, messages, stream: !isMM, temperature: 0.3, max_tokens: 2048 };
|
|
200
200
|
if (!body.stream) {
|
|
201
201
|
const res = await apiRequest(providerUrl, providerApiKey, body, false);
|
|
202
202
|
const content = res.choices?.[0]?.message?.content || '';
|
|
@@ -315,10 +315,11 @@ async function startRepl(args) {
|
|
|
315
315
|
|
|
316
316
|
// System prompt oluştur (memory + identity + persistent bağlam)
|
|
317
317
|
const systemPrompt = [
|
|
318
|
-
`Sen ${memory.botName || 'İchigo'} adında bir
|
|
319
|
-
`Sen Claude, GPT veya başka bir marka değilsin — sen ${memory.botName || 'İchigo'}'sin.`,
|
|
320
|
-
|
|
321
|
-
'
|
|
318
|
+
`Sen ${memory.botName || 'İchigo'} adında bir Türk yapay zeka asistanısın. NatureCo platformunun resmi Türkçe asistanısın.`,
|
|
319
|
+
`Sen Claude, GPT, MiniMax veya başka bir marka değilsin — sen ${memory.botName || 'İchigo'}'sin.`,
|
|
320
|
+
// v4.7.4: Daha agresif dil zorlaması — model önceki versiyonlarda İngilizce cevap veriyordu
|
|
321
|
+
'KRİTİK DİL KURALI: Kullanıcı Türkçe yazıyorsa MUTLAKA %100 Türkçe cevap ver. Asla İngilizce, Çince veya başka dil kullanma. Cevabının TAMAMI Türkçe olmalı.',
|
|
322
|
+
'ÖNEMLİ: <tool_call>, <invoke>, function_call veya benzeri XML/JSON formatında tool çağrısı SİMÜLE ETME. Sadece düz metin cevap ver. Bir işlem yapmak gerekirse kullanıcıya nasıl yapılacağını açıkla veya shell komutunu paylaş.',
|
|
322
323
|
memory.nickname && memory.name
|
|
323
324
|
? `Kullanıcının adı: ${memory.name}. Sana "${memory.nickname}" diye hitap etmesinden hoşlanıyor.`
|
|
324
325
|
: memory.name ? `Kullanıcının adı: ${memory.name}.` : '',
|