Skip to content
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(client-twitter): add mention deduplication utility #2178

Merged
merged 3 commits into from
Jan 12, 2025

Conversation

nhodges
Copy link
Contributor

@nhodges nhodges commented Jan 12, 2025

Relates to

Risks

Super low-risk, text mutation/scrub prior to sending Tweet.

Background

What does this PR do?

Currently, the Grok LLM is generating duplicate mentions at the beginning of responses. This adds a simple safeguard to deduplicate mentions before sending the tweet.

What kind of change is this?

Improvement

Why are we doing this? Any context or related work?

Because agents look like total nards when they tag the same person multiple times.

https://x.com/0xEvaZero/status/1878293408500093358

Documentation changes needed?

Testing

Where should a reviewer start?

Detailed testing steps

Currently, the Grok LLM is generating duplicate mentions at the beginning of responses. This adds a simple safeguard to deduplicate mentions before sending the tweet.
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Hi @nhodges! 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!

@nhodges nhodges changed the base branch from main to develop January 12, 2025 04:20
@odilitime odilitime merged commit b3c0869 into elizaOS:develop Jan 12, 2025
6 checks passed
0xpi-ai pushed a commit to 0xpi-ai/NayariAI that referenced this pull request Jan 15, 2025
fix(client-twitter): add mention deduplication utility
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants