Skip to content

Commit e5c8272

Browse files
committed
update update again
1 parent 5d03dba commit e5c8272

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

langfuse/model.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -403,17 +403,17 @@ def compile(self, **kwargs) -> List[ChatMessageDict]:
403403
]
404404

405405
def update(
406-
self, placeholders: Dict[str, List[ChatMessageDict]]
406+
self, *, placeholders: Dict[str, List[ChatMessageDict]]
407407
) -> "ChatPromptClient":
408-
"""Sets the stored placeholder values to the provided ones.
408+
"""Updates the stored placeholder values with the provided ones.
409409
410410
Args:
411411
placeholders: Dictionary mapping placeholder names to lists of chat messages
412412
413413
Returns:
414414
ChatPromptClient: Self for method chaining
415415
"""
416-
self.placeholder_fillins = placeholders.copy()
416+
self.placeholder_fillins.update(placeholders)
417417
return self
418418

419419
@property

0 commit comments

Comments
 (0)