Skip to content

Commit

Permalink
Update chat_message.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dfokina authored Dec 17, 2024
1 parent b88daae commit c663d44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion haystack/dataclasses/chat_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def __new__(cls, *args, **kwargs):
allowed_content_types = (TextContent, ToolCall, ToolCallResult)
if len(args) > 1 and not isinstance(args[1], allowed_content_types):
raise TypeError(
"The `_content` parameter of `ChatMessage` must be a one of the following types: "
"The `_content` parameter of `ChatMessage` must be one of the following types: "
f"{', '.join(t.__name__ for t in allowed_content_types)}. "
f"{general_msg}"
)
Expand Down

0 comments on commit c663d44

Please sign in to comment.