bridgenode-llm
BridgeNode SDK — AI inference per request. Mokėjimas Solana USDC per x402 V2. Gasless: facilitatoris dengia SOL dujas — agentui nereikia SOL.
- OpenAI-compatible endpoint
- Automatinis x402 handshake: 402 → pasirašyti dalinį TX → retry
- Kvito (PAYMENT-RESPONSE) verifikacija po kiekvieno mokėjimo
- Spending policy: max/call ir daily cap (fail-closed)
- Jokių interaktyvių promptų — SDK skirtas agentams
Įdiegimas
pip install bridgenode-llm
Konfigūracija (.env)
BRIDGENODE_WALLET_KEY=<agento Solana wallet private key> # agento USDC signing
BRIDGENODE_BASE_URL=https://bridgenode.cc/v1 # optional
BRIDGENODE_MAX_PER_CALL=0.05 # optional, USDC
BRIDGENODE_DAILY_CAP=1.0 # optional, USDC
Naudojimas
from bridgenode_llm import LLMClient
client = LLMClient() # raktas iš .env (BRIDGENODE_WALLET_KEY)
# Explicit model
response = client.chat("deepseek-v4-flash", "Hello!")
# Smart routing (mode: auto | eco | premium)
response = client.chat(mode="auto", messages=[{"role": "user", "content": "Write code"}])
print(response["choices"][0]["message"]["content"])
Detalės: protokolas.md §8.4 (BridgeNode protokolas).
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bridgenode_llm-0.2.1.tar.gz
(8.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bridgenode_llm-0.2.1.tar.gz.
File metadata
- Download URL: bridgenode_llm-0.2.1.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de9740cde9ab3fe2335a67f103ce51aa34655b042b05c087b5b365f3420caeb1
|
|
| MD5 |
0f94aad812a95b85d235abe322b66eb7
|
|
| BLAKE2b-256 |
bb496c8b33284d256a233ea97bde954e23a75c665597b5efd79b193d676aac67
|
File details
Details for the file bridgenode_llm-0.2.1-py3-none-any.whl.
File metadata
- Download URL: bridgenode_llm-0.2.1-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b454e1fbd0a33a647edbe2912bc4095578c2cfd7fe1a7609c3a21bf2f86d7945
|
|
| MD5 |
7dcd50ebcbe2ae5de7cf995177104e4e
|
|
| BLAKE2b-256 |
eb0fe6c3d384d4375caad5ed6796ebd35493877c8cc07610035cbedf3324d13f
|