natureco-cli 2.23.18 → 2.23.19

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/utils/api.js +1 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "natureco-cli",
3
- "version": "2.23.18",
3
+ "version": "2.23.19",
4
4
  "description": "NatureCo AI Bot Terminal Interface",
5
5
  "bin": {
6
6
  "natureco": "bin/natureco.js"
package/src/utils/api.js CHANGED
@@ -432,8 +432,6 @@ async function sendMessageOpenAICompatible(providerConfig, messages, tools) {
432
432
  const endpoint = baseUrl.includes('api.natureco.me')
433
433
  ? 'https://api.natureco.me/api/v1/chat/completions'
434
434
  : `${baseUrl}/chat/completions`;
435
- console.error('DEBUG endpoint:', endpoint);
436
-
437
435
  const requestBody = {
438
436
  model: providerConfig.model,
439
437
  messages: messages,
@@ -464,13 +462,11 @@ async function sendMessageOpenAICompatible(providerConfig, messages, tools) {
464
462
  }
465
463
 
466
464
  const data = await response.json();
467
- console.error('DEBUG response raw:', JSON.stringify(data).slice(0, 300));
468
465
  const content = data.choices?.[0]?.message?.content
469
466
  || data.choices?.[0]?.text
470
467
  || data.response
471
468
  || data.content
472
469
  || '';
473
- console.error('DEBUG content:', content);
474
470
  return {
475
471
  role: 'assistant',
476
472
  content,
@@ -536,7 +532,6 @@ async function sendMessageAnthropic(providerConfig, messages, tools) {
536
532
  */
537
533
  async function sendMessageToProvider(apiKey, message, conversationId = null, systemPrompt = null, options = {}) {
538
534
  const providerConfig = getProviderConfig();
539
- console.error('DEBUG sendMessageToProvider providerUrl:', providerConfig?.url);
540
535
 
541
536
  if (!providerConfig) {
542
537
  throw new Error(
@@ -737,8 +732,7 @@ async function sendMessage(apiKey, botId, message, conversationId = null, chatSy
737
732
  // Handle legacy 6th param (toolDefinitions array was passed)
738
733
  if (Array.isArray(options)) options = {};
739
734
  const providerConfig = getProviderConfig();
740
- console.error('DEBUG providerUrl:', providerConfig?.url);
741
- console.error('DEBUG provider type:', providerConfig?.isAnthropic ? 'anthropic' : 'openai');
735
+
742
736
  // Get user's home directory
743
737
  const homeDir = os.homedir();
744
738