@sliday/tamp 0.2.3 → 0.2.4

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/package.json +1 -1
  2. package/providers.js +7 -1
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "providers.js",
10
10
  "stats.js"
11
11
  ],
12
- "version": "0.2.3",
12
+ "version": "0.2.4",
13
13
  "description": "Token compression proxy for coding agents. Works with Claude Code, Aider, Cursor, Cline, Windsurf. 33.9% fewer input tokens.",
14
14
  "type": "module",
15
15
  "main": "index.js",
package/providers.js CHANGED
@@ -51,10 +51,16 @@ const anthropic = {
51
51
  const openai = {
52
52
  name: 'openai',
53
53
  match(method, url) {
54
- return method === 'POST' && (url.startsWith('/v1/chat/completions') || url.startsWith('/chat/completions'))
54
+ return method === 'POST' && (
55
+ url.startsWith('/v1/chat/completions') ||
56
+ url.startsWith('/chat/completions') ||
57
+ url.startsWith('/v1/responses') ||
58
+ url.startsWith('/responses')
59
+ )
55
60
  },
56
61
  normalizeUrl(url) {
57
62
  if (url.startsWith('/chat/completions')) return '/v1' + url
63
+ if (url.startsWith('/responses')) return '/v1' + url
58
64
  return url
59
65
  },
60
66
  extract(body) {