• erio's avatar
    refactor: move channel model restriction from handler to scheduling phase · ce41afb7
    erio authored
    Move the model pricing restriction check from 8 handler entry points
    to the account scheduling phase (SelectAccountForModelWithExclusions /
    SelectAccountWithLoadAwareness), aligning restriction with billing:
    
    - requested: check original request model against pricing list
    - channel_mapped: check channel-mapped model against pricing list
    - upstream: per-account check using account-mapped model
    
    Handler layer now only resolves channel mapping (no restriction).
    Scheduling layer performs pre-check for requested/channel_mapped,
    and per-account filtering for upstream billing source.
    ce41afb7
gateway_service.go 304 KB