Skip to content

Commit

Permalink
Update libs/core/langchain_core/prompts/chat.py
Browse files Browse the repository at this point in the history
Co-authored-by: Erick Friis <[email protected]>
  • Loading branch information
isahers1 and efriis authored Jan 23, 2025
1 parent ac27b29 commit 7418d89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/core/langchain_core/prompts/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -1465,7 +1465,7 @@ def _convert_to_message(
if isinstance(message, dict):
if set(message.keys()) != {"content", "role"}:
msg = (
"Expected dict to have keys 'role' and 'content'."
"Expected dict to have exact keys 'role' and 'content'."
f" Got: {message}"
)
raise ValueError(msg)
Expand Down

0 comments on commit 7418d89

Please sign in to comment.