@langchain/core 0.1.26 → 0.1.27-rc.1
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/dist/utils/stream.cjs +1 -1
- package/dist/utils/stream.js +1 -1
- package/package.json +1 -1
package/dist/utils/stream.cjs
CHANGED
|
@@ -152,7 +152,7 @@ function concat(first, second) {
|
|
|
152
152
|
const chunk = { ...first };
|
|
153
153
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
154
154
|
for (const [key, value] of Object.entries(second)) {
|
|
155
|
-
if (key in chunk) {
|
|
155
|
+
if (key in chunk && !Array.isArray(chunk[key])) {
|
|
156
156
|
chunk[key] = concat(chunk[key], value);
|
|
157
157
|
}
|
|
158
158
|
else {
|
package/dist/utils/stream.js
CHANGED
|
@@ -147,7 +147,7 @@ export function concat(first, second) {
|
|
|
147
147
|
const chunk = { ...first };
|
|
148
148
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
149
149
|
for (const [key, value] of Object.entries(second)) {
|
|
150
|
-
if (key in chunk) {
|
|
150
|
+
if (key in chunk && !Array.isArray(chunk[key])) {
|
|
151
151
|
chunk[key] = concat(chunk[key], value);
|
|
152
152
|
}
|
|
153
153
|
else {
|