Skip to content

Commit fe084be

Browse files
fix(langchain): add bedrock chat and non chat types (#187) (#192)
Co-authored-by: Chase Willden <chase.willden@gmail.com>
1 parent e030fdf commit fe084be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

langfuse/callback.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ def __on_llm_action(
477477
)
478478
if kwargs["invocation_params"]["_type"] in ["anthropic-llm", "anthropic-chat"]:
479479
model_name = "anthropic" # unfortunately no model info by anthropic provided.
480-
elif kwargs["invocation_params"]["_type"] == "amazon_bedrock":
480+
elif kwargs["invocation_params"]["_type"] in ["amazon_bedrock", "amazon_bedrock_chat"]:
481481
# langchain only provides string representation of the model class. Hence have to parse it out.
482482
model_name = self.extract_second_part(self.extract_model_id("model_id", serialized["repr"]))
483483
elif kwargs["invocation_params"]["_type"] == "cohere-chat":

0 commit comments

Comments
 (0)