Skip to content

feat(task-b2c222ef): swap OpenAI for Cerebras API#3

Open
Chkhikvadze wants to merge 5 commits intomainfrom
feature/task-b2c222ef
Open

feat(task-b2c222ef): swap OpenAI for Cerebras API#3
Chkhikvadze wants to merge 5 commits intomainfrom
feature/task-b2c222ef

Conversation

@Chkhikvadze
Copy link
Copy Markdown
Contributor

Task ID: b2c222ef-f72f-4afc-901a-f04b8740ed52

Darius Zenith 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
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.

1 participant