-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: fix the chat stuck in infinite loop #1755
fix: fix the chat stuck in infinite loop #1755
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @zoe27! Welcome to the ai16z community. Thanks for submitting your first pull request; your efforts are helping us accelerate towards AGI. We'll review it shortly. You are now a ai16z contributor!
@zoe27 The PR is failing with the check against the |
@zoe27 Nice! I also figured out this problem, but you have already fixed it! Thanks! |
* main: (704 commits) bump version (elizaOS#2193) feat(security): Implement comprehensive file upload security measures - Add FileSecurityValidator, file type restrictions, size limits, path traversal prevention, enhanced logging and security documentation (elizaOS#1753) (elizaOS#1806) fix(client-twitter): clean up mention deduplication (elizaOS#2185) fix postgres adapter migration extension creation which already exists at this point (elizaOS#2188) Update types.ts fix json format typo fix quai deps fix path Add Persian README File chore: lint and fix pass on develop (elizaOS#2180) bump version to 0,1,8 bump clean up unused var in catch comment out unused AkashMessage interface bump eslint so it doesn't crash remove duplicate TOGETHER in case, lint/unused var convert imageDescriptionsArray from let to const per lint fix: Koloxarto/fix ragknowledge for postgres (elizaOS#2153) fix: fix the chat stuck in infinite loop (elizaOS#1755) fix: remove problematic redundant uuid conversion and add api input param validations to api server (elizaOS#2051) ...
* fix the chat stuck in infinite loop * perfect the PR and keep the temprature and wordsToPunish in the generate response * Update README.md * Trigger CI checks --------- Co-authored-by: Odilitime <janesmith@airmail.cc>
Relates to:
the chat stuck in infinite loop when using model_local #1213
Risks
Low
Background
What does this PR do?
This PR aim to fix the loop chat of the ai agent self when using the model_local
What kind of change is this?
modify the way of response generate in llama.ts
before this PR:
in this PR:
investigation step:
have not go to deeply to see what is the exactly different between
sequence.evaluate
andchatsession
, maybe can fix loop bug first, and for now, have not found any risk.Documentation changes needed?
Testing
Where should a reviewer start?
Detailed testing steps
Before
it loop the response and sometimes, the response is hard to understood
After
seems in a normal way to chat