mirror of
https://github.com/numexai/numex-sdk.git
synced 2026-09-25 05:22:16 +00:00
Varsayilan API adresini www.numexai.com.tr/api/v1 olarak duzelt
This commit is contained in:
parent
4d56f41115
commit
b0d71ad4f6
|
|
@ -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' });
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user