@blockrun/llm 3.24.8 → 3.24.10

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
@@ -635,7 +635,10 @@ console.log(res.costUsd, res.settlement); // what you paid, and the tx
635
635
  ```
636
636
 
637
637
  `costUsd`, `settlement` and the per-call `timeout` work the same on `LLMClient`
638
- (Base / Arc). `costUsd` is what the call added to `getSpending()`: the signed
638
+ (Base / Arc). Both clients default to a 600 s request timeout
639
+ (`BLOCKRUN_CHAT_TIMEOUT`, in seconds, overrides it; the `timeout` option, in
640
+ ms, overrides both): a call aborted after its payment was sent may already be
641
+ charged, so a batch payment ends unresolved rather than paid again. `costUsd` is what the call added to `getSpending()`: the signed
639
642
  price under `exact`, the metered `extra.chargedAmount` under batch settlement,
640
643
  `0` for a free model; it is undefined in API-key mode (billed to the account).
641
644
  When the gateway answers a paid request from a free fallback model it skips
@@ -1695,7 +1698,7 @@ const configured = new LLMClient({
1695
1698
  | `SOLANA_RPC_URL` | Solana RPC for payments and balance (also `rpcUrl`) |
1696
1699
  | `SOLANA_RPC_API_KEY` / `SOLANA_RPC_HEADERS` | Header auth for that RPC (also `rpcHeaders`) |
1697
1700
  | `BASE_RPC_URL` | Base RPC tried first by `LLMClient.getBalance()` |
1698
- | `BLOCKRUN_CHAT_TIMEOUT` | `LLMClient` default timeout, in **seconds** (default 600) |
1701
+ | `BLOCKRUN_CHAT_TIMEOUT` | `LLMClient` and `SolanaLLMClient` default timeout, in **seconds** (default 600) |
1699
1702
  | `BLOCKRUN_HOME` | Base directory for the Base wallet files (security-sensitive, see [Wallets](#one-wallet-across-every-blockrun-product)) |
1700
1703
 
1701
1704
  `BLOCKRUN_SOL_OPERATOR` is **not** an environment variable or a secret. It is