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
feat: allow boto3 to use its native credential finding functionality (#1536)
Mikec90f87e65718
diff --git a/embedchain/docs/components/llms.mdx b/embedchain/docs/components/llms.mdxindex c0034dc12..183b8cd3f 100644--- a/embedchain/docs/components/llms.mdx+++ b/embedchain/docs/components/llms.mdx@@ -708,8 +708,6 @@ embedder:import osfrom embedchain import App-os.environ["AWS_ACCESS_KEY_ID"] = "xxx"-os.environ["AWS_SECRET_ACCESS_KEY"] = "xxx"os.environ["AWS_REGION"] = "us-west-2"app = App.from_config(config_path="config.yaml")diff --git a/mem0/llms/aws_bedrock.py b/mem0/llms/aws_bedrock.pyindex d56ff4a43..9f6c1b090 100644--- a/mem0/llms/aws_bedrock.py+++ b/mem0/llms/aws_bedrock.py@@ -1,5 +1,5 @@+import json-import osfrom typing import Any, Dict, List, Optionaltry:@@ -11,18 +11,13 @@ from mem0.configs.llms.base import BaseLlmConfigfrom mem0.llms.base import LLMBase-class AWSBedrockLLM(LLMBase):+class AWSBedrockLLM(LLMBase):def __init__(self, config: Optional[BaseLlmConfig] = None):super().__init__(config)if not self.config.model:- self.config.model = "anthropic.claude-3-5-sonnet-20240620-v1:0"- self.client = boto3.client(- "bedrock-runtime",- region_name=os.environ.get("AWS_REGION"),- aws_access_key_id=os.environ.get("AWS_ACCESS_KEY"),- aws_secret_access_key=os.environ.get("AWS_SECRET_ACCESS_KEY"),- )+ self.config.model="anthropic.claude-3-5-sonnet-20240620-v1:0"+ self.client = boto3.client("bedrock-runtime")self.model_kwargs = {"temperature": self.config.temperature,"max_tokens_to_sample": self.config.max_tokens,