Files
new-api/controller
t0ng7u b43423bffc feat(ratio-sync): support /api/pricing parsing, confidence verification & UI enhancements
Backend
- controller/ratio_sync.go
  • Parse /api/pricing response and convert to ratio / price maps.
  • Introduce confidence heuristic (model_ratio = 37.5 && completion_ratio = 1) to flag unreliable data.
  • Include confidence map when building differences and filter “same”/empty entries.
- dto/ratio_sync.go
  • Add `ID` to UpstreamDTO, `upstreams` to UpstreamRequest, and `Confidence` to DifferenceItem.

Frontend
- ChannelSelectorModal.js
  • Re-implement with table layout, pagination, search, endpoint-type selector and mobile support.
- UpstreamRatioSync.js
  • Send full upstream objects, add ratio-type filter, confidence badges/tooltips, retain endpoints.
  • Leverage ChannelSelectorModal’s pagination reset.
- ChannelsTable.js – fix tag color for disabled status.
- en.json – add translations for new UI labels.

Motivation
These changes let users sync model ratios / prices from different upstream endpoints and visually identify potentially unreliable data, improving operational safety and flexibility.
2025-06-21 20:24:52 +08:00
..
2024-12-29 16:50:26 +08:00
2024-11-18 18:52:14 +08:00
2025-03-15 19:10:12 +08:00
2024-11-18 18:52:14 +08:00
2025-04-28 11:25:04 +08:00
2025-06-18 21:23:06 +08:00
2025-06-19 15:16:26 +08:00
2025-06-16 22:15:12 +08:00
2025-06-19 11:53:42 +08:00
2025-06-19 11:53:42 +08:00
2024-09-25 17:15:59 +08:00
2025-06-16 22:15:12 +08:00