trading/services/meet_kevin_watcher
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
..
__init__.py feat: scaffold meet_kevin_watcher service + config 2026-05-21 19:33:04 +00:00
caption_extractor.py feat(meet-kevin): caption extractor via yt-dlp 2026-05-21 19:40:52 +00:00
config.py refactor(meet-kevin): switch LLM analyzer to OpenRouter via OpenAI SDK 2026-05-22 09:52:55 +00:00
llm_analyzer.py refactor(meet-kevin): switch LLM analyzer to OpenRouter via OpenAI SDK 2026-05-22 09:52:55 +00:00
main.py refactor(meet-kevin): switch LLM analyzer to OpenRouter via OpenAI SDK 2026-05-22 09:52:55 +00:00
pipeline.py feat(meet-kevin): pipeline orchestrator + service main loop 2026-05-21 19:48:43 +00:00
rss_poller.py feat(meet-kevin): RSS poller for YouTube uploads 2026-05-21 19:36:22 +00:00