@langchain/google-common 0.1.2 → 0.1.3
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/anthropic.cjs
CHANGED
package/dist/utils/anthropic.js
CHANGED
|
@@ -365,7 +365,7 @@ export function getAnthropicAPI(config) {
|
|
|
365
365
|
};
|
|
366
366
|
}
|
|
367
367
|
function baseToAnthropicMessage(base) {
|
|
368
|
-
const type = base.
|
|
368
|
+
const type = base._getType();
|
|
369
369
|
switch (type) {
|
|
370
370
|
case "human":
|
|
371
371
|
return baseRoleToAnthropicMessage(base, "user");
|