Skip to content

Commit

Permalink
fix(google-common): Anthropic util using getType instead of _getType (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
bracesproul authored Nov 26, 2024
1 parent 983f57a commit 3e37940
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/langchain-google-common/src/utils/anthropic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ export function getAnthropicAPI(config?: AnthropicAPIConfig): GoogleAIAPI {
function baseToAnthropicMessage(
base: BaseMessage
): AnthropicMessage | undefined {
const type = base.getType();
const type = base._getType();
switch (type) {
case "human":
return baseRoleToAnthropicMessage(base, "user");
Expand Down

0 comments on commit 3e37940

Please sign in to comment.