claude-codex-proxy 1.0.5-beta.21 → 1.0.5-beta.23

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-codex-proxy",
3
- "version": "1.0.5-beta.21",
3
+ "version": "1.0.5-beta.23",
4
4
  "description": "Multi-account proxy server for OpenAI Codex CLI with Claude API compatibility",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/direct-api.js CHANGED
@@ -14,7 +14,6 @@ const require = createRequire(import.meta.url);
14
14
  const packageJson = require('../package.json');
15
15
  const API_URL = 'https://chatgpt.com/backend-api/codex/responses';
16
16
  const APP_VERSION = packageJson.version;
17
- const UPSTREAM_REQUEST_TIMEOUT_MS = 4 * 60 * 1000;
18
17
 
19
18
  function createAnthropicUsage(upstreamUsage = {}) {
20
19
  const usage = {
@@ -129,8 +128,7 @@ async function createResponsesAPIStreamResponse(anthropicRequest, accessToken, a
129
128
  const response = await fetch(API_URL, {
130
129
  method: 'POST',
131
130
  headers: buildOpencodeHeaders(accessToken, accountId, context),
132
- body: JSON.stringify(request),
133
- signal: AbortSignal.timeout(UPSTREAM_REQUEST_TIMEOUT_MS)
131
+ body: JSON.stringify(request)
134
132
  });
135
133
 
136
134
  if (response.ok) return response;
@@ -197,8 +195,7 @@ export async function sendMessage(anthropicRequest, accessToken, accountId, cont
197
195
  const response = await fetch(API_URL, {
198
196
  method: 'POST',
199
197
  headers: buildOpencodeHeaders(accessToken, accountId, context),
200
- body: JSON.stringify(request),
201
- signal: AbortSignal.timeout(UPSTREAM_REQUEST_TIMEOUT_MS)
198
+ body: JSON.stringify(request)
202
199
  });
203
200
 
204
201
  if (!response.ok) {
@@ -16,10 +16,10 @@ const STANDARD_PRICING = {
16
16
  output: 30
17
17
  },
18
18
  'gpt-5.6-terra': {
19
- input: 2.5,
20
- cachedInput: 0.25,
21
- cacheWrite: 3.125,
22
- output: 15
19
+ input: 2,
20
+ cachedInput: 0.2,
21
+ cacheWrite: 2.5,
22
+ output: 12
23
23
  },
24
24
  'gpt-5.4-mini': {
25
25
  input: 0.75,
@@ -37,10 +37,10 @@ const LONG_CONTEXT_PRICING = {
37
37
  output: 45
38
38
  },
39
39
  'gpt-5.6-terra': {
40
- input: 5,
41
- cachedInput: 0.5,
42
- cacheWrite: 6.25,
43
- output: 22.5
40
+ input: 4,
41
+ cachedInput: 0.4,
42
+ cacheWrite: 5,
43
+ output: 18
44
44
  }
45
45
  };
46
46