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: Limit the number of timelines fetched #1931

Merged
merged 3 commits into from
Jan 7, 2025

Conversation

tcm390
Copy link
Collaborator

@tcm390 tcm390 commented Jan 7, 2025

Related Issue
elizaOS/agent-twitter-client#43

Problem
The count parameter is currently not functioning. Based on testing, it appears to be ignored on the server side. This is problematic, as the default behavior fetches a large number of timelines:

fetchHomeTimeline: ~30–40 timelines per request
fetchFollowingTimeline: ~100 timelines per request

For users with the action processing feature enabled, this results in excessive LLM API calls (Reference: #1824 introduced a new environment variable to enable user interactions with following timelines.). In this PR, I used a workaround by slicing the timelines before processing to reduce the number of processed items.

@shakkernerd shakkernerd changed the title Limit the number of timelines fetched. fix: Limit the number of timelines fetched Jan 7, 2025
@shakkernerd shakkernerd merged commit cddc8d0 into develop Jan 7, 2025
9 of 11 checks passed
@shakkernerd shakkernerd deleted the tcm-limit-fetchingTimelines branch January 7, 2025 01:05
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