fix: update deprecated SDK example, service tables, and compute contracts#251
Merged
Ravenyjh merged 2 commits into0gfoundation:mainfrom Feb 20, 2026
Merged
Conversation
…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)
|
@dorukardahan is attempting to deploy a commit to the 0g-Frontend Team on Vercel. A member of the Team first needs to authorize it. |
Ravenyjh
reviewed
Feb 20, 2026
docs/developer-hub/building-on-0g/compute-network/data/ts-sdk-example.ts
Outdated
Show resolved
Hide resolved
…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
approved these changes
Feb 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes three documentation inaccuracies found during an audit of the compute network docs:
createZGServingNetworkBrokertocreateZGComputeNetworkBroker, updated to namespaced API (broker.inference.*,broker.ledger.*), and fixedprocessResponseparameter order to(providerAddress, chatID, content)gpt-oss-20b, correctedGLM-5toGLM-5-FP8, fixed model descriptions). Updated testnet from 2 to 4 services (addedgpt-oss-20bandgemma-3-27b-it)Qwen2.5-0.5B-Instructto match live providersFiles Changed
docs/.../data/ts-sdk-example.tsdocs/.../compute-network/inference.mddocs/ai-context.mdVerification
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