mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
(beta-test) langfuse embedding
This commit is contained in:
parent
f4def61a90
commit
6e7987c4fc
1 changed files with 18 additions and 1 deletions
|
|
@ -277,7 +277,24 @@ def test_langfuse_logging_custom_generation_name():
|
|||
print(e)
|
||||
|
||||
|
||||
test_langfuse_logging_custom_generation_name()
|
||||
# test_langfuse_logging_custom_generation_name()
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="beta test - checking langfuse output")
|
||||
def test_langfuse_logging_embedding():
|
||||
try:
|
||||
litellm.set_verbose = True
|
||||
litellm.success_callback = ["langfuse"]
|
||||
response = litellm.embedding(
|
||||
model="text-embedding-ada-002",
|
||||
input=["gm", "ishaan"],
|
||||
)
|
||||
print(response)
|
||||
except litellm.Timeout as e:
|
||||
pass
|
||||
except Exception as e:
|
||||
pytest.fail(f"An exception occurred - {e}")
|
||||
print(e)
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="beta test - checking langfuse output")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue