From 1ff40d68d3db8d16a4b3c1b427643c17012e6454 Mon Sep 17 00:00:00 2001 From: Fsocietyhhh <1211904451@qq.com> Date: Sun, 14 Jun 2026 14:40:32 -0700 Subject: [PATCH] chore(deps): require blockrun-llm>=1.4.1 so `pip install -U` pulls the SDK fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The dependency floor was >=0.37.0, so `pip install -U blockrun-litellm` left an already-installed blockrun-llm 1.3.0 in place (pip doesn't upgrade a still-satisfied transitive dep) — and 1.3.0 still crashes streamed tool calls ('dict' object has no attribute 'delta'). Bump the floor (base + solana extra) to >=1.4.1, which has the fix, so the upgrade actually carries it. Bump version to 0.4.2. NOTE: once blockrun-llm 1.4.2 ships (Solana ~/.blockrun/.solana-session auto-load), bump this floor to >=1.4.2 so the sidecar starts without SOLANA_WALLET_KEY out of the box too. --- blockrun_litellm/__init__.py | 2 +- pyproject.toml | 17 +++++++++++------ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/blockrun_litellm/__init__.py b/blockrun_litellm/__init__.py index bfaca44..6e363a9 100644 --- a/blockrun_litellm/__init__.py +++ b/blockrun_litellm/__init__.py @@ -26,4 +26,4 @@ from blockrun_litellm.provider import BlockRunLLM, register __all__ = ["BlockRunLLM", "register", "enable_local_logging"] -__version__ = "0.4.1" +__version__ = "0.4.2" diff --git a/pyproject.toml b/pyproject.toml index cb647f9..ec4732e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "blockrun-litellm" -version = "0.4.1" +version = "0.4.2" description = "LiteLLM adapter for BlockRun — call x402-paid AI models via LiteLLM (custom provider or local OpenAI-compatible proxy)" readme = "README.md" license = "MIT" @@ -26,17 +26,22 @@ classifiers = [ ] dependencies = [ - # >=0.37.0: concurrency-safe Solana payments (per-client signing lock + - # whole-request payment retry) so the shared cached client in _adapter is - # reliable under the proxy's concurrent load. See blockrun-llm 0.37.0. - "blockrun-llm>=0.37.0", + # >=1.4.1: streamed tool calls parse correctly (lenient ChatChunkToolCall; + # earlier SDKs crashed the stream archive with "'dict' object has no + # attribute 'delta'"). Bumping the floor past 1.3.0 also means + # `pip install -U blockrun-litellm` actually pulls the fixed SDK instead of + # leaving an already-satisfied 1.3.0 in place. + # NOTE: bump to >=1.4.2 once that ships — it adds the Solana + # ~/.blockrun/.solana-session auto-load so the sidecar starts without + # SOLANA_WALLET_KEY (parity with Base). + "blockrun-llm>=1.4.1", "litellm>=1.40.0", ] [project.optional-dependencies] # Re-exported here so `pip install 'blockrun-litellm[solana]'` pulls the # x402 SVM toolchain that SolanaLLMClient needs (x402 SDK + solders). -solana = ["blockrun-llm[solana]>=0.37.0"] +solana = ["blockrun-llm[solana]>=1.4.1"] proxy = [ "fastapi>=0.110.0", "uvicorn[standard]>=0.27.0",