feat(llm): migrate from OpenRouter to OpusAgent

Replace OpenRouter (openai SDK) with OpusAgent REST API (httpx + polling).
LLMClient now creates topics per system prompt, submits async requests,
and polls for completion. Model tiers map to Claude model IDs
(opus-4-7, sonnet-4-6, haiku-4-5) configurable via env vars.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Adriano Dal Pastro
2026-05-26 09:09:54 +00:00
parent a702b2090d
commit 646c64dacd
10 changed files with 342 additions and 324 deletions
+1 -1
View File
@@ -23,7 +23,7 @@
# ./state contiene runs.db (GA) + strategy_crypto.db (paper) + WAL/SHM
# ./src/strategy_crypto/strategy_crypto/strategies JSON freezate (ro)
#
# Secrets (token Cerbero + OpenRouter): caricati da .env via env_file.
# Secrets (token Cerbero + OpusAgent): caricati da .env via env_file.
networks:
traefik: