@@ -58,7 +58,7 @@ llm = og.agents.langchain_adapter(
5858 private_key = private_key,
5959 model_cid = og.TEE_LLM .GPT_4_1_2025_04_14 ,
6060 max_tokens = 500 ,
61- x402_settlement_mode = og.x402SettlementMode.SETTLE_BATCH ,
61+ x402_settlement_mode = og.x402SettlementMode.BATCH_HASHED ,
6262)
6363```
6464
@@ -223,9 +223,9 @@ is recorded on-chain:
223223
224224| Mode | What's Stored | Best For |
225225| ------| --------------| ----------|
226- | ` SETTLE ` | Hashes of input and output only | ** Privacy** -- proves execution happened without revealing content |
227- | ` SETTLE_BATCH ` | Batch hash of multiple inferences | ** Cost efficiency** -- reduces per-call gas costs (default) |
228- | ` SETTLE_METADATA ` | Full model info, input, output, and metadata | ** Transparency** -- complete auditability for compliance |
226+ | ` PRIVATE ` | Hashes of input and output only | ** Privacy** -- proves execution happened without revealing content |
227+ | ` BATCH_HASHED ` | Batch hash of multiple inferences | ** Cost efficiency** -- reduces per-call gas costs (default) |
228+ | ` INDIVIDUAL_FULL ` | Full model info, input, output, and metadata | ** Transparency** -- complete auditability for compliance |
229229
230230Choose based on your requirements:
231231
@@ -234,21 +234,21 @@ Choose based on your requirements:
234234llm_dev = og.agents.langchain_adapter(
235235 private_key = os.environ[" OG_PRIVATE_KEY" ],
236236 model_cid = og.TEE_LLM .GPT_4_1_2025_04_14 ,
237- x402_settlement_mode = og.x402SettlementMode.SETTLE_BATCH ,
237+ x402_settlement_mode = og.x402SettlementMode.BATCH_HASHED ,
238238)
239239
240240# For production financial applications -- full audit trail
241241llm_prod = og.agents.langchain_adapter(
242242 private_key = os.environ[" OG_PRIVATE_KEY" ],
243243 model_cid = og.TEE_LLM .GPT_4_1_2025_04_14 ,
244- x402_settlement_mode = og.x402SettlementMode.SETTLE_METADATA ,
244+ x402_settlement_mode = og.x402SettlementMode.INDIVIDUAL_FULL ,
245245)
246246
247247# For privacy-sensitive applications -- minimal on-chain footprint
248248llm_private = og.agents.langchain_adapter(
249249 private_key = os.environ[" OG_PRIVATE_KEY" ],
250250 model_cid = og.TEE_LLM .GPT_4_1_2025_04_14 ,
251- x402_settlement_mode = og.x402SettlementMode.SETTLE ,
251+ x402_settlement_mode = og.x402SettlementMode.PRIVATE ,
252252)
253253```
254254
@@ -299,7 +299,7 @@ llm = og.agents.langchain_adapter(
299299 private_key = private_key,
300300 model_cid = og.TEE_LLM .GPT_4_1_2025_04_14 ,
301301 max_tokens = 500 ,
302- x402_settlement_mode = og.x402SettlementMode.SETTLE_BATCH ,
302+ x402_settlement_mode = og.x402SettlementMode.BATCH_HASHED ,
303303)
304304
305305# ── Standard tool ─────────────────────────────────────────────────────────
@@ -356,5 +356,5 @@ if __name__ == "__main__":
356356 models deployed on OpenGradient.
357357- ** Read workflow results** : Use ` og.alphasense.create_read_workflow_tool ` to read
358358 from scheduled on-chain workflows that run models automatically.
359- - ** Go to production** : Switch settlement mode to ` SETTLE_METADATA ` and store the
359+ - ** Go to production** : Switch settlement mode to ` INDIVIDUAL_FULL ` and store the
360360 payment hashes and transaction hashes for your compliance records.
0 commit comments