Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion langfuse/_utils/serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Serializable: # type: ignore

# Attempt to import numpy
try:
import numpy as np
import numpy as np # type: ignore[import-not-found]
except ImportError:
np = None # type: ignore

Expand Down
6,762 changes: 1,679 additions & 5,083 deletions poetry.lock

Large diffs are not rendered by default.

24 changes: 0 additions & 24 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,37 +23,14 @@ opentelemetry-exporter-otlp = "^1.33.1"

[tool.poetry.group.dev.dependencies]
pytest = ">=7.4,<9.0"
chromadb = ">=0.4.2,<0.6.0"
tiktoken = "0.7.0"
pytest-timeout = "^2.1.0"
pytest-xdist = "^3.3.1"
respx = ">=0.20.2,<0.22.0"
google-search-results = "^2.4.2"
huggingface_hub = ">=0.16.4,<0.25.0"
pre-commit = "^3.2.2"
anthropic = ">=0.17.0,<1"
bs4 = ">=0.0.1,<0.0.3"
lark = "^1.1.7"
pytest-asyncio = ">=0.21.1,<0.24.0"
pytest-httpserver = "^1.0.8"
boto3 = "^1.28.59"
ruff = ">=0.1.8,<0.6.0"
mypy = "^1.0.0"
langchain-mistralai = ">=0.0.1,<0.3"
google-cloud-aiplatform = "^1.38.1"
cohere = ">=4.46,<6.0"
langchain-google-vertexai = ">=1.0.0,<3.0.0"
langchain-openai = ">=0.0.5,<0.3"
dashscope = "^1.14.1"
pymongo = "^4.6.1"
llama-index-llms-anthropic = ">=0.1.1,<0.6"
bson = "^0.5.10"
langchain-anthropic = ">=0.1.4,<0.4"
langchain-groq = ">=0.1.3,<0.3"
langchain-aws = ">=0.1.3,<0.3"
langchain-ollama = "^0.2.0"
langchain-cohere = "^0.3.3"
langchain-community = ">=0.2.14,<0.4"
langgraph = "^0.2.62"

[tool.poetry.group.docs.dependencies]
Expand All @@ -62,7 +39,6 @@ pdoc = "^14.4.0"
[tool.poetry.extras]
openai = ["openai"]
langchain = ["langchain"]
llama-index = ["llama-index"]

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down
158 changes: 0 additions & 158 deletions tests/test_extract_model.py

This file was deleted.

9 changes: 0 additions & 9 deletions tests/test_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from unittest.mock import patch

import pytest
from bson import ObjectId
from langchain.schema.messages import HumanMessage
from pydantic import BaseModel

Expand Down Expand Up @@ -129,11 +128,3 @@ def test_observation_level():
result = json.dumps(ObservationLevel.ERROR, cls=EventSerializer)

assert result == '"ERROR"'


def test_mongo_cursor():
test_id = ObjectId("5f3e3e3e3e3e3e3e3e3e3e3e")

result = json.dumps(test_id, cls=EventSerializer)

assert isinstance(result, str)
Loading