Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: 0xPlaygrounds/rig
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: BlockRunAI/rig
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 8 commits
  • 8 files changed
  • 1 contributor

Commits on Jan 21, 2026

  1. feat(providers): add BlockRun x402 micropayment provider

    BlockRun enables pay-per-request access to 30+ AI models via x402 micropayments.
    Users pay with USDC on Base - no API keys needed, just a funded wallet.
    
    Features:
    - Full x402 v2 protocol implementation with EIP-712 signing
    - Support for all major model providers via BlockRun:
      - Anthropic (Claude Sonnet 4, Opus 4, Haiku 3.5)
      - OpenAI (GPT-4o, GPT-4o-mini, o1, o3-mini)
      - Google (Gemini 2.0 Flash, Gemini 2.5 Pro)
      - DeepSeek (Chat, Reasoner)
      - xAI (Grok 2, Grok 3)
    - Streaming support
    - Tool calling support
    - Complete test coverage
    
    Usage:
    ```rust
    use rig::providers::blockrun;
    
    let client = blockrun::Client::from_env(); // reads BLOCKRUN_PRIVATE_KEY
    let agent = client.agent(blockrun::CLAUDE_SONNET_4).build();
    let response = agent.prompt("Hello!").await?;
    ```
    1bcMax committed Jan 21, 2026
    Configuration menu
    Copy the full SHA
    ab36bfd View commit details
    Browse the repository at this point in the history
  2. fix(blockrun): use reqwest directly for x402 payment flow

    Rig's HTTP client abstraction treats 402 responses as errors before the
    x402 payment flow can intercept them. Fixed by using reqwest directly
    for the initial request to properly handle the 402 response and extract
    payment headers.
    
    Changes:
    - Use reqwest::Client for initial request to handle 402 status
    - Parse payment requirements from x-payment-required header
    - Sign EIP-712 authorization and retry with payment header
    - Removed unused bytes::Bytes import
    
    Tested end-to-end with real x402 payments:
    - Claude Sonnet 4: ✓
    - GPT-4o: ✓
    - DeepSeek: ✓
    - Tool calling: ✓
    1bcMax committed Jan 21, 2026
    Configuration menu
    Copy the full SHA
    3e2e30f View commit details
    Browse the repository at this point in the history
  3. Merge pull request #1 from BlockRunAI/feat/blockrun-provider

    feat(providers): add BlockRun x402 micropayment provider
    1bcMax authored Jan 21, 2026
    Configuration menu
    Copy the full SHA
    3340bd2 View commit details
    Browse the repository at this point in the history
  4. Update README with BlockRun integration guide

    - Add comprehensive documentation for BlockRun x402 micropayment provider
    - Include on-chain transaction proof with Base mainnet transactions
    - Add latency benchmarks for Claude, GPT-4o, DeepSeek
    - Document all available models (30+ across providers)
    - Add quick start guide and tool usage examples
    - Reference upstream PR #1294
    1bcMax committed Jan 21, 2026
    Configuration menu
    Copy the full SHA
    129d389 View commit details
    Browse the repository at this point in the history
  5. Add BlockRun to root README with transaction proof and latency

    - Feature BlockRun pay-per-request at top of README
    - Add on-chain transaction proof table (Base mainnet)
    - Include latency benchmarks (~3-5s per model)
    - Document 30+ available models across providers
    - Link to upstream PR #1294
    1bcMax committed Jan 21, 2026
    Configuration menu
    Copy the full SHA
    42e4038 View commit details
    Browse the repository at this point in the history
  6. Feature BlockRun in root README with transaction proof

    - Add BlockRun pay-per-request section at top of README
    - Include on-chain transaction proof table (Base mainnet)
    - Add latency benchmarks (~3-5s per model)
    - Document 30+ available models across all providers
    - Link to upstream PR #1294
    1bcMax committed Jan 21, 2026
    Configuration menu
    Copy the full SHA
    0518d97 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    026b7e4 View commit details
    Browse the repository at this point in the history

Commits on Jan 27, 2026

  1. Configuration menu
    Copy the full SHA
    532d971 View commit details
    Browse the repository at this point in the history
Loading