-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
feat: improve instagram client #2975
feat: improve instagram client #2975
Conversation
There is a INSTAGRAM_ setting that should be respected first, then look into the generic one, then the default value
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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 @derrix060! Welcome to the elizaOS community. Thanks for submitting your first pull request; your efforts are helping us accelerate towards AGI. We'll review it shortly. You are now an elizaOS contributor!
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. |
Updated the image generation parameters to utilize dynamic settings from the runtime configuration. This allows for more flexible image generation based on user-defined preferences, improving the overall functionality and customization of the Instagram post service.
Expanded test coverage for Instagram client configuration and post service. Added tests for: - Environment configuration validation with enhanced image settings - Handling of partial and invalid configuration parameters - Image generation settings and fallback mechanisms - Post interval selection logic - Error handling for image generation failures
c22ede7
to
d65f9c7
Compare
Relates to
No specific issue linked - please add if applicable
Risks
Low - This PR introduces configuration flexibility for Instagram posting intervals and image generation settings with safe fallbacks.
Background
What does this PR do?
This PR makes two main improvements:
What kind of change is this?
Improvements (misc. changes to existing features)
Documentation changes needed?
No. The documentation already suggest the usage of these parameters, but they were not being used.
Testing
Where should a reviewer start?
InstagramPostService
Detailed testing steps
Test posting intervals:
INSTAGRAM_POST_INTERVAL_MIN
andINSTAGRAM_POST_INTERVAL_MAX
POST_INTERVAL_MIN/MAX
Test image generation:
generateImage
Key changes:
The changes maintain backwards compatibility while adding more configuration options for fine-tuned control.