Skip to content

Commit

Permalink
add flush
Browse files Browse the repository at this point in the history
  • Loading branch information
marcklingen committed Oct 9, 2023
1 parent a22505a commit 420137b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions langfuse/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,7 @@ def link(self, observation: typing.Union[StatefulClient, str], run_name: str):
observation.task_manager.flush()
observation_id = observation.id
elif isinstance(observation, str):
self.langfuse.flush()
observation_id = observation
else:
raise ValueError("observation parameter must be either a StatefulClient or a string")
Expand Down

0 comments on commit 420137b

Please sign in to comment.