Skip to content

Commit 4e5f43a

Browse files
author
balogh.adam@icloud.com
committed
rm tee rpc and update contract
1 parent a1c254d commit 4e5f43a

2 files changed

Lines changed: 3 additions & 8 deletions

File tree

src/opengradient/client/client.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
DEFAULT_INFERENCE_CONTRACT_ADDRESS,
1111
DEFAULT_RPC_URL,
1212
DEFAULT_TEE_REGISTRY_ADDRESS,
13-
DEFAULT_TEE_REGISTRY_RPC_URL,
1413
)
1514
from .alpha import Alpha
1615
from .llm import LLM
@@ -69,7 +68,6 @@ def __init__(
6968
og_llm_server_url: Optional[str] = None,
7069
og_llm_streaming_server_url: Optional[str] = None,
7170
tee_registry_address: str = DEFAULT_TEE_REGISTRY_ADDRESS,
72-
tee_registry_rpc_url: str = DEFAULT_TEE_REGISTRY_RPC_URL,
7371
):
7472
"""
7573
Initialize the OpenGradient client.
@@ -104,8 +102,6 @@ def __init__(
104102
Defaults to ``og_llm_server_url`` when that is provided.
105103
tee_registry_address: Address of the TEERegistry contract used to
106104
discover active LLM proxy endpoints and their verified TLS certs.
107-
tee_registry_rpc_url: RPC endpoint for the chain that hosts the
108-
TEERegistry contract.
109105
"""
110106
blockchain = Web3(Web3.HTTPProvider(rpc_url))
111107
wallet_account = blockchain.eth.account.from_key(private_key)
@@ -128,7 +124,7 @@ def __init__(
128124
if og_llm_server_url is None:
129125
try:
130126
registry = TEERegistry(
131-
rpc_url=tee_registry_rpc_url,
127+
rpc_url=rpc_url,
132128
registry_address=tee_registry_address,
133129
)
134130
tee = registry.get_llm_tee()
@@ -143,7 +139,7 @@ def __init__(
143139
raise
144140
except Exception as e:
145141
raise RuntimeError(
146-
f"Failed to fetch LLM TEE endpoint from registry ({tee_registry_address}): {e}. "
142+
f"Failed to fetch LLM TEE endpoint from registry ({tee_registry_address} on {rpc_url}): {e}. "
147143
"Pass og_llm_server_url explicitly to override."
148144
) from e
149145
else:

src/opengradient/defaults.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,4 @@
88
DEFAULT_BLOCKCHAIN_EXPLORER = "https://explorer.opengradient.ai/tx/"
99
# TEE Registry contract on the OG EVM chain — used to discover LLM proxy endpoints
1010
# and fetch their registry-verified TLS certificates instead of blindly trusting TOFU.
11-
DEFAULT_TEE_REGISTRY_ADDRESS = "0x3d641a2791533b4a0000345ea8d509d01e1ec301"
12-
DEFAULT_TEE_REGISTRY_RPC_URL = "http://13.59.43.94:8545"
11+
DEFAULT_TEE_REGISTRY_ADDRESS = "0x4e72238852f3c918f4E4e57AeC9280dDB0c80248"

0 commit comments

Comments
 (0)