Files
sub2api/backend/internal/handler
erio 1d3b0418ac feat(channel-monitor): preserve upstream error body + log silent 503s
Monitor:
- callProvider now returns both textPath-extracted text and raw body;
  runCheckForModel uses rawBody on non-2xx so history.message stops being
  "upstream HTTP 503: " with empty body (gjson textPath produces "" for
  error responses like {"error":{"message":"No available accounts..."}})
- truncateForErrorBody collapses whitespace then caps at 300 bytes
  (monitorErrorBodySnippetMaxBytes); final truncateMessage still enforces
  the 500-byte DB column cap

Gateway:
- Add WARN log at 4 previously-silent 503 fast-paths in gateway_handler.go
  (gateway.select_account_no_available for first-selection failures,
   gateway.select_account_no_slot_no_wait_plan for concurrency misses).
  Before this, /v1/messages could 503 in <10ms with zero service-layer log
  lines, making upstream diagnostics reliant on body capture only.

Frontend:
- MonitorFormDialog: primary_model input text color and ModelTagInput tags
  now both track form.provider (via new getPlatformTextClass + existing
  getPlatformTagClass with platform prop).

chore: bump version to 0.1.114.30
2026-04-21 11:59:11 +08:00
..
2026-02-02 22:13:50 +08:00
2026-02-02 22:13:50 +08:00