Skip to content

Commit cd89409

Browse files
committed
push
1 parent 2bd5eb4 commit cd89409

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

langfuse/batch_evaluation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1173,7 +1173,7 @@ async def _fetch_batch_with_retry(
11731173
) # type: ignore
11741174
return list(response.data) # type: ignore
11751175
elif scope == "observations":
1176-
response = self.client.api.observations.get_many(
1176+
response = self.client.api.legacy.observations_v1.get_many(
11771177
page=page,
11781178
limit=limit,
11791179
filter=filter,

tests/test_core_sdk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ async def update_generation(i, langfuse: Langfuse):
5050
api = get_api()
5151
for i in range(100):
5252
# Find the observations with the expected name
53-
observations = api.observations.get_many(name=str(i)).data
53+
observations = api.legacy.observations_v1.get_many(name=str(i)).data
5454

5555
# Find generation observations (there should be at least one)
5656
generation_obs = [obs for obs in observations if obs.type == "GENERATION"]

tests/test_prompt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ def test_prompt_end_to_end():
676676
generation = trace.observations[0]
677677
assert generation.prompt_id is not None
678678

679-
observation = api.observations.get(generation.id)
679+
observation = api.legacy.observations_v1.get(generation.id)
680680

681681
assert observation.prompt_id is not None
682682

0 commit comments

Comments
 (0)