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.
| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| audio.go | Loading commit data... | |
| claude.go | Loading commit data... | |
| dalle.go | Loading commit data... | |
| embedding.go | Loading commit data... | |
| error.go | Loading commit data... | |
| file_data.go | Loading commit data... | |
| midjourney.go | Loading commit data... | |
| notify.go | Loading commit data... | |
| openai_request.go | Loading commit data... | |
| openai_response.go | Loading commit data... | |
| playground.go | Loading commit data... | |
| pricing.go | Loading commit data... | |
| ratio_sync.go | Loading commit data... | |
| realtime.go | Loading commit data... | |
| rerank.go | Loading commit data... | |
| sensitive.go | Loading commit data... | |
| suno.go | Loading commit data... | |
| task.go | Loading commit data... | |
| video.go | Loading commit data... |