@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 +18 -0
- package/package.json +3 -3
- package/src/models.json +1204 -109
- package/src/models.ts +2 -2
- package/src/provider-models/descriptors.ts +7 -0
- package/src/provider-models/openai-compat.ts +125 -20
- package/src/providers/anthropic.ts +82 -16
- package/src/providers/google-gemini-cli.ts +3 -3
- package/src/providers/google-vertex.ts +3 -2
- package/src/providers/google.ts +3 -2
- package/src/providers/openai-codex-responses.ts +3 -0
- package/src/providers/openai-completions-compat.ts +26 -1
- package/src/providers/openai-completions.ts +38 -11
- package/src/providers/openai-responses-shared.ts +2 -0
- package/src/providers/openai-responses.ts +8 -1
- package/src/stream.ts +1 -0
- package/src/types.ts +79 -2
- package/src/utils/oauth/xiaomi.ts +23 -8
- package/src/utils/provider-response.ts +30 -0
- package/src/utils/retry.ts +8 -3
- package/src/utils/tool-choice.ts +12 -0
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.
|
|
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.
|
|
50
|
-
"@oh-my-pi/pi-utils": "14.5.
|
|
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",
|