claude-codex-proxy 1.0.5-beta.33 → 1.0.5-beta.34

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.33",
3
+ "version": "1.0.5-beta.34",
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",
@@ -45,7 +45,7 @@ export async function handleChatCompletion(req, res) {
45
45
 
46
46
  const anthropicRequest = _buildAnthropicRequest(body, upstreamModel);
47
47
 
48
- logger.request('POST', '/v1/chat/completions', {
48
+ logger.request({
49
49
  model: upstreamModel,
50
50
  requestedModel,
51
51
  account: creds.email,
@@ -56,7 +56,7 @@ export async function handleMessages(req, res) {
56
56
 
57
57
  const { upstreamModel } = resolveModelRouting(requestedModel);
58
58
 
59
- logger.request('POST', '/v1/messages', {
59
+ logger.request({
60
60
  model: upstreamModel,
61
61
  requestedModel,
62
62
  stream: isStreaming,
@@ -157,8 +157,8 @@ class Logger extends EventEmitter {
157
157
  this._log('DEBUG', ...args);
158
158
  }
159
159
 
160
- request(method, path, details = {}) {
161
- const parts = [`${method}`, path];
160
+ request(details = {}) {
161
+ const parts = [];
162
162
  if (details.model) parts.push(`model=${details.model}`);
163
163
  if (details.requestedModel) parts.push(`requested_model=${details.requestedModel}`);
164
164
  if (details.account) parts.push(`account=${details.account}`);