( model: string, snapshot: SessionQuotaSnapshot, )
| 138 | } |
| 139 | |
| 140 | function toRateLimitInfo( |
| 141 | model: string, |
| 142 | snapshot: SessionQuotaSnapshot, |
| 143 | ): FreebuffSessionRateLimit { |
| 144 | return { |
| 145 | model, |
| 146 | ...snapshot.info, |
| 147 | } |
| 148 | } |
| 149 | |
| 150 | /** Fetch the caller's current shared premium-session quota snapshot for |
| 151 | * `model`, or undefined if the model is unlimited. Used by both POST (after |
no outgoing calls
no test coverage detected