budget-agent 0.4.8 → 0.5.0

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.
Files changed (2) hide show
  1. package/README.md +5 -5
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -144,7 +144,7 @@ try {
144
144
 
145
145
  ## OpenAI cost tracking
146
146
 
147
- Use budget-agent with the OpenAI SDK to track GPT-4, GPT-4o, and GPT-3.5 costs in real time.
147
+ Use budget-agent with the OpenAI SDK to track GPT-5.5 costs in real time.
148
148
 
149
149
  ```ts
150
150
  import { AgentBudget } from 'budget-agent';
@@ -191,7 +191,7 @@ const agent = new AgentBudget({
191
191
  method: 'POST',
192
192
  headers: {
193
193
  'x-api-key': process.env.ANTHROPIC_API_KEY!,
194
- 'anthropic-version': '2023-06-01',
194
+ 'anthropic-version': '2026-01-01',
195
195
  'content-type': 'application/json',
196
196
  },
197
197
  body: JSON.stringify({
@@ -257,7 +257,7 @@ const agent = new AgentBudget({
257
257
 
258
258
  // Wrap any LangChain call
259
259
  const response = await agent.step({
260
- model: 'openai/gpt-4o',
260
+ model: 'openai/gpt-5.5',
261
261
  messages: [{ role: 'user', content: prompt }],
262
262
  });
263
263
  ```
@@ -388,8 +388,8 @@ const agent = new AgentBudget({
388
388
  limits: { maxCostUSD: 5.00 },
389
389
  adaptiveRouting: {
390
390
  fallbackChain: [
391
- 'anthropic/claude-opus-4.8-fast',
392
- 'openai/gpt-4o',
391
+ 'anthropic/claude-opus-4-8',
392
+ 'openai/gpt-5.5',
393
393
  'openrouter/free',
394
394
  ],
395
395
  thresholds: [0.4, 0.75],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "budget-agent",
3
- "version": "0.4.8",
3
+ "version": "0.5.0",
4
4
  "description": "Track AI agent costs, tokens, runtime and spending. Prevent runaway OpenAI, Anthropic, LangGraph and OpenRouter agents from exceeding budget.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -59,7 +59,7 @@
59
59
  "budget-enforcement",
60
60
  "circuit-breaker",
61
61
  "checkpoint",
62
- "gpt-4",
62
+ "gpt-5.5",
63
63
  "claude",
64
64
  "langsmith",
65
65
  "langfuse",