- Add rawUsage field to OpenAiChatIterationResult to carry the
original OpenAI SDK usage object through the call chain
- All downstream chat() logs now dump rawUsage via
JSON.parse(JSON.stringify()) instead of our cooked
{ promptTokens, completionTokens }
- This exposes completion_tokens_details.reasoning_tokens and
any other fields OpenAI returns that we weren't capturing
|
||
|---|---|---|
| .. | ||
| ai | ||
| ai-toolbox | ||
| api | ||
| config | ||