Releases: Singularity-Layer/sgl-network-sdk
Releases · Singularity-Layer/sgl-network-sdk
Release list
v0.5.0 — max_price (price cap)
Additive: max_price (blended USD/1M) on chat + stream. Routes only to nodes at/under the cap and never bills above it.
v0.4.0 — node pick + providers() + cluster-aware
Additive: providers(model, cluster) discovery, node= provider pin on reserve/chat, cluster + pay_in_coin. Backward compatible.
v0.3.0 — end-to-end encryption + streaming
GridClient.chat_completions is now end-to-end encrypted (prompt sealed to the serving node; orchestrator stays blind) and returns TEE attestation. New GridClient.chat_completion_stream yields tokens live with per-chunk decryption + ordering/termination integrity. Crypto verified against the cross-language vector. Adds pynacl/cryptography/base58.
v0.2.0 — SGL Processors
What's New
- SGL Processors support:
deploy_processor(),invoke_processor(),list_processors(),get_processor(),delete_processor(),get_processor_logs() - New Pydantic models:
ProcessorInfo,ProcessorDeployResult,ProcessorResult,ProcessorListResponse,ProcessorLogEntry,ProcessorLogsResponse - x402 payment support for processor invocations (USDC and $SGL)
Install / Upgrade
pip install --upgrade singularity-gridv0.1.0 — Initial Release
singularity-grid v0.1.0
Python SDK for the SGL Network confidential compute grid.
Install
pip install singularity-gridFeatures
- GridClient — capacity, models, pricing, job submission, attestation verification
- OpenAI compatibility —
create_openai_client()for drop-in OpenAI SDK usage - Typed models — 10 Pydantic v2 models with full type hints
- Error hierarchy —
SGLAPIError,SGLAuthError,SGLNotFoundError,SGLConnectionError - PEP 561 —
py.typedmarker for downstream type checking