Skip to content

Commit d20b97e

Browse files
committed
fix: remove o4-mini placeholder, add RPC timeout
- Remove o4-mini model (not yet released by OpenAI) - Add 10s timeout to RPC calls in balance.ts to prevent hanging
1 parent 14e800a commit d20b97e

File tree

4 files changed

+6
-12
lines changed

4 files changed

+6
-12
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@blockrun/clawrouter",
3-
"version": "0.3.11",
3+
"version": "0.3.12",
44
"description": "Smart LLM router — save 78% on inference costs. 30+ models, one wallet, x402 micropayments.",
55
"type": "module",
66
"main": "dist/index.js",

src/balance.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ export class BalanceMonitor {
7373
this.walletAddress = walletAddress as `0x${string}`;
7474
this.client = createPublicClient({
7575
chain: base,
76-
transport: http(),
76+
transport: http(undefined, {
77+
timeout: 10_000, // 10 second timeout to prevent hanging on slow RPC
78+
}),
7779
});
7880
}
7981

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ const plugin: OpenClawPluginDefinition = {
219219
id: "clawrouter",
220220
name: "ClawRouter",
221221
description: "Smart LLM router — 30+ models, x402 micropayments, 78% cost savings",
222-
version: "0.3.11",
222+
version: "0.3.12",
223223

224224
register(api: OpenClawPluginApi) {
225225
// Register BlockRun as a provider (sync — available immediately)

src/models.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -150,15 +150,7 @@ export const BLOCKRUN_MODELS: BlockRunModel[] = [
150150
maxOutput: 65536,
151151
reasoning: true,
152152
},
153-
{
154-
id: "openai/o4-mini",
155-
name: "o4-mini",
156-
inputPrice: 1.1,
157-
outputPrice: 4.4,
158-
contextWindow: 128000,
159-
maxOutput: 65536,
160-
reasoning: true,
161-
},
153+
// o4-mini: Placeholder removed - model not yet released by OpenAI
162154

163155
// Anthropic
164156
{

0 commit comments

Comments
 (0)