Review pass: - Drop `Pick<>` type aliases on `Usage.totalInput` / `Usage.totalOutput` — the helpers can take `Usage` directly since every field is optional. - Collapse Bedrock's nested `subtractTokens(subtractTokens(...))` into a single subtraction against the summed cache subtotals. - Drop arithmetic-walkthrough comments in test fixtures (the raw fixture values are right next to the expected outputs). - Generalize the comment on `mapUsage` in `openai-chat.ts` so the rationale outlives the PR reference. |
||
|---|---|---|
| .. | ||
| anthropic-messages.recorded.test.ts | ||
| anthropic-messages.test.ts | ||
| bedrock-converse.test.ts | ||
| cloudflare.test.ts | ||
| gemini.test.ts | ||
| golden.recorded.test.ts | ||
| openai-chat.test.ts | ||
| openai-compatible-chat.test.ts | ||
| openai-responses.test.ts | ||
| openrouter.test.ts | ||