natureco-cli 2.15.9 → 2.16.1
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/dashboard.js +2 -2
- package/src/commands/setup.js +1 -0
- package/src/utils/api.js +2 -1
package/package.json
CHANGED
|
@@ -211,7 +211,7 @@ body::before{
|
|
|
211
211
|
<div class="header-bot-name" id="header-bot-name">Nature Bot</div>
|
|
212
212
|
<div class="header-bot-model" id="header-bot-model">NatureCo</div>
|
|
213
213
|
</div>
|
|
214
|
-
<div class="version-badge" id="version-badge">v2.
|
|
214
|
+
<div class="version-badge" id="version-badge">v2.16.1</div>
|
|
215
215
|
</div>
|
|
216
216
|
<div class="messages" id="messages"></div>
|
|
217
217
|
<div class="input-area">
|
|
@@ -341,7 +341,7 @@ function dashboard(action) {
|
|
|
341
341
|
apiKey: cfg.apiKey,
|
|
342
342
|
defaultBot: cfg.defaultBot,
|
|
343
343
|
defaultBotId: cfg.defaultBotId,
|
|
344
|
-
version: 'v2.
|
|
344
|
+
version: 'v2.16.1',
|
|
345
345
|
bots: cfg.bots || [],
|
|
346
346
|
telegramToken: cfg.telegramToken || null,
|
|
347
347
|
whatsappConnected: cfg.whatsappConnected || false,
|
package/src/commands/setup.js
CHANGED
|
@@ -217,6 +217,7 @@ async function setup() {
|
|
|
217
217
|
}]);
|
|
218
218
|
|
|
219
219
|
// NatureCo provider seçildiyse URL'yi ayarla
|
|
220
|
+
let providerUrl = providerChoice; // varsayılan: seçilen değer direkt URL
|
|
220
221
|
let isNatureCo = false;
|
|
221
222
|
if (providerChoice === 'natureco') {
|
|
222
223
|
providerUrl = NATURECO_PROVIDER.url;
|
package/src/utils/api.js
CHANGED
|
@@ -816,11 +816,12 @@ async function getBots(apiKey) {
|
|
|
816
816
|
|
|
817
817
|
// Diğer provider'lar — universal provider döndür
|
|
818
818
|
const providerName = providerConfig?.isAnthropic ? 'Anthropic' : 'OpenAI-compatible';
|
|
819
|
+
const botName = config.botName || `Universal Provider (${providerName})`;
|
|
819
820
|
return {
|
|
820
821
|
bots: [
|
|
821
822
|
{
|
|
822
823
|
id: 'universal-provider',
|
|
823
|
-
name:
|
|
824
|
+
name: botName,
|
|
824
825
|
ai_provider: providerName,
|
|
825
826
|
model: providerConfig?.model || 'unknown'
|
|
826
827
|
}
|