Skip to content

Releases: Singularity-Layer/sgl-network-sdk

v0.5.0 — max_price (price cap)

Choose a tag to compare

@ivaavimusic ivaavimusic released this 15 Jun 14:50

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

Choose a tag to compare

@ivaavimusic ivaavimusic released this 15 Jun 09:13

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

Choose a tag to compare

@ivaavimusic ivaavimusic released this 04 Jun 05:53

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

Choose a tag to compare

@ivaavimusic ivaavimusic released this 25 May 12:04

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-grid

v0.1.0 — Initial Release

Choose a tag to compare

@ivaavimusic ivaavimusic released this 25 May 09:11

singularity-grid v0.1.0

Python SDK for the SGL Network confidential compute grid.

Install

pip install singularity-grid

Features

  • GridClient — capacity, models, pricing, job submission, attestation verification
  • OpenAI compatibilitycreate_openai_client() for drop-in OpenAI SDK usage
  • Typed models — 10 Pydantic v2 models with full type hints
  • Error hierarchySGLAPIError, SGLAuthError, SGLNotFoundError, SGLConnectionError
  • PEP 561py.typed marker for downstream type checking