The Memory Layer for AI Agents - Drop-in memory infrastructure for AI agents and apps. Context that persists. Built for production.
Python agentic-memoryagentic-memory-systemagentsaiai-agentschatgptgenaillmlong-term-memorymemorymemory-managementpythonragstate-management
[Improvement] fix slack loader max_count (#1127)
Deven Patel1b661bb2fd13
diff --git a/embedchain/loaders/slack.py b/embedchain/loaders/slack.pyindex 44de53b5a..a426d980f 100644--- a/embedchain/loaders/slack.py+++ b/embedchain/loaders/slack.py@@ -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_URLself.client = Noneself._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")diff --git a/pyproject.toml b/pyproject.tomlindex 289264ad1..6d8e7dd2f 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -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 <[email protected]>",