natureco-cli 2.23.15 → 2.23.16

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 +5 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "natureco-cli",
3
- "version": "2.23.15",
3
+ "version": "2.23.16",
4
4
  "description": "NatureCo AI Bot Terminal Interface",
5
5
  "bin": {
6
6
  "natureco": "bin/natureco.js"
package/src/utils/api.js CHANGED
@@ -581,7 +581,8 @@ async function sendMessageToProvider(apiKey, message, conversationId = null, sys
581
581
  let iteration = 0;
582
582
  const maxIterations = 10;
583
583
  let finalResponse = null;
584
- const stream = options.stream !== false;
584
+ const stream = options.stream !== false &&
585
+ !providerConfig.url.includes('api.natureco.me');
585
586
 
586
587
  while (iteration < maxIterations) {
587
588
  iteration++;
@@ -886,6 +887,9 @@ async function getBots(apiKey) {
886
887
  // ── Streaming Support ────────────────────────────────────────────────────────────
887
888
 
888
889
  async function streamProviderCompletion(providerConfig, messages, tools) {
890
+ if (providerConfig.url.includes('api.natureco.me')) {
891
+ return sendMessageOpenAICompatible(providerConfig, messages, tools);
892
+ }
889
893
  if (providerConfig.isAnthropic) {
890
894
  return streamAnthropicCompletion(providerConfig, messages);
891
895
  }