@eeacms/volto-eea-chatbot 2.0.3 → 2.0.4
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/CHANGELOG.md +11 -1
- package/package.json +1 -1
- package/src/middleware.js +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,17 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
-
### [2.0.
|
|
7
|
+
### [2.0.4](https://github.com/eea/volto-eea-chatbot/compare/2.0.3...2.0.4) - 28 May 2026
|
|
8
|
+
|
|
9
|
+
#### :bug: Bug Fixes
|
|
10
|
+
|
|
11
|
+
- fix: Remove console.logs [Alin Voinea - [`fed3b08`](https://github.com/eea/volto-eea-chatbot/commit/fed3b086b35fb74bbf03d39d679c8167d3a2e29b)]
|
|
12
|
+
|
|
13
|
+
#### :hammer_and_wrench: Others
|
|
14
|
+
|
|
15
|
+
- Revert "fixed summary while streaming" [Alin Voinea - [`9c59b72`](https://github.com/eea/volto-eea-chatbot/commit/9c59b7210bd1dc49b61ba90ae7e218b858ebc360)]
|
|
16
|
+
- fixed summary while streaming [Zoltan Szabo - [`3ff7468`](https://github.com/eea/volto-eea-chatbot/commit/3ff74680c716be39de75f5dee2cdf92096edfd5a)]
|
|
17
|
+
### [2.0.3](https://github.com/eea/volto-eea-chatbot/compare/2.0.2...2.0.3) - 19 May 2026
|
|
8
18
|
|
|
9
19
|
#### :rocket: New Features
|
|
10
20
|
|
package/package.json
CHANGED
package/src/middleware.js
CHANGED
|
@@ -186,12 +186,12 @@ async function send_onyx_request(
|
|
|
186
186
|
options.body = JSON.stringify(req.body);
|
|
187
187
|
}
|
|
188
188
|
|
|
189
|
-
console.log('[Middleware] Sending request to Onyx:', {
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
});
|
|
189
|
+
// console.log('[Middleware] Sending request to Onyx:', {
|
|
190
|
+
// url,
|
|
191
|
+
// method: req.method,
|
|
192
|
+
// hasBody: !!req.body,
|
|
193
|
+
// body: JSON.stringify(req.body, null, 2),
|
|
194
|
+
// });
|
|
195
195
|
|
|
196
196
|
const mock_file = is_related_question
|
|
197
197
|
? process.env.MOCK_LLM_FILE_PATH_RQ
|
|
@@ -220,12 +220,12 @@ async function send_onyx_request(
|
|
|
220
220
|
log(`Fetching ${url}`);
|
|
221
221
|
const response = await fetch(url, options, req.body);
|
|
222
222
|
|
|
223
|
-
console.log('[Middleware] Received response from Onyx:', {
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
});
|
|
223
|
+
// console.log('[Middleware] Received response from Onyx:', {
|
|
224
|
+
// url,
|
|
225
|
+
// status: response.status,
|
|
226
|
+
// statusText: response.statusText,
|
|
227
|
+
// headers: response.headers.raw(),
|
|
228
|
+
// });
|
|
229
229
|
|
|
230
230
|
if (process.env.DUMP_LLM_FILE_PATH && !is_related_question) {
|
|
231
231
|
const filePath = process.env.DUMP_LLM_FILE_PATH;
|