Neither the coordinator nor the graph resolver set max_tokens, so openrouter reserved the model's entire output window against the key's remaining budget and returned 402 before running anything: 131k tokens reserved to produce a few hundred. It never showed up with the old model because its output window is small enough to fit under the limit. Both are now bounded and overridable by env. The headroom is deliberate, the newer reasoning models spend completion tokens thinking before they answer. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WnNxwxfXSbeNtjvtz5gayb
30 lines
716 B
Bash
30 lines
716 B
Bash
# copy this to .env and fill in your values
|
|
|
|
ADMIN_USERNAME=admin
|
|
ADMIN_PASSWORD=
|
|
|
|
DATABASE_PATH=./archive.sqlite
|
|
DATABASE_URL=postgresql://user:password@localhost:5432/duriin
|
|
|
|
SEC_USER_AGENT=
|
|
|
|
ALPHA_VANTAGE_API_KEY=
|
|
FINNHUB_API_KEY=
|
|
|
|
OPEN_ROUTER_API_KEY=
|
|
OPEN_ROUTER_LLM_MODEL=~deepseek/deepseek-v4-flash-latest
|
|
OPEN_ROUTER_EMBED_MODEL=qwen/qwen3-embedding-8b
|
|
|
|
# Paper execution is disabled unless AUTONOMY_EXECUTION_MODE=paper.
|
|
# These credentials are accepted only by the hard-coded Alpaca paper endpoint.
|
|
ALPACA_PAPER_KEY_ID=
|
|
ALPACA_PAPER_SECRET_KEY=
|
|
AUTONOMY_EXECUTION_MODE=shadow
|
|
AUTONOMY_DEFAULT_NOTIONAL=100
|
|
|
|
GDELT_BQ_PROJECT=
|
|
GDELT_BQ_KEY_FILE=./gdelt-credentials.json
|
|
|
|
SERVER_PORT=3001
|
|
SERVER_HOST=0.0.0.0
|