Skip to content

Commit 0ae5fff

Browse files
authored
fix: sqlalchemy import always required (#584)
1 parent 6dddebb commit 0ae5fff

File tree

4 files changed

+2844
-2833
lines changed

4 files changed

+2844
-2833
lines changed

packages/ragbits-chat/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Unreleased
44

5+
- fix: dont import all persistence strategies in base file (#584)
6+
57
## 0.19.0 (2025-05-27)
68

79
### Changed

packages/ragbits-chat/pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ dependencies = ["fastapi>=0.115.0,<1.0.0", "uvicorn>=0.31.0,<1.0.0", "ragbits-co
4040
"Source" = "https://github.com/deepsense-ai/ragbits"
4141

4242
[project.optional-dependencies]
43+
sql = [
44+
"sqlalchemy>=2.0.39,<3.0.0",
45+
]
46+
4347
[tool.uv]
4448
dev-dependencies = [
4549
"pre-commit~=3.8.0",
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
from ragbits.chat.persistence.base import HistoryPersistenceStrategy
2-
from ragbits.chat.persistence.file import FileHistoryPersistence
3-
from ragbits.chat.persistence.sql import SQLHistoryPersistence
42

5-
__all__ = ["FileHistoryPersistence", "HistoryPersistenceStrategy", "SQLHistoryPersistence"]
3+
__all__ = ["HistoryPersistenceStrategy"]

0 commit comments

Comments
 (0)