feat(task-b2c222ef): swap OpenAI for Cerebras API#3
Open
Chkhikvadze wants to merge 5 commits intomainfrom
Open
feat(task-b2c222ef): swap OpenAI for Cerebras API#3Chkhikvadze wants to merge 5 commits intomainfrom
Chkhikvadze wants to merge 5 commits intomainfrom
Conversation
added 5 commits
April 3, 2026 10:19
- score_tweet: cast all metric fields to float with None→0 fallback - _fmt_num: accept None and return '0' instead of crashing - .env.example: document correct Discord bot token for #x-alerts
- Multi-account: config.json now has x_accounts[] + active_account - pending_actions.json includes account_id + account_label - Discord buttons show account label: 'RT as @cosmicquantum (personal)' - All log output redirected to stderr (stdout = clean JSON in --dry-run) - Verified: 10/10 QA criteria pass - Score formula verified: likes*3+rts*5+replies*2+views*0.01+quotes*4+bookmarks*2 - GPT-4o-mini called for top-3 only (cost-efficient) - Live Discord posting verified to channel 1477727527618347340
…ngage.sh - Add run-engage.sh: shell wrapper for OpenClaw cron (loads .env, calls python3 analyze.py) - Fix Discord token: use openclaw.json fallback (same pattern as post-to-discord.cjs) - Add .env with correct bot token for channel 1477727527618347340 - Rewrite README: explains exactly what happens on merge (cron auto-runs every 4h) - OpenClaw cron job created: 'X Engage - Engagement Report (4h)' ID b046db40 - Verified: 6 Discord messages post to #x-alerts on every run Addresses rejection: after merge, cron runs automatically every 4h, posts engagement report to Discord #x-alerts (channel 1477727527618347340).
- Use Cerebras base_url + apiKey from openclaw.json in analyze.py - Change openai_model to cerebras/gpt-oss-120b in config.json - Add CEREBRAS_API_KEY to .env
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.
Task ID: b2c222ef-f72f-4afc-901a-f04b8740ed52