We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d03dba commit e5c8272Copy full SHA for e5c8272
1 file changed
langfuse/model.py
@@ -403,17 +403,17 @@ def compile(self, **kwargs) -> List[ChatMessageDict]:
403
]
404
405
def update(
406
- self, placeholders: Dict[str, List[ChatMessageDict]]
+ self, *, placeholders: Dict[str, List[ChatMessageDict]]
407
) -> "ChatPromptClient":
408
- """Sets the stored placeholder values to the provided ones.
+ """Updates the stored placeholder values with the provided ones.
409
410
Args:
411
placeholders: Dictionary mapping placeholder names to lists of chat messages
412
413
Returns:
414
ChatPromptClient: Self for method chaining
415
"""
416
- self.placeholder_fillins = placeholders.copy()
+ self.placeholder_fillins.update(placeholders)
417
return self
418
419
@property
0 commit comments