@mmmbuto/zai-codex-bridge 0.1.6 → 0.1.7

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/src/server.js +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mmmbuto/zai-codex-bridge",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Local proxy that translates OpenAI Responses API format to Z.AI Chat Completions format for Codex",
5
5
  "main": "src/server.js",
6
6
  "bin": {
package/src/server.js CHANGED
@@ -103,8 +103,10 @@ function translateResponsesToChat(request) {
103
103
  }
104
104
 
105
105
  // Build chat request
106
+ // Normalize model name to lowercase (Z.AI requirement)
107
+ const model = (request.model || 'glm-4.7').toLowerCase();
106
108
  const chatRequest = {
107
- model: request.model || 'glm-4.7', // Default to glm-4.7 (lowercase)
109
+ model: model,
108
110
  messages: messages,
109
111
  stream: request.stream !== false // default true
110
112
  };