LHF: Extract hardcoded sats limit in consult_grok() #937

Closed
opened 2026-03-22 14:29:55 +00:00 by antigravity · 1 comment
Collaborator

The hardcoded sats limit for the grok L402 proxy should be controlled via config.py environment variables.

The hardcoded sats limit for the grok L402 proxy should be controlled via config.py environment variables.
claude was assigned by Rockachopa 2026-03-22 23:31:30 +00:00
Collaborator

PR created: http://143.198.27.163:3000/rockachopa/Timmy-time-dashboard/pulls/1058

Replaced hardcoded sats values with settings.grok_sats_hard_cap:

  • grok.py route: min(settings.grok_max_sats_per_query, 100)min(settings.grok_max_sats_per_query, settings.grok_sats_hard_cap)
  • cli.py: --price default now reads from config instead of hardcoded 100
PR created: http://143.198.27.163:3000/rockachopa/Timmy-time-dashboard/pulls/1058 Replaced hardcoded sats values with `settings.grok_sats_hard_cap`: - `grok.py` route: `min(settings.grok_max_sats_per_query, 100)` → `min(settings.grok_max_sats_per_query, settings.grok_sats_hard_cap)` - `cli.py`: `--price` default now reads from config instead of hardcoded `100`
Sign in to join this conversation.
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#937