Skip to content

chore: retire the testnet; release 1.24.2 - #123

Merged
VickyXAI merged 1 commit into
mainfrom
chore/retire-testnet
Nov 28, 2026
Merged

VickyXAI merged 1 commit into
mainfrom
chore/retire-testnet

Conversation

@VickyXAI

Copy link
Copy Markdown
Contributor

BlockRun's testnet (testnet.blockrun.ai, Base Sepolia, chain 84532) was retired on 2026-10-02: blockrun commit 935285c0 deleted the blockrun-testnet Cloud 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 raise RetiredEndpointError (the SDK's existing type for retired helpers, a BlockrunError). The message names 2026-10-02 and the replacement: from blockrun_llm import LLMClient; client = LLMClient() (or AsyncLLMClient()), 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 uses async with.
  • validate_api_url() refuses the testnet.blockrun.ai host with the same error (checked before the HTTPS check). So LLMClient(api_url="https://testnet.blockrun.ai/api"), BLOCKRUN_API_URL set 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_URL are kept as deprecated attributes. is_testnet() is kept and always returns False. get_balance() reads Base mainnet only, and a 402 without a network defaults to eip155:8453.
  • Base Sepolia stays in the x402 chain table (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 its base-sepolia branch; the billing CLI's --network help notes old records may still carry it.

Docs

  • README: the Base Testnet chains-table row, the "Testnet Models" table and the "Testnet Usage" section are replaced by a short "Testnet (retired)" note with the one-line migration. Also drops a mention of a get_balance_testnet() helper that never existed.
  • llama-index-llms-blockrun: api_url field 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.md chain list and examples/sweep_all_chat_models.py (dead is_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 the v1.24.2 GitHub Release after merge.

Tests

  • New 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; ImageClient refuses it too; validate_api_url refuses http/https/case variants and accepts live gateways.
  • Local: black --check . clean, ruff check . clean, pytest tests/unit 1692 passed, llama-index adapter pytest 52 passed, node scripts/sync-brand-numbers.mjs --check up to date.

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.
@VickyXAI
VickyXAI merged commit 7f2d9db into main Nov 28, 2026
6 checks passed
@VickyXAI
VickyXAI deleted the chore/retire-testnet branch November 28, 2026 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant