Fixes 145: using a supported model for Mem0 in the tutorial#227
Open
tomdee2 wants to merge 1 commit intostrands-agents:mainfrom
Open
Fixes 145: using a supported model for Mem0 in the tutorial#227tomdee2 wants to merge 1 commit intostrands-agents:mainfrom
tomdee2 wants to merge 1 commit intostrands-agents:mainfrom
Conversation
|
Latest scan for commit: ✅ Security Scan Report (PR Files Only)Scanned Files
Security Scan Results
Threshold: High No security issues detected in your changes. Great job! This scan only covers files changed in this PR. |
| "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", |
Collaborator
There was a problem hiding this comment.
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"]
Collaborator
|
@tomdee2 - Please apply the same fix the the Python file as well |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue #145
Description of changes:
Mem0 defaults to Claude 3.5 Haiku if a model is not explicitly specified. This causes the error below when trying to running tutorial 7.
This PR fixes this issue by explicitly setting the model for Mem0 to use as the same model which is being used elsewhere.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.