trading/services
Viktor Barzin 89f01ad9c0 refactor(meet-kevin): switch LLM analyzer to OpenRouter via OpenAI SDK
User's Vault has openrouter_api_key but no direct sk-ant-* Anthropic key.
OpenRouter passes through Claude Sonnet 4.6 (~3% markup over Anthropic
list pricing) and matches the existing gpt_mini_endpoint pattern used
by recruiter-responder.

- Replace anthropic.AsyncAnthropic with openai.AsyncOpenAI + base_url
- Convert Anthropic tool-use API to OpenAI function-calling
- System prompt unchanged (analyst instructions are model-agnostic)
- Drop cache_control (not in OpenAI API); revisit later if cost matters
- Model slug: anthropic/claude-sonnet-4.5 (OpenRouter's current Claude tier)
- Pricing: $3.10/M input, $15.50/M output (OpenRouter pass-through)
- Config field anthropic_api_key -> openrouter_api_key
- pyproject extras: anthropic>=0.40 -> openai>=1.50

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-22 09:52:55 +00:00
..
api_gateway fix(meet-kevin): API smoke-test bugs from Task 17 QA 2026-05-21 20:15:08 +00:00
learning_engine fix: resolve all remaining TODOs, add dev mode auth bypass 2026-02-25 22:02:25 +00:00
market_data feat: productionize local service — fix signal pipeline, lower thresholds, add company-name ticker extraction 2026-02-22 22:17:26 +00:00
meet_kevin_watcher refactor(meet-kevin): switch LLM analyzer to OpenRouter via OpenAI SDK 2026-05-22 09:52:55 +00:00
news_fetcher fix: resolve 13 important issues from code review 2026-02-22 17:58:01 +00:00
sentiment_analyzer fix: flush article before creating sentiment FK references 2026-02-23 20:57:11 +00:00
signal_generator feat: wire 6 new strategies and fundamentals into signal generator 2026-02-23 21:55:59 +00:00
trade_executor fix: resolve all remaining TODOs, add dev mode auth bypass 2026-02-25 22:02:25 +00:00
__init__.py feat: sentiment analyzer — FinBERT + Ollama tiered analysis 2026-02-22 15:27:06 +00:00