@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.
- package/package.json +1 -1
- package/src/server.js +3 -1
package/package.json
CHANGED
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:
|
|
109
|
+
model: model,
|
|
108
110
|
messages: messages,
|
|
109
111
|
stream: request.stream !== false // default true
|
|
110
112
|
};
|