(test) langfuse

This commit is contained in:
ishaan-jaff 2023-12-09 22:58:23 -08:00
parent f6a8ade91a
commit 7977f92bd2

View file

@ -95,9 +95,9 @@ def test_langfuse_logging_async():
response = asyncio.run(_test_langfuse()) response = asyncio.run(_test_langfuse())
print(f"response: {response}") print(f"response: {response}")
time.sleep(2) # time.sleep(2)
# check langfuse.log to see if there was a failed response # # check langfuse.log to see if there was a failed response
search_logs("langfuse.log") # search_logs("langfuse.log")
except litellm.Timeout as e: except litellm.Timeout as e:
pass pass
except Exception as e: except Exception as e:
@ -119,9 +119,9 @@ def test_langfuse_logging():
temperature=0.2, temperature=0.2,
) )
print(response) print(response)
time.sleep(5) # time.sleep(5)
# check langfuse.log to see if there was a failed response # # check langfuse.log to see if there was a failed response
search_logs("langfuse.log") # search_logs("langfuse.log")
except litellm.Timeout as e: except litellm.Timeout as e:
pass pass