natureco-cli 2.23.16 → 2.23.17

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 +7 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "natureco-cli",
3
- "version": "2.23.16",
3
+ "version": "2.23.17",
4
4
  "description": "NatureCo AI Bot Terminal Interface",
5
5
  "bin": {
6
6
  "natureco": "bin/natureco.js"
package/src/utils/api.js CHANGED
@@ -437,16 +437,16 @@ async function sendMessageOpenAICompatible(providerConfig, messages, tools) {
437
437
  const requestBody = {
438
438
  model: providerConfig.model,
439
439
  messages: messages,
440
- tools: tools,
441
- tool_choice: 'auto',
442
440
  temperature: 0.7,
443
- max_tokens: 2000,
441
+ max_tokens: 2048,
444
442
  };
445
443
 
446
- // NatureCo backend proxy — tool call'ları Groq'a iletmek için explicitly set
447
- if (providerConfig.url.includes('api.natureco.me')) {
448
- requestBody.tool_choice = 'auto';
449
- requestBody.tools = tools;
444
+ // NatureCo için tool calling desteklenmiyor
445
+ if (!providerConfig.url.includes('api.natureco.me')) {
446
+ if (tools && tools.length > 0) {
447
+ requestBody.tools = tools;
448
+ requestBody.tool_choice = 'auto';
449
+ }
450
450
  }
451
451
 
452
452
  const response = await fetch(endpoint, {