BudgetStatus is the client's latest snapshot of server accounting. Set is false until the first cloud response, so zero values never render. Remaining is the pass fraction (1.0 = fresh, 0.0 = depleted).
| 54 | // false until the first cloud response, so zero values never render. Remaining |
| 55 | // is the pass fraction (1.0 = fresh, 0.0 = depleted). |
| 56 | type BudgetStatus struct { |
| 57 | Set bool |
| 58 | Remaining float64 |
| 59 | } |
| 60 | |
| 61 | // FromHeaders reads the budget header. Missing (e.g. local Ollama) yields the |
| 62 | // zero value and the UI skips the segment. Out-of-range values are clamped, not |
nothing calls this directly
no outgoing calls
no test coverage detected