Varsayilan API adresini www.numexai.com.tr/api/v1 olarak duzelt

This commit is contained in:
numexai 2026-09-23 23:43:21 +00:00
parent 4d56f41115
commit b0d71ad4f6
2 changed files with 5 additions and 2 deletions

View File

@ -48,7 +48,7 @@ const yanit = await numex.chat.completions.create({
model: 'numex-pro', model: 'numex-pro',
messages: [{ role: 'user', content: 'Merhaba! Kendini bir cümleyle tanıtır mısın?' }], messages: [{ role: 'user', content: 'Merhaba! Kendini bir cümleyle tanıtır mısın?' }],
}); });
console.log(yanit); console.log(yanit.answer); // { success, answer, modelLabel, usage }
``` ```
## 🧠 API ## 🧠 API
@ -64,6 +64,9 @@ console.log(yanit);
**Modeller:** `numex-pro` (128K, function calling) · `numex-fast` (~3× hızlı) · `numex-think` **Modeller:** `numex-pro` (128K, function calling) · `numex-fast` (~3× hızlı) · `numex-think`
(derin akıl yürütme) · `numex-vision` (görsel, OCR) · `numex-code` (64K, 25+ dil). (derin akıl yürütme) · `numex-vision` (görsel, OCR) · `numex-code` (64K, 25+ dil).
Varsayılan adres: `https://www.numexai.com.tr/api/v1`. Uç noktaların tam listesi ve yanıt
biçimleri: **[numex-api](https://github.com/mobilcep/numex-api)**.
```javascript ```javascript
// Farklı bir uç nokta kullanmak için: // Farklı bir uç nokta kullanmak için:
const numex = new Numex({ apiKey: '...', baseURL: 'https://…/v1' }); const numex = new Numex({ apiKey: '...', baseURL: 'https://…/v1' });

View File

@ -69,7 +69,7 @@ class Numex {
throw new Error("Numex API Key is required. Pass it via options or set NUMEX_API_KEY environment variable."); throw new Error("Numex API Key is required. Pass it via options or set NUMEX_API_KEY environment variable.");
} }
this.baseURL = options.baseURL || 'https://api.numexai.com.tr/v1'; this.baseURL = options.baseURL || 'https://www.numexai.com.tr/api/v1';
this.client = new NumexApiClient(this.baseURL, this.apiKey); this.client = new NumexApiClient(this.baseURL, this.apiKey);
// CLI Bridge for programmatic CLI execution // CLI Bridge for programmatic CLI execution