@blockrun/llm 3.14.2 → 3.14.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1292,35 +1292,35 @@ const markets = await client.pm("polymarket/markets");
1292
1292
  const filtered = await client.pm("polymarket/markets", { status: "active", limit: 10 });
1293
1293
  const searched = await client.pm("polymarket/markets", { search: "bitcoin" });
1294
1294
 
1295
- // List events ($0.001/request)
1295
+ // List events
1296
1296
  const events = await client.pm("polymarket/events");
1297
1297
 
1298
- // Historical trades ($0.001/request)
1298
+ // Historical trades
1299
1299
  const trades = await client.pm("polymarket/trades");
1300
1300
 
1301
- // OHLCV candlestick data for a specific condition ($0.001/request)
1301
+ // OHLCV candlestick data for a specific condition
1302
1302
  const candles = await client.pm("polymarket/candlesticks/0x1234abcd...");
1303
1303
 
1304
- // Wallet profile ($0.005/request — tier 2)
1304
+ // Wallet profile (tier 2)
1305
1305
  const profile = await client.pm("polymarket/wallet/0xABC123...");
1306
1306
 
1307
- // Wallet P&L ($0.005/request — tier 2)
1307
+ // Wallet P&L (tier 2)
1308
1308
  const pnl = await client.pm("polymarket/wallet/pnl/0xABC123...");
1309
1309
 
1310
- // Global leaderboard ($0.001/request)
1310
+ // Global leaderboard
1311
1311
  const leaderboard = await client.pm("polymarket/leaderboard");
1312
1312
  ```
1313
1313
 
1314
1314
  ### Kalshi & Binance
1315
1315
 
1316
1316
  ```typescript
1317
- // Kalshi markets ($0.001/request)
1317
+ // Kalshi markets
1318
1318
  const kalshiMarkets = await client.pm("kalshi/markets");
1319
1319
 
1320
- // Kalshi trades ($0.001/request)
1320
+ // Kalshi trades
1321
1321
  const kalshiTrades = await client.pm("kalshi/trades");
1322
1322
 
1323
- // Binance candles for supported pairs ($0.001/request)
1323
+ // Binance candles for supported pairs
1324
1324
  const btcCandles = await client.pm("binance/candles/BTCUSDT");
1325
1325
  const ethCandles = await client.pm("binance/candles/ETHUSDT");
1326
1326
  // Also: SOLUSDT, XRPUSDT
@@ -1329,7 +1329,7 @@ const ethCandles = await client.pm("binance/candles/ETHUSDT");
1329
1329
  ### Cross-Platform
1330
1330
 
1331
1331
  ```typescript
1332
- // Cross-platform matching pairs ($0.001/request)
1332
+ // Cross-platform matching pairs
1333
1333
  const pairs = await client.pm("matching-markets/pairs");
1334
1334
  ```
1335
1335
 
@@ -1354,17 +1354,17 @@ import { LLMClient } from '@blockrun/llm';
1354
1354
 
1355
1355
  const client = new LLMClient();
1356
1356
 
1357
- // Neural web search ($0.01/request)
1357
+ // Neural web search
1358
1358
  const results = await client.exaSearch("latest AI safety research", { numResults: 5 });
1359
1359
  const news = await client.exaSearch("bitcoin ETF news", { category: "news", numResults: 10 });
1360
1360
 
1361
- // Find similar pages ($0.01/request)
1361
+ // Find similar pages
1362
1362
  const similar = await client.exaFindSimilar("https://openai.com/research/gpt-4", { numResults: 5 });
1363
1363
 
1364
- // Extract content from URLs ($0.002/URL)
1364
+ // Extract content from URLs
1365
1365
  const content = await client.exaContents(["https://arxiv.org/abs/2303.08774"]);
1366
1366
 
1367
- // AI-generated answer from live web ($0.01/request)
1367
+ // AI-generated answer from live web
1368
1368
  const answer = await client.exaAnswer("What is the current state of AI safety research?");
1369
1369
 
1370
1370
  // Generic proxy for any Exa endpoint
@@ -1436,7 +1436,7 @@ npm test -- --coverage # Run with coverage report
1436
1436
  Integration tests call the production API and require:
1437
1437
  - A funded Base wallet with USDC ($1+ recommended)
1438
1438
  - `BASE_CHAIN_WALLET_KEY` environment variable set
1439
- - Estimated cost: ~$0.05 per test run
1439
+ - Integration tests make real paid calls; cost depends on the models exercised
1440
1440
 
1441
1441
  ```bash
1442
1442
  export BASE_CHAIN_WALLET_KEY=0x...
@@ -1726,7 +1726,7 @@ Router Core V3 is bundled into the SDK — the same deterministic routing engine
1726
1726
  Yes — as of v1.6.1. Use `client.chatCompletionStream()` for native streaming or `stream: true` in the OpenAI-compatible client. Payment is handled automatically: the SDK signs USDC payment before streaming begins, and caches payment requirements per model so subsequent calls skip the 402 round-trip (~200ms faster).
1727
1727
 
1728
1728
  ### How much does it cost?
1729
- Pay only for what you use. Prices start at $0.0002 per request (GPT-5 Nano). There are no minimums, subscriptions, or monthly fees. $5 in USDC gets you thousands of requests.
1729
+ Pay only for what you use. There are no minimums, subscriptions, or monthly fees, and $5 in USDC gets you thousands of requests. Live per-model rates are at [blockrun.ai/models](https://blockrun.ai/models).
1730
1730
 
1731
1731
  ### Does it support both Solana and Base?
1732
1732
  Yes. Use `SolanaLLMClient` for Solana payments (recommended) and `LLMClient` for Base payments. Use `apiKey` for account billing without selecting a chain.
package/dist/index.cjs CHANGED
@@ -4600,7 +4600,7 @@ function getCostSummary() {
4600
4600
  }
4601
4601
 
4602
4602
  // src/version.ts
4603
- var SDK_VERSION = "3.14.2";
4603
+ var SDK_VERSION = "3.14.3";
4604
4604
  var USER_AGENT = `blockrun-ts/${SDK_VERSION}`;
4605
4605
 
4606
4606
  // src/client.ts
package/dist/index.js CHANGED
@@ -4483,7 +4483,7 @@ function getCostSummary() {
4483
4483
  }
4484
4484
 
4485
4485
  // src/version.ts
4486
- var SDK_VERSION = "3.14.2";
4486
+ var SDK_VERSION = "3.14.3";
4487
4487
  var USER_AGENT = `blockrun-ts/${SDK_VERSION}`;
4488
4488
 
4489
4489
  // src/client.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockrun/llm",
3
- "version": "3.14.2",
3
+ "version": "3.14.3",
4
4
  "type": "module",
5
5
  "description": "TypeScript SDK for BlockRun - every frontier model behind one OpenAI-compatible client. Pay with a BlockRun API key or per-call in USDC. Smart routing picks the cheapest capable model. No rate limits.",
6
6
  "main": "dist/index.cjs",