[Improvement] fix slack loader max_count (#1127)

Co-authored-by: Deven Patel <deven298@yahoo.com>
This commit is contained in:
Deven Patel
2024-01-07 13:03:42 +05:30
committed by GitHub
parent 73e726f6e3
commit 1b661bb2fd
2 changed files with 6 additions and 6 deletions

View File

@@ -16,10 +16,10 @@ class SlackLoader(BaseLoader):
def __init__(self, config: Optional[Dict[str, Any]] = None):
super().__init__()
if config is not None:
self.config = config
else:
self.config = {"base_url": SLACK_API_BASE_URL}
self.config = config if config else {}
if "base_url" not in self.config:
self.config["base_url"] = SLACK_API_BASE_URL
self.client = None
self._setup_loader(self.config)
@@ -73,7 +73,7 @@ class SlackLoader(BaseLoader):
query=query,
sort="timestamp",
sort_dir="desc",
count=1000,
count=self.config.get("count", 100),
)
messages = results.get("messages")

View File

@@ -1,6 +1,6 @@
[tool.poetry]
name = "embedchain"
version = "0.1.54"
version = "0.1.55"
description = "Data platform for LLMs - Load, index, retrieve and sync any unstructured data"
authors = [
"Taranjeet Singh <taranjeet@embedchain.ai>",