Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -76,20 +76,24 @@
"metadata": {},
"outputs": [],
"source": [
"\n",
"# Import Required Libraries\n",
"import os\n",
"from strands import Agent, tool\n",
"from strands.models import bedrock\n",
"from strands_tools import mem0_memory\n",
"from strands_tools.mem0_memory import Mem0ServiceClient\n",
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @tomdee2 - the main branch has already been updated to the latest us.anthropic.claude-sonnet-4-5-20250929-v1:0 model. Could you please update this PR?

Also, lets use the environment variable instead of importing Mem0ServiceClient class, which I think should work

os.environ["MEM0_LLM_MODEL"] = "us.anthropic.claude-sonnet-4-5-20250929-v1:0"]

"import time\n",
"\n",
"from ddgs import DDGS\n",
"from ddgs.exceptions import DDGSException, RatelimitException\n",
"\n",
"DEFAULT_BEDROCK_MODEL_ID = \"us.anthropic.claude-3-7-sonnet-20250219-v1:0\"\n",
"\n",
"os.environ[\"AWS_REGION\"] = os.environ.get(\"AWS_REGION\", \"us-east-1\")\n",
"bedrock.DEFAULT_BEDROCK_MODEL_ID = \"us.anthropic.claude-3-7-sonnet-20250219-v1:0\" #Optional: Set a default model for Bedrock"
"bedrock.DEFAULT_BEDROCK_MODEL_ID = DEFAULT_BEDROCK_MODEL_ID # Optional: Set a default model for Bedrock\n",
"\n",
"# Required as Mem0 defaults to Claude 3.5 Haiku which now has limited support\n",
"Mem0ServiceClient.DEFAULT_CONFIG[\"llm\"][\"config\"][\"model\"] = DEFAULT_BEDROCK_MODEL_ID "
]
},
{
Expand Down
Loading