@hamak/smart-data-dico 1.24.4 → 1.24.5
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/backend/dist/server.mjs +2 -2
- package/package.json +1 -1
package/backend/dist/server.mjs
CHANGED
|
@@ -117921,7 +117921,7 @@ function buildAiErrorDiagnostics(req, cfg, diagnosticId, rawMessages, pageContex
|
|
|
117921
117921
|
provider: cfg.provider,
|
|
117922
117922
|
model: cfg.model,
|
|
117923
117923
|
incomingRequest: {
|
|
117924
|
-
contentLengthHeader: req.get("content-length") ?? null,
|
|
117924
|
+
contentLengthHeader: typeof req.get === "function" ? req.get("content-length") ?? null : null,
|
|
117925
117925
|
parsedBodyBytes: jsonByteLength(req.body),
|
|
117926
117926
|
messageHistoryBytes: jsonByteLength(rawMessages),
|
|
117927
117927
|
messageCount: rawMessages.length,
|
|
@@ -118814,7 +118814,7 @@ Be concise in your responses. Show a summary of what you created.`;
|
|
|
118814
118814
|
provider: cfg.provider,
|
|
118815
118815
|
model: cfg.model,
|
|
118816
118816
|
mode,
|
|
118817
|
-
contentLengthHeader: req.get("content-length") ?? null,
|
|
118817
|
+
contentLengthHeader: typeof req.get === "function" ? req.get("content-length") ?? null : null,
|
|
118818
118818
|
parsedRequestBodyBytes: jsonByteLength(req.body),
|
|
118819
118819
|
messageHistoryBytes: jsonByteLength(rawMessages),
|
|
118820
118820
|
messageCount: rawMessages.length,
|