Commit Graph

3 Commits

Author SHA1 Message Date
Clayton Brown 872ec8d119 feat: spend limits with automatic abort (#524)
Add --max-cost flag (USD) to cap LLM spend per analysis run.

Review feedback applied:
- Guard trace[-1] IndexError when stream yields no chunks
- Remove speculative model entries from pricing table
- Move budget checks inside lock for thread safety
- Split log_ticker_spend into format + log for modularity

Closes #524
2026-04-20 22:41:10 +10:00
Yijia-Xiao 6c9c9ce1fd
fix: set process-level UTF-8 default for cross-platform consistency 2026-03-22 23:42:37 +00:00
Yijia-Xiao 551fd7f074 chore: update model lists, bump to v0.2.1, fix package build
- OpenAI: add GPT-5.4, GPT-5.4 Pro; remove o-series and legacy GPT-4o
- Anthropic: add Claude Opus 4.6, Sonnet 4.6; remove legacy 4.1/4.0/3.x
- Google: add Gemini 3.1 Pro, 3.1 Flash Lite; remove deprecated
  gemini-3-pro-preview and Gemini 2.0 series
- xAI: clean up model list to match current API
- Simplify UnifiedChatOpenAI GPT-5 temperature handling
- Add missing tradingagents/__init__.py (fixes pip install building)
2026-03-15 23:34:50 +00:00