Skip to content

fix: update deprecated SDK example, service tables, and compute contracts#251

Merged
Ravenyjh merged 2 commits into0gfoundation:mainfrom
dorukardahan:fix/audit-findings-feb-2026
Feb 20, 2026
Merged

fix: update deprecated SDK example, service tables, and compute contracts#251
Ravenyjh merged 2 commits into0gfoundation:mainfrom
dorukardahan:fix/audit-findings-feb-2026

Conversation

@dorukardahan
Copy link
Contributor

Summary

Fixes three documentation inaccuracies found during an audit of the compute network docs:

Files Changed

File Change
docs/.../data/ts-sdk-example.ts Deprecated API migration + processResponse fix
docs/.../compute-network/inference.md Service tables updated with live data
docs/ai-context.md Compute contracts added + fine-tuning model updated

Verification

All service data verified against live mainnet/testnet via CLI on 2026-02-20. Contract addresses sourced from SDK v0.7.0.

Closes #248, closes #249, closes #250

…acts

- Update ts-sdk-example.ts to use createZGComputeNetworkBroker (replaces
  deprecated createZGServingNetworkBroker), fix processResponse param
  order to (providerAddress, chatID, content), and use new broker.inference
  and broker.ledger namespaced APIs (closes 0gfoundation#248)

- Update inference service tables with live data: mainnet now lists 7
  services (added gpt-oss-20b, corrected GLM-5 to GLM-5-FP8, fixed
  model descriptions), testnet now lists 4 services (added gpt-oss-20b
  and gemma-3-27b-it) (closes 0gfoundation#249)

- Add compute contract addresses (Ledger, Inference, FineTuning) for
  both mainnet and testnet to ai-context.md, and update fine-tuning
  example model from meta-llama/Llama-3.2-3B to Qwen2.5-0.5B-Instruct
  to match live providers (closes 0gfoundation#250)
@vercel
Copy link

vercel bot commented Feb 20, 2026

@dorukardahan is attempting to deploy a commit to the 0g-Frontend Team on Vercel.

A member of the Team first needs to authorize it.

…xample

Per Jiahao's review:
1. Remove gemma-3-27b-it (testnet) and gpt-oss-20b (both networks) —
   both Phala providers deprecated due to instability
2. Delete ts-sdk-example.ts — file is deprecated, no need to fix

Testnet: 4 → 2 services. Mainnet: 7 → 6 services.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Ravenyjh Ravenyjh merged commit 16b97a2 into 0gfoundation:main Feb 20, 2026
3 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants