Skip to content

Commit 5d03dba

Browse files
committed
update uopdate
1 parent 210021d commit 5d03dba

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

langfuse/model.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -405,17 +405,15 @@ def compile(self, **kwargs) -> List[ChatMessageDict]:
405405
def update(
406406
self, placeholders: Dict[str, List[ChatMessageDict]]
407407
) -> "ChatPromptClient":
408-
"""Updates the stored placeholder values.
409-
410-
Only adds new placeholders or updates existing ones. Does not delete existing keys.
408+
"""Sets the stored placeholder values to the provided ones.
411409
412410
Args:
413411
placeholders: Dictionary mapping placeholder names to lists of chat messages
414412
415413
Returns:
416414
ChatPromptClient: Self for method chaining
417415
"""
418-
self.placeholder_fillins.update(placeholders)
416+
self.placeholder_fillins = placeholders.copy()
419417
return self
420418

421419
@property

0 commit comments

Comments
 (0)