Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,8 @@ The SDK provides access to models from multiple providers via the `og.TEE_LLM` e
- Claude Haiku 4.5
- Claude Opus 4.5
- Claude Opus 4.6
- Claude Opus 4.7
- Claude Opus 4.8

#### Google
- Gemini 2.5 Flash
Expand Down
2 changes: 2 additions & 0 deletions docs/CLAUDE_SDK_USERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ og.TEE_LLM.CLAUDE_SONNET_4_6
og.TEE_LLM.CLAUDE_HAIKU_4_5
og.TEE_LLM.CLAUDE_OPUS_4_5
og.TEE_LLM.CLAUDE_OPUS_4_6
og.TEE_LLM.CLAUDE_OPUS_4_7
og.TEE_LLM.CLAUDE_OPUS_4_8

# Google
og.TEE_LLM.GEMINI_2_5_FLASH
Expand Down
15 changes: 14 additions & 1 deletion docs/opengradient/client/llm.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,4 +241,17 @@ Permit2ApprovalResult: Contains ``allowance_before``,

* **`ValueError`**: If ``min_allowance`` is less than 0.1 or
``approve_amount`` is less than ``min_allowance``.
* **`RuntimeError`**: If the approval transaction fails.
* **`RuntimeError`**: If the approval transaction fails.

---

#### `resolve_tee_connection()`

```python
def resolve_tee_connection(self, tee_id: Optional[str] = None) ‑> `ActiveTEE`
```
Resolve the current TEE or a specific active registry TEE.

This is primarily for backend relays that need SDK-managed TEE routing,
TLS pinning, and x402 clients without using the chat/completion helpers
directly, for example when forwarding OHTTP ciphertext.
32 changes: 32 additions & 0 deletions docs/opengradient/client/tee_connection.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,18 @@ async def reconnect(self) ‑> None
```
Connect to a new TEE from the registry and rebuild the HTTP client.

---

#### `resolve()`

```python
def resolve(self, tee_id: Optional[str] = None) ‑> `ActiveTEE`
```
Resolve a TEE connection, optionally pinned to an active TEE id.

Backend OHTTP relays can use this when the browser encrypted to a
specific on-chain TEE config, while the backend still owns x402 payment.

### `StaticTEEConnection`

TEE connection with a hardcoded endpoint URL.
Expand Down Expand Up @@ -157,6 +169,18 @@ async def reconnect(self) ‑> None
```
Rebuild the HTTP client (same endpoint).

---

#### `resolve()`

```python
def resolve(self, tee_id: Optional[str] = None) ‑> `ActiveTEE`
```
Return the static connection.

Static/dev connections do not have a registry to validate selected
TEE ids against, so they always resolve to the configured endpoint.

### `TEEConnectionInterface`

Interface for TEE connection implementations.
Expand Down Expand Up @@ -199,4 +223,12 @@ def get(self) ‑> `ActiveTEE`

```python
async def reconnect(self) ‑> None
```

---

#### `resolve()`

```python
def resolve(self, tee_id: Optional[str] = None) ‑> `ActiveTEE`
```
2 changes: 1 addition & 1 deletion docs/opengradient/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ opengradient

# Package opengradient

**Version: 1.0.1**
**Version: 1.0.4**

OpenGradient Python SDK for decentralized AI inference with end-to-end verification.

Expand Down
17 changes: 17 additions & 0 deletions docs/opengradient/types.md
Original file line number Diff line number Diff line change
Expand Up @@ -468,21 +468,38 @@ auditability and tamper-proof AI inference.
* static `CLAUDE_HAIKU_4_5`
* static `CLAUDE_OPUS_4_5`
* static `CLAUDE_OPUS_4_6`
* static `CLAUDE_OPUS_4_7`
* static `CLAUDE_OPUS_4_8`
* static `CLAUDE_SONNET_4_5`
* static `CLAUDE_SONNET_4_6`
* static `GEMINI_2_5_FLASH`
* static `GEMINI_2_5_FLASH_LITE`
* static `GEMINI_2_5_PRO`
* static `GEMINI_3_1_FLASH_LITE_PREVIEW`
* static `GEMINI_3_1_PRO_PREVIEW`
* static `GEMINI_3_FLASH`
* static `GPT_4_1_2025_04_14`
* static `GPT_4_1_MINI`
* static `GPT_4_1_NANO`
* static `GPT_5`
* static `GPT_5_2`
* static `GPT_5_4`
* static `GPT_5_4_MINI`
* static `GPT_5_4_NANO`
* static `GPT_5_5`
* static `GPT_5_MINI`
* static `GROK_4`
* static `GROK_4_1_FAST`
* static `GROK_4_1_FAST_NON_REASONING`
* static `GROK_4_20_NON_REASONING`
* static `GROK_4_20_REASONING`
* static `GROK_4_FAST`
* static `GROK_CODE_FAST_1`
* static `O3`
* static `O4_MINI`
* static `SEED_1_6`
* static `SEED_1_8`
* static `SEED_2_0_LITE`

### `TextGenerationOutput`

Expand Down
1 change: 1 addition & 0 deletions src/opengradient/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,7 @@ class TEE_LLM(str, Enum):
CLAUDE_OPUS_4_5 = "anthropic/claude-opus-4-5"
CLAUDE_OPUS_4_6 = "anthropic/claude-opus-4-6"
CLAUDE_OPUS_4_7 = "anthropic/claude-opus-4-7"
CLAUDE_OPUS_4_8 = "anthropic/claude-opus-4-8"

# Google models via TEE
# Note: gemini-2.5-flash, gemini-2.5-pro, and gemini-2.5-flash-lite are scheduled
Expand Down
Loading