brsxcloud
BRSX-Cloud için resmi Python client. Chat edilebilir olarak paylaşılmış modellere kendi API key'inle, kod içinden erişmeni sağlar.
Kurulum
pip install brsxcloud
API Key Alma
- cloud.brsxlabs.com adresinde giriş yap.
- Sol menüden Kullanıcı Paneli'ni aç.
- API Anahtarların bölümünden + Yeni Key ile bir key oluştur.
- Key sadece o an gösterilir, hemen kopyala — bir daha görüntülenmez.
Her key için günlük istek limiti vardır (panelde görebilirsin).
Kullanım
from brsxcloud import Client
client = Client("brsxk_...") # kendi API key'in
reply = client.chat(model_id=1, message="Merhaba, nasılsın?")
print(reply)
model_id'yi, BRSX-Cloud'daki Modeller sekmesinde ilgili modelin sayfasından ya da model sahibinin sana verdiği id'den öğrenebilirsin.
Hata Yönetimi
from brsxcloud import Client, BrsxCloudError
client = Client("brsxk_...")
try:
reply = client.chat(model_id=1, message="Selam")
except BrsxCloudError as e:
print(f"Hata: {e.message} (durum kodu: {e.status_code})")
Olası hatalar: geçersiz/iptal edilmiş API key, günlük kota aşımı, model bulunamadı, model chat için paylaşılmamış, model çalıştırılırken hata.
Lisans
MIT
Release files for brsxcloud 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| brsxcloud-0.1.0.tar.gz | 3.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| brsxcloud-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.2 kB
Release files / brsxcloud-0.1.0.tar.gz
| Download URL | brsxcloud-0.1.0.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a4c8793a4eb824fa7f9d0d4655da2aeefa6f60b17aabe4f1fa2fa5a21eb04577
|
|
BLAKE2b-256 checksum How to use checksums |
e2dd12f5e15d7f6579e1dad34c32e81646ba397042f60e8f14d571e2ac558423
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.10
|
Release files / brsxcloud-0.1.0-py3-none-any.whl
| Download URL | brsxcloud-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0d56c2ab033524c2a4ab5cc348e308987917fa7b38eefa4fa1ef91903bf055eb
|
|
BLAKE2b-256 checksum How to use checksums |
9f88e3dbb06cc989d42335307b04cf1e219d2b2f04dc7a61b5f79e9f05feb7e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.10
|