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.3.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.3.0.tar.gz | 4.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| brsxcloud-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.4 kB
Release files / brsxcloud-0.3.0.tar.gz
| Download URL | brsxcloud-0.3.0.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
31deb2545a6c5c4fc60e08c7032eceba9c3482d0019c4b9f177f26a842ecd4bf
|
|
BLAKE2b-256 checksum How to use checksums |
481abc2c6985f1d33ae0f59d11659032f877d0257131a73d51226f864aea81bf
|
| 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.3.0-py3-none-any.whl
| Download URL | brsxcloud-0.3.0-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9d8fec5aeb7c0f06a14898051b71f3d62d643a6b11cb5fca110d025c4180df9a
|
|
BLAKE2b-256 checksum How to use checksums |
af78cb55d39d7e0c64ad432731758f62d0862976509b95ede63fc460a10efd7a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.10
|