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.
- package/package.json +1 -1
- package/src/utils/api.js +7 -7
package/package.json
CHANGED
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:
|
|
441
|
+
max_tokens: 2048,
|
|
444
442
|
};
|
|
445
443
|
|
|
446
|
-
// NatureCo
|
|
447
|
-
if (providerConfig.url.includes('api.natureco.me')) {
|
|
448
|
-
|
|
449
|
-
|
|
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, {
|