@oh-my-pi/pi-ai 14.5.8 → 14.5.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,24 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [14.5.10] - 2026-04-30
6
+
7
+ ### Added
8
+
9
+ - Added provider response metadata callbacks for Anthropic and OpenAI streaming requests.
10
+
11
+ ## [14.5.9] - 2026-04-30
12
+ ### Added
13
+
14
+ - Added `usage.reasoningTokens` to OpenAI and Google usage output when providers report reasoning/thinking tokens
15
+ - Added `usage.cttl.ephemeral5m` and `usage.cttl.ephemeral1h` to report Anthropic cache-write TTL token buckets
16
+ - Added `usage.server.webSearch` and `usage.server.webFetch` to report Anthropic server tool-call request counts
17
+
18
+ ### Fixed
19
+
20
+ - Fixed OpenAI usage attribution to avoid double-counting `reasoning_tokens` in output totals
21
+ - Fixed Anthropic streaming usage handling so a previously populated cache TTL breakdown is preserved when later events omit `cache_creation`
22
+
5
23
  ## [14.5.4] - 2026-04-28
6
24
  ### Changed
7
25
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@oh-my-pi/pi-ai",
4
- "version": "14.5.8",
4
+ "version": "14.5.10",
5
5
  "description": "Unified LLM API with automatic model discovery and provider configuration",
6
6
  "homepage": "https://github.com/can1357/oh-my-pi",
7
7
  "author": "Can Boluk",
@@ -46,8 +46,8 @@
46
46
  "@aws-sdk/credential-provider-node": "^3.972.36",
47
47
  "@bufbuild/protobuf": "^2.12.0",
48
48
  "@google/genai": "^1.50.1",
49
- "@oh-my-pi/pi-natives": "14.5.8",
50
- "@oh-my-pi/pi-utils": "14.5.8",
49
+ "@oh-my-pi/pi-natives": "14.5.10",
50
+ "@oh-my-pi/pi-utils": "14.5.10",
51
51
  "@sinclair/typebox": "^0.34.49",
52
52
  "@smithy/node-http-handler": "^4.6.1",
53
53
  "ajv": "^8.20.0",