natureco-cli 2.23.8 → 2.23.9
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/setup.js +1 -1
- package/src/utils/api.js +2 -2
package/package.json
CHANGED
package/src/commands/setup.js
CHANGED
|
@@ -130,7 +130,7 @@ const LANG = {
|
|
|
130
130
|
const NATURECO_PROVIDER = {
|
|
131
131
|
name: 'NatureCo (natureco.me — kendi platformun)',
|
|
132
132
|
value: 'natureco',
|
|
133
|
-
url: 'https://api.natureco.me
|
|
133
|
+
url: 'https://api.natureco.me',
|
|
134
134
|
};
|
|
135
135
|
|
|
136
136
|
const PROVIDER_PRESETS = (customLabel) => [
|
package/src/utils/api.js
CHANGED
|
@@ -430,7 +430,7 @@ function formatToolsForAnthropic() {
|
|
|
430
430
|
async function sendMessageOpenAICompatible(providerConfig, messages, tools) {
|
|
431
431
|
const baseUrl = providerConfig.url.replace(/\/+$/, '');
|
|
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
435
|
|
|
436
436
|
const requestBody = {
|
|
@@ -873,7 +873,7 @@ async function streamProviderCompletion(providerConfig, messages, tools) {
|
|
|
873
873
|
async function streamOpenAICompletion(providerConfig, messages, tools) {
|
|
874
874
|
const baseUrl = providerConfig.url.replace(/\/+$/, '');
|
|
875
875
|
const endpoint = baseUrl.includes('api.natureco.me')
|
|
876
|
-
?
|
|
876
|
+
? 'https://api.natureco.me/api/v1/chat/completions'
|
|
877
877
|
: `${baseUrl}/chat/completions`;
|
|
878
878
|
|
|
879
879
|
const requestBody = {
|