From b0d71ad4f6389ee9c1b3f38b7e6f4b7076609fb6 Mon Sep 17 00:00:00 2001 From: numexai Date: Wed, 23 Sep 2026 23:43:21 +0000 Subject: [PATCH] Varsayilan API adresini www.numexai.com.tr/api/v1 olarak duzelt --- README.md | 5 ++++- src/index.js | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5aac717..eb2f2f1 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ const yanit = await numex.chat.completions.create({ model: 'numex-pro', 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 @@ -64,6 +64,9 @@ console.log(yanit); **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). +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 // Farklı bir uç nokta kullanmak için: const numex = new Numex({ apiKey: '...', baseURL: 'https://…/v1' }); diff --git a/src/index.js b/src/index.js index 9f01ab0..454c460 100644 --- a/src/index.js +++ b/src/index.js @@ -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."); } - 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); // CLI Bridge for programmatic CLI execution