@langchain/core 0.3.69 → 0.3.71-rc.0
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/prompts/chat.cjs
CHANGED
|
@@ -430,11 +430,13 @@ class _StringImageMessagePromptTemplate extends BaseMessagePromptTemplate {
|
|
|
430
430
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
431
431
|
additionalContentFields = prompt.additionalContentFields;
|
|
432
432
|
}
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
433
|
+
if (formatted !== "") {
|
|
434
|
+
content.push({
|
|
435
|
+
...additionalContentFields,
|
|
436
|
+
type: "text",
|
|
437
|
+
text: formatted,
|
|
438
|
+
});
|
|
439
|
+
}
|
|
438
440
|
/** @TODO replace this */
|
|
439
441
|
// eslint-disable-next-line no-instanceof/no-instanceof
|
|
440
442
|
}
|
package/dist/prompts/chat.js
CHANGED
|
@@ -422,11 +422,13 @@ class _StringImageMessagePromptTemplate extends BaseMessagePromptTemplate {
|
|
|
422
422
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
423
423
|
additionalContentFields = prompt.additionalContentFields;
|
|
424
424
|
}
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
425
|
+
if (formatted !== "") {
|
|
426
|
+
content.push({
|
|
427
|
+
...additionalContentFields,
|
|
428
|
+
type: "text",
|
|
429
|
+
text: formatted,
|
|
430
|
+
});
|
|
431
|
+
}
|
|
430
432
|
/** @TODO replace this */
|
|
431
433
|
// eslint-disable-next-line no-instanceof/no-instanceof
|
|
432
434
|
}
|