( rateLimitsByModel: Record<string, FreebuffSessionRateLimit>, )
| 187 | } |
| 188 | |
| 189 | function onlyUsedRateLimitsByModel( |
| 190 | rateLimitsByModel: Record<string, FreebuffSessionRateLimit>, |
| 191 | ): Record<string, FreebuffSessionRateLimit> { |
| 192 | return Object.fromEntries( |
| 193 | Object.entries(rateLimitsByModel).filter( |
| 194 | ([, snapshot]) => snapshot.recentCount > 0, |
| 195 | ), |
| 196 | ) |
| 197 | } |
| 198 | |
| 199 | function nonEmptyRateLimitsByModel( |
| 200 | rateLimitsByModel: Record<string, FreebuffSessionRateLimit>, |
no outgoing calls
no test coverage detected