fix inc langfuse flish time

This commit is contained in:
Ishaan Jaff 2024-07-29 20:14:45 -07:00
parent 76f4aa80e3
commit 19d57314ee

View file

@ -222,7 +222,7 @@ async def test_langfuse_logging_without_request_response(stream, langfuse_client
print(chunk) print(chunk)
langfuse_client.flush() langfuse_client.flush()
await asyncio.sleep(2) await asyncio.sleep(5)
# get trace with _unique_trace_name # get trace with _unique_trace_name
trace = langfuse_client.get_generations(trace_id=_unique_trace_name) trace = langfuse_client.get_generations(trace_id=_unique_trace_name)
@ -273,7 +273,7 @@ async def test_langfuse_logging_audio_transcriptions(langfuse_client):
) )
langfuse_client.flush() langfuse_client.flush()
await asyncio.sleep(2) await asyncio.sleep(5)
# get trace with _unique_trace_name # get trace with _unique_trace_name
trace = langfuse_client.get_trace(id=_unique_trace_name) trace = langfuse_client.get_trace(id=_unique_trace_name)