From 944db8ce0ead333c7f8f6022902a8cae00fda082 Mon Sep 17 00:00:00 2001 From: 1bcMax Date: Fri, 27 Nov 2026 20:58:27 -0600 Subject: [PATCH] docs: move stale model ids to their successors after the Router Core 53fe783 sync Docstrings, README, examples and the llama-index integration still named models the gateway has retired or will retire, and routing samples that no longer match router-core 53fe783. No runtime default changes. - Retired ids: smart_chat / route() sample outputs, the async sample and the sweep list move off gemini-2.5-flash/pro, gemini-3.5-flash, o1/o3/o3-mini and gpt-5-mini. README catalog drops the o1/o3-mini/o4-mini and gemini-3.5-flash rows (gone from /v1/models, redirected) with a Retired note, and marks o3, gpt-5-mini and gemini-2.5-pro/flash with their retirement date and target. - Superseded ids: example ids move to claude-sonnet-5.5 (claude-sonnet-5-5 in the Anthropic-format samples), gpt-6.2-sol, gpt-6-luna and claude-opus-5.5; benchmark_claude.py defaults to claude-opus-5.5. README GPT-6 table gains gpt-6.2-sol. Old catalog rows stay; they are still sold. - Routing docs: the tier table now lists DEFAULT_ROUTING_CONFIG's auto primaries, and the prose and samples quote client.route() against the live catalog on 2026-11-27 (REASONING proofs rank gemini-3.6-flash first). --- README.md | 102 +++++++++--------- blockrun_llm/anthropic_client.py | 6 +- blockrun_llm/client.py | 8 +- blockrun_llm/router.py | 2 +- blockrun_llm/solana_client.py | 4 +- blockrun_llm/tx_log.py | 4 +- blockrun_llm/types.py | 2 +- examples/arbitrage_analyzer.py | 6 +- examples/benchmark_claude.py | 8 +- examples/sweep_all_chat_models.py | 21 ++-- .../llama-index-llms-blockrun/README.md | 12 +-- .../llama_index/llms/blockrun/base.py | 10 +- 12 files changed, 95 insertions(+), 90 deletions(-) diff --git a/README.md b/README.md index 56a57df..8fc4851 100644 --- a/README.md +++ b/README.md @@ -204,8 +204,8 @@ pip install "llama-index-llms-blockrun[solana]" # pay on Solana ```python from llama_index.llms.blockrun import BlockRun -llm = BlockRun(model="openai/gpt-5.5") # USDC on Base -llm = BlockRun(model="openai/gpt-5.5", chain="solana") # USDC on Solana +llm = BlockRun(model="openai/gpt-6.2-sol") # USDC on Base +llm = BlockRun(model="openai/gpt-6.2-sol", chain="solana") # USDC on Solana ``` ## Smart Routing (Router Core) @@ -220,13 +220,13 @@ client = LLMClient() # Auto-routes to the cheapest capable model result = client.smart_chat("Summarize this changelog entry in one line") print(result.response) -print(result.model) # 'google/gemini-2.5-flash' +print(result.model) # 'google/gemini-3.5-flash-lite' print(result.routing.task_type) # 'chat' print(f"Saved {result.routing.savings * 100:.0f}%") # 'Saved 90%' -# Complex reasoning task -> routes to a reasoning model +# Proofs and step-by-step math classify into the REASONING tier result = client.smart_chat("Prove the Riemann hypothesis step by step") -print(result.model) # 'deepseek/deepseek-v4-pro' +print(result.model) # 'google/gemini-3.6-flash' ``` Routing works the same on every client — `LLMClient`, `AsyncLLMClient`, @@ -255,7 +255,7 @@ same routing locally and returns the decision only: ```python decision = client.route("Prove the Riemann hypothesis step by step") -print(decision.model) # 'deepseek/deepseek-v4-pro' +print(decision.model) # 'google/gemini-3.6-flash' print(decision.tier) # 'REASONING' print(decision.task_type) # 'reasoning' print(decision.candidates) # ordered chain; smart_chat walks it on a 5xx/timeout @@ -305,18 +305,19 @@ Three stages: The four capability tiers: -| Tier | Example Tasks | Auto Profile Model | -|------|---------------|-------------------| -| SIMPLE | Short questions, definitions | google/gemini-2.5-flash | -| MEDIUM | Code snippets, explanations | google/gemini-3.5-flash (code); google/gemini-2.5-flash (plain chat) | +| Tier | Example Tasks | Auto Profile Primary | +|------|---------------|----------------------| +| SIMPLE | Short questions, definitions | google/gemini-3.5-flash-lite | +| MEDIUM | Code snippets, explanations | google/gemini-3.6-flash | | COMPLEX | Architecture, long documents | google/gemini-3.1-pro | -| REASONING | Proofs, math, multi-step reasoning | deepseek/deepseek-v4-pro | +| REASONING | Proofs, math, multi-step reasoning | deepseek/deepseek-reasoner | -These are the picks `client.route()` returned against the live catalog on -2026-10-02. The task ranker can move a tier's fallback ahead of its configured -primary — REASONING's primary is `deepseek/deepseek-reasoner`, but proofs and -step-by-step math rank `deepseek/deepseek-v4-pro` first — so check -`decision.model` rather than relying on this table. +The primaries come from `blockrun_llm.router_core.DEFAULT_ROUTING_CONFIG`. The +task ranker can move a tier's fallback ahead of its primary. On 2026-11-27, +`client.route()` against the live catalog picked the primary for short chat +(SIMPLE) and for code (MEDIUM), but ranked `google/gemini-3.6-flash` ahead of +`deepseek/deepseek-reasoner` for proofs and step-by-step math (REASONING). +Check `decision.model` rather than relying on this table. Every decision is explainable — `result.routing` carries the tier, the task type, the confidence, the ranked `candidates`, the per-candidate @@ -423,7 +424,7 @@ print(f"Balance: ${client.get_balance():.2f} USDC") #### Phase 2 — Every request pays itself (automatic x402) ```python -reply = client.chat("anthropic/claude-sonnet-4.6", "Explain x402 in one line") +reply = client.chat("anthropic/claude-sonnet-5.5", "Explain x402 in one line") ``` That single call does all of this under the hood: @@ -528,12 +529,13 @@ and `client.list_image_models()` return exactly what the gateway is charging. ### OpenAI GPT-6 Family The GPT-6 generation: Astra is the flagship for long-horizon agentic work and -computer use, Sol the cost-efficient tier for complex coding (`gpt-6.1-sol` is the -refreshed Sol), Luna the fast low-cost tier. +computer use, Sol the cost-efficient tier for complex coding (`gpt-6.2-sol` is the +newest Sol, `gpt-6.1-sol` the one before it), Luna the fast low-cost tier. | Model | Context | |---|---| | `openai/gpt-6-astra` | 1.05M | +| `openai/gpt-6.2-sol` | 1.05M | | `openai/gpt-6.1-sol` | 1.05M | | `openai/gpt-6-sol` | 1.05M | | `openai/gpt-6-luna` | 1.05M | @@ -568,7 +570,7 @@ longer at the same token price. | `openai/gpt-5.2-pro` | 400K | | | `openai/gpt-5.1` | 400K | Configurable reasoning effort | | `openai/gpt-5.3-codex` | 400K | Coding/agentic SKU | -| `openai/gpt-5-mini` | 200K | | +| `openai/gpt-5-mini` | 200K | Retiring 2026-12-11: the gateway will redirect it to `openai/gpt-5.6-luna` | ### OpenAI GPT-4 Family @@ -581,12 +583,11 @@ longer at the same token price. ### OpenAI O-Series (Reasoning) -| Model | Context | -|---|---| -| `openai/o1` | 200K | -| `openai/o3` | 200K | -| `openai/o3-mini` | 128K | -| `openai/o4-mini` | 128K | +| Model | Context | Notes | +|---|---|---| +| `openai/o3` | 200K | Retiring 2026-12-11: the gateway will redirect it to `openai/gpt-5.4-mini` | + +> **Retired**: OpenAI shut down `o1`, `o1-mini`, `o3-mini` and `o4-mini`. The gateway redirects pinned callers to `openai/gpt-5.4-mini`, so those ids still return 200, from a different model. ### Anthropic Claude @@ -608,20 +609,21 @@ longer at the same token price. ### Google Gemini -| Model | Context | -|---|---| -| `google/gemini-4-carbon` | 1M | -| `google/gemini-4-argon` | 1M | -| `google/gemini-3.1-pro` | 1M | -| `google/gemini-3.8-flash` | 1M | -| `google/gemini-3.6-flash` | 1M | -| `google/gemini-3.5-flash` | 1M | -| `google/gemini-3-flash-preview` | 1M | -| `google/gemini-3.5-flash-lite` | 1M | -| `google/gemini-3.1-flash-lite` | 1M | -| `google/gemini-2.5-pro` | 1M | -| `google/gemini-2.5-flash` | 1M | -| `google/gemini-2.5-flash-lite` | 1M | +| Model | Context | Notes | +|---|---|---| +| `google/gemini-4-carbon` | 1M | | +| `google/gemini-4-argon` | 1M | | +| `google/gemini-3.1-pro` | 1M | | +| `google/gemini-3.8-flash` | 1M | | +| `google/gemini-3.6-flash` | 1M | | +| `google/gemini-3-flash-preview` | 1M | | +| `google/gemini-3.5-flash-lite` | 1M | | +| `google/gemini-3.1-flash-lite` | 1M | | +| `google/gemini-2.5-pro` | 1M | Retiring 2026-12-01: the gateway will redirect it to `google/gemini-3.8-flash` | +| `google/gemini-2.5-flash` | 1M | Retiring 2026-12-01: the gateway will redirect it to `google/gemini-3.5-flash-lite` | +| `google/gemini-2.5-flash-lite` | 1M | | + +> **Retired**: `google/gemini-3.5-flash` is redirected to `google/gemini-3.6-flash`, the model Google has been serving under that name. ### DeepSeek @@ -1456,7 +1458,7 @@ print(response) # With system prompt response = client.chat( - "anthropic/claude-sonnet-4.6", + "anthropic/claude-sonnet-5.5", "Write a haiku", system="You are a creative poet." ) @@ -1570,8 +1572,8 @@ async def main(): # Multiple requests concurrently tasks = [ client.chat("openai/gpt-5.2", "What is 2+2?"), - client.chat("anthropic/claude-sonnet-4.6", "What is 3+3?"), - client.chat("google/gemini-2.5-flash", "What is 4+4?"), + client.chat("anthropic/claude-sonnet-5.5", "What is 3+3?"), + client.chat("google/gemini-3.5-flash-lite", "What is 4+4?"), ] responses = await asyncio.gather(*tasks) for r in responses: @@ -1741,8 +1743,8 @@ Works the same on `AsyncLLMClient`, `SolanaLLMClient`, and `AsyncSolanaLLMClient Every paid call appends one row. Example: ``` -2026-05-21 15:44:46 chat anthropic/claude-sonnet-4.6 in= 3 out=4 $0.034137 0x6513d128… -2026-05-20 04:34:17 chat openai/gpt-5.5 in= 14 out=18 $0.001000 0x421796a3… +2026-05-21 15:44:46 chat anthropic/claude-sonnet-5.5 in= 3 out=4 $0.034137 0x6513d128… +2026-05-20 04:34:17 chat openai/gpt-6.2-sol in= 14 out=18 $0.001000 0x421796a3… ``` Columns: timestamp · endpoint tag (`chat`/`image`/`video`/`search`/…) · model @@ -1783,7 +1785,7 @@ for row in logger.entries()[-5:]: # Build your own row (e.g. for tests or custom adapters) print(format_row( endpoint="/v1/chat/completions", - model="openai/gpt-5.5", + model="openai/gpt-6.2-sol", in_tokens=14, out_tokens=18, cost_usd=0.001, @@ -1914,7 +1916,7 @@ from blockrun_llm import setup_agent_wallet # Auto-creates wallet if none exists, returns ready client client = setup_agent_wallet() -response = client.chat("openai/gpt-5.4", "Hello!") +response = client.chat("openai/gpt-6.2-sol", "Hello!") ``` For Solana: @@ -1923,7 +1925,7 @@ For Solana: from blockrun_llm import setup_agent_solana_wallet client = setup_agent_solana_wallet() -response = client.chat("anthropic/claude-sonnet-4.6", "Hello!") +response = client.chat("anthropic/claude-sonnet-5.5", "Hello!") ``` Check wallet status: @@ -2040,7 +2042,7 @@ from blockrun_llm import AnthropicClient client = AnthropicClient() # Auto-detects wallet, auto-pays response = client.messages.create( - model="claude-sonnet-4-6", + model="claude-sonnet-5-5", max_tokens=1024, messages=[{"role": "user", "content": "Hello!"}] ) @@ -2048,7 +2050,7 @@ print(response.content[0].text) # Works with any BlockRun model in Anthropic format response = client.messages.create( - model="openai/gpt-5.4", + model="openai/gpt-6.2-sol", max_tokens=1024, messages=[{"role": "user", "content": "Hello from GPT!"}] ) diff --git a/blockrun_llm/anthropic_client.py b/blockrun_llm/anthropic_client.py index f6a81ae..4bda24f 100644 --- a/blockrun_llm/anthropic_client.py +++ b/blockrun_llm/anthropic_client.py @@ -9,7 +9,7 @@ client = AnthropicClient() response = client.messages.create( - model="claude-sonnet-4-6", + model="claude-sonnet-5-5", max_tokens=1024, messages=[{"role": "user", "content": "Hello!"}] ) @@ -116,7 +116,7 @@ class AnthropicClient: client = AnthropicClient() response = client.messages.create( - model="claude-sonnet-4-6", + model="claude-sonnet-5-5", max_tokens=1024, messages=[{"role": "user", "content": "Hello!"}] ) @@ -124,7 +124,7 @@ class AnthropicClient: # Works with any BlockRun model in Anthropic format response = client.messages.create( - model="openai/gpt-5.5", + model="openai/gpt-6.2-sol", max_tokens=1024, messages=[{"role": "user", "content": "Hello from GPT!"}] ) diff --git a/blockrun_llm/client.py b/blockrun_llm/client.py index 9d3d717..f07de02 100644 --- a/blockrun_llm/client.py +++ b/blockrun_llm/client.py @@ -278,7 +278,7 @@ def _should_fallback(exc: Exception) -> bool: # The gateway states the output-token ceiling it actually quoted in the 402's -# ``resource.description``, e.g. "claude-opus-4.8 ... 128000 max output tokens". +# ``resource.description``, e.g. "claude-opus-5.5 ... 128000 max output tokens". # # The alternation is bounded on both branches and the leading lookbehind stops a # match from starting mid-number, so there is no super-linear backtracking. The @@ -982,7 +982,7 @@ def route( Example: decision = client.route("Prove the Riemann hypothesis") - print(decision.model) # 'deepseek/deepseek-v4-pro' + print(decision.model) # 'google/gemini-3.6-flash' print(decision.task_type) # 'reasoning' print(decision.candidates) # ordered fallback chain """ @@ -1033,7 +1033,7 @@ def smart_chat( Example: result = client.smart_chat("What is 2+2?") print(result.response) # '4' - print(result.model) # 'google/gemini-3.5-flash' + print(result.model) # 'google/gemini-3.6-flash' print(result.routing.method) # 'portfolio' print(f"Saved {result.routing.savings * 100:.0f}%") @@ -1201,7 +1201,7 @@ def chat( Simple 1-line chat interface. Args: - model: Model ID (e.g., "openai/gpt-5.2", "anthropic/claude-sonnet-4.6", "openai/gpt-5.2") + model: Model ID (e.g., "openai/gpt-6.2-sol", "anthropic/claude-sonnet-5.5") prompt: User message system: Optional system prompt max_tokens: Max tokens to generate (default: 1024) diff --git a/blockrun_llm/router.py b/blockrun_llm/router.py index 279219a..d080bd8 100644 --- a/blockrun_llm/router.py +++ b/blockrun_llm/router.py @@ -22,7 +22,7 @@ client = LLMClient() result = client.smart_chat("What is 2+2?") print(result.response) # '4' - print(result.model) # 'google/gemini-3.5-flash' + print(result.model) # 'google/gemini-3.6-flash' print(f"Saved {result.routing.savings * 100:.0f}%") """ diff --git a/blockrun_llm/solana_client.py b/blockrun_llm/solana_client.py index 79309ed..06bca88 100644 --- a/blockrun_llm/solana_client.py +++ b/blockrun_llm/solana_client.py @@ -1168,7 +1168,7 @@ def smart_chat( Example: result = client.smart_chat("What is 2+2?") - print(result.model) # 'google/gemini-2.5-flash' + print(result.model) # 'google/gemini-3.6-flash' print(result.routing.method) # 'portfolio' """ decision = route_with_catalog( @@ -4172,7 +4172,7 @@ class AsyncSolanaLLMClient: client = AsyncSolanaLLMClient() # SOLANA_WALLET_KEY env resp = await client.chat_completion( - "openai/gpt-5.5", + "openai/gpt-6.2-sol", [{"role": "user", "content": "gm Solana"}], ) await client.close() diff --git a/blockrun_llm/tx_log.py b/blockrun_llm/tx_log.py index 4a430c1..08e20e0 100644 --- a/blockrun_llm/tx_log.py +++ b/blockrun_llm/tx_log.py @@ -6,7 +6,7 @@ line to a project-local file — default ``./log/transactions.log``. The format is designed to be eyeballable in a terminal and ``grep``-friendly:: - 2026-05-21 15:44:46 chat anthropic/claude-sonnet-4.6 in= 3 out=4 $0.034137 0x6513d128... + 2026-05-21 15:44:46 chat anthropic/claude-sonnet-5.5 in= 3 out=4 $0.034137 0x6513d128... Columns (single space between blocks, two spaces between fields): @@ -426,7 +426,7 @@ class TransactionLogger: request=body, response=chat_response, cost_usd=0.034137, - model="anthropic/claude-sonnet-4.6", + model="anthropic/claude-sonnet-5.5", settlement={"tx_hash": "0x6513d128…"}, ) diff --git a/blockrun_llm/types.py b/blockrun_llm/types.py index 440d33a..c2f87fe 100644 --- a/blockrun_llm/types.py +++ b/blockrun_llm/types.py @@ -938,7 +938,7 @@ class SmartChatResponse(BaseModel): Example: result = client.smart_chat("What is 2+2?") print(result.response) # '4' - print(result.model) # 'google/gemini-2.5-flash' + print(result.model) # 'google/gemini-3.6-flash' print(f"Saved {result.routing.savings * 100:.0f}%") """ diff --git a/examples/arbitrage_analyzer.py b/examples/arbitrage_analyzer.py index 477fec8..c2ad432 100644 --- a/examples/arbitrage_analyzer.py +++ b/examples/arbitrage_analyzer.py @@ -40,10 +40,10 @@ class ArbitrageAnalyzer: # Model recommendations by use case MODELS = { - "fast": "openai/gpt-5.4-nano", # $0.20/M input - quick analysis + "fast": "openai/gpt-6-luna", # $0.10/M input - quick analysis "balanced": "anthropic/claude-haiku-4.5", # $1.00/M input - good reasoning - "deep": "anthropic/claude-sonnet-4.6", # $3.00/M input - thorough analysis - "frontier": "openai/gpt-5.5", # $5.00/M input - latest capabilities (1M context) + "deep": "anthropic/claude-sonnet-5.5", # $2.00/M input - thorough analysis + "frontier": "openai/gpt-6.2-sol", # $2.00/M input - latest capabilities (1.05M context) } def __init__(self, model_tier: str = "fast"): diff --git a/examples/benchmark_claude.py b/examples/benchmark_claude.py index cfd9b24..2d953b7 100755 --- a/examples/benchmark_claude.py +++ b/examples/benchmark_claude.py @@ -28,12 +28,12 @@ Examples -------- - # Solana gateway, claude-opus-4.7, 30 reqs @ concurrency 5, + cache probe - python benchmark_claude.py --chain solana --model anthropic/claude-opus-4.7 \ + # Solana gateway, claude-opus-5.5, 30 reqs @ concurrency 5, + cache probe + python benchmark_claude.py --chain solana --model anthropic/claude-opus-5.5 \ --requests 30 --concurrency 5 --cache-probe # Base gateway, sonnet, quick 10-req smoke - python benchmark_claude.py --chain base --model anthropic/claude-sonnet-4.6 \ + python benchmark_claude.py --chain base --model anthropic/claude-sonnet-5.5 \ --requests 10 --concurrency 3 """ from __future__ import annotations @@ -248,7 +248,7 @@ def fmt(x: float) -> str: def main() -> None: p = argparse.ArgumentParser(description="Claude E2E benchmark via BlockRun gateway") p.add_argument("--chain", choices=["solana", "base"], default="solana") - p.add_argument("--model", default="anthropic/claude-opus-4.7") + p.add_argument("--model", default="anthropic/claude-opus-5.5") p.add_argument("--api-url", default=None, help="override gateway URL") p.add_argument("--requests", type=int, default=20) p.add_argument("--concurrency", type=int, default=5) diff --git a/examples/sweep_all_chat_models.py b/examples/sweep_all_chat_models.py index a0914a0..161c493 100644 --- a/examples/sweep_all_chat_models.py +++ b/examples/sweep_all_chat_models.py @@ -40,6 +40,9 @@ SWEEP_TARGETS: list[str] = [ # OpenAI + "openai/gpt-6.2-sol", + "openai/gpt-6-luna", + "openai/gpt-5.6-luna", "openai/gpt-5.5", "openai/gpt-5.4", "openai/gpt-5.4-pro", @@ -49,11 +52,9 @@ "openai/gpt-5.3-codex", "openai/gpt-5.2", "openai/gpt-5.2-pro", - "openai/gpt-5-mini", - "openai/o1", - "openai/o3", - "openai/o3-mini", # Anthropic + "anthropic/claude-opus-5.5", + "anthropic/claude-sonnet-5.5", "anthropic/claude-opus-4.8", "anthropic/claude-opus-4.7", "anthropic/claude-opus-4.6", @@ -62,9 +63,10 @@ "anthropic/claude-haiku-4.5", # Google "google/gemini-3.1-pro", + "google/gemini-3.8-flash", + "google/gemini-3.6-flash", "google/gemini-3-flash-preview", - "google/gemini-2.5-pro", - "google/gemini-2.5-flash", + "google/gemini-3.5-flash-lite", "google/gemini-3.1-flash-lite", "google/gemini-2.5-flash-lite", # DeepSeek @@ -72,6 +74,7 @@ "deepseek/deepseek-chat", "deepseek/deepseek-reasoner", # xAI — resold via OpenRouter credit pool (added 2026-06-04) + "xai/grok-4.7", "xai/grok-4.3", "xai/grok-build-0.1", # MiniMax @@ -105,12 +108,12 @@ ] REASONING_MODELS = { - "openai/o1", - "openai/o3", - "openai/o3-mini", + "openai/gpt-6.2-sol", + "openai/gpt-6-luna", "openai/gpt-5.3-codex", "deepseek/deepseek-reasoner", "deepseek/deepseek-v4-pro", + "xai/grok-4.7", "xai/grok-4.3", "zai/glm-5.2", "nvidia/nemotron-3-nano-omni-30b-a3b-reasoning", diff --git a/integrations/llama-index-llms-blockrun/README.md b/integrations/llama-index-llms-blockrun/README.md index 34f140d..0e6f5e7 100644 --- a/integrations/llama-index-llms-blockrun/README.md +++ b/integrations/llama-index-llms-blockrun/README.md @@ -34,8 +34,8 @@ The key never leaves your machine; it only signs the payment for each call. ```python from llama_index.llms.blockrun import BlockRun -llm = BlockRun(model="openai/gpt-5.5") # Base -llm = BlockRun(model="openai/gpt-5.5", chain="solana") # Solana +llm = BlockRun(model="openai/gpt-6.2-sol") # Base +llm = BlockRun(model="openai/gpt-6.2-sol", chain="solana") # Solana print(llm.wallet_address) ``` @@ -46,7 +46,7 @@ print(llm.wallet_address) from llama_index.core.llms import ChatMessage from llama_index.llms.blockrun import BlockRun -llm = BlockRun(model="anthropic/claude-sonnet-4.6") +llm = BlockRun(model="anthropic/claude-sonnet-5.5") print(llm.complete("Paris is the capital of")) @@ -72,7 +72,7 @@ Async works the same way: `achat`, `acomplete`, `astream_chat`, `astream_complet ```python from llama_index.core import Settings -Settings.llm = BlockRun(model="openai/gpt-5.5") +Settings.llm = BlockRun(model="openai/gpt-6.2-sol") ``` ### Tools and agents @@ -89,7 +89,7 @@ def multiply(a: float, b: float) -> float: return a * b -agent = FunctionAgent(tools=[multiply], llm=BlockRun(model="openai/gpt-5.5")) +agent = FunctionAgent(tools=[multiply], llm=BlockRun(model="openai/gpt-6.2-sol")) print(await agent.run("What is 1234 * 4567?")) ``` @@ -99,7 +99,7 @@ Each call is quoted by the gateway before anything is signed. Cap what a single call may cost, and a quote above it is refused before it is paid: ```python -llm = BlockRun(model="openai/gpt-5.5", max_cost_per_call=0.05) +llm = BlockRun(model="openai/gpt-6.2-sol", max_cost_per_call=0.05) ``` A refused quote raises `blockrun_llm.SpendLimitError`; an empty wallet raises diff --git a/integrations/llama-index-llms-blockrun/llama_index/llms/blockrun/base.py b/integrations/llama-index-llms-blockrun/llama_index/llms/blockrun/base.py index e5c64fe..c239e46 100644 --- a/integrations/llama-index-llms-blockrun/llama_index/llms/blockrun/base.py +++ b/integrations/llama-index-llms-blockrun/llama_index/llms/blockrun/base.py @@ -88,7 +88,7 @@ class BlockRun(FunctionCallingLLM): """BlockRun LLM: one OpenAI-compatible gateway, paid per call in USDC over x402. Every BlockRun chat model is reachable through this class, addressed by its - catalog id (``openai/gpt-5.5``, ``anthropic/claude-sonnet-4.6``, + catalog id (``openai/gpt-6.2-sol``, ``anthropic/claude-sonnet-5.5``, ``deepseek/deepseek-chat`` ...). The full list is at https://blockrun.ai/api/v1/models. @@ -112,18 +112,18 @@ class BlockRun(FunctionCallingLLM): from llama_index.llms.blockrun import BlockRun # Pays in USDC on Base (the default chain). - llm = BlockRun(model="openai/gpt-5.5") + llm = BlockRun(model="openai/gpt-6.2-sol") print(llm.complete("Paris is the capital of")) # Pays in USDC on Solana. - llm = BlockRun(model="openai/gpt-5.5", chain="solana") + llm = BlockRun(model="openai/gpt-6.2-sol", chain="solana") # Refuse any single call quoted above $0.05 before signing it. - llm = BlockRun(model="openai/gpt-5.5", max_cost_per_call=0.05) + llm = BlockRun(model="openai/gpt-6.2-sol", max_cost_per_call=0.05) """ - model: str = Field(description="BlockRun model id, e.g. 'openai/gpt-5.5'.") + model: str = Field(description="BlockRun model id, e.g. 'openai/gpt-6.2-sol'.") chain: Chain = Field( default="base", description="Chain the wallet pays from: 'base' (USDC on Base) or 'solana' (USDC on Solana).",