Repository navigation
chore: retire the testnet; release 1.24.2 - #123
Merged
Merged
Conversation
testnet.blockrun.ai (Base Sepolia, chain 84532) was retired on 2026-10-02 and no longer resolves. The SDK stops offering it without breaking imports: - testnet_client() / async_testnet_client() stay importable (and in __all__) but raise RetiredEndpointError naming the date and the mainnet replacement, LLMClient() / AsyncLLMClient(). async_testnet_client() is a plain function now, so it raises at the call, awaited or not. - validate_api_url() refuses the testnet.blockrun.ai host with the same error, so an explicit api_url, BLOCKRUN_API_URL, or any other client pointed at it fails at construction rather than with a DNS error. - TESTNET_API_URL kept as a deprecated class attribute; is_testnet() kept and always False; get_balance() and the 402 network default are Base mainnet only. Base Sepolia stays in the x402 chain table for third-party 402s. - README: testnet sections replaced by a short "Testnet (retired)" note; llama-index integration's api_url example is now Circle Arc. - tests/unit/test_retired_testnet.py pins the behavior (23 tests). - Release 1.24.2: VERSION, pyproject.toml, __version__, CHANGELOG.
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.
BlockRun's testnet (
testnet.blockrun.ai, Base Sepolia, chain 84532) was retired on 2026-10-02: blockrun commit 935285c0 deleted theblockrun-testnetCloud Run service and its domain mapping. This PR stops the SDK from offering it, without breaking imports for existing users.Behavior
testnet_client()/async_testnet_client()stay importable (and in__all__) but raiseRetiredEndpointError(the SDK's existing type for retired helpers, aBlockrunError). The message names 2026-10-02 and the replacement:from blockrun_llm import LLMClient; client = LLMClient()(orAsyncLLMClient()), plus the free tier (routing_profile="free") for development without spending USDC.async_testnet_client()is now a plain function, so it raises at the call whether or not the caller awaits it or usesasync with.validate_api_url()refuses thetestnet.blockrun.aihost with the same error (checked before the HTTPS check). SoLLMClient(api_url="https://testnet.blockrun.ai/api"),BLOCKRUN_API_URLset to it, and every other client fail at construction instead of with a DNS error on the first request. Only that exact host is refused; other URLs containing "testnet" are untouched.LLMClient.TESTNET_API_URL/AsyncLLMClient.TESTNET_API_URLare kept as deprecated attributes.is_testnet()is kept and always returnsFalse.get_balance()reads Base mainnet only, and a 402 without anetworkdefaults toeip155:8453.EVM_NETWORKS,BASE_SEPOLIA_*): it is the generic signer's table, so the SDK can still pay a 402 from a non-BlockRun server that names it. Only the comments changed._detect_network()drops itsbase-sepoliabranch; the billing CLI's--networkhelp notes old records may still carry it.Docs
get_balance_testnet()helper that never existed.api_urlfield description, README and the string-assertion test now use Circle Arc (https://arc.blockrun.ai/api) as the override example. No adapter version bump (description text only).CLAUDE.mdchain list andexamples/sweep_all_chat_models.py(deadis_testnet()guard removed).Release
1.24.2:
VERSION,pyproject.toml,blockrun_llm/__init__.py__version__, CHANGELOG, same as the 1.24.1 release commit. Not tagged or published; publishing is thev1.24.2GitHub Release after merge.Tests
tests/unit/test_retired_testnet.py(23 tests): names importable; both helpers raise with and without arguments, awaited or not; message points at mainnet and the free tier; both clients refuse the URL, the deprecated constant and the env var;ImageClientrefuses it too;validate_api_urlrefuses http/https/case variants and accepts live gateways.black --check .clean,ruff check .clean,pytest tests/unit1692 passed, llama-index adapterpytest52 passed,node scripts/sync-brand-numbers.mjs --checkup to date.