Small fixes
A selection of 80 fixes from 174 pull requests.
72.Normalizing a value twice
The normalized reason tool-calls was decoded again as if it were wire-format tool_calls, producing unknown and leaving calls unflushed. Assign the normalized value directly.
11finishReason = resolveFinishReason("tool-calls")finishReason = "tool-calls"