@oh-my-pi/pi-ai 14.5.13 → 14.5.14
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 +22 -1
- package/package.json +3 -3
- package/src/index.ts +5 -4
- package/src/models.json +1286 -230
- package/src/provider-models/openai-compat.ts +13 -2
- package/src/providers/antigravity-user-agent.ts +19 -0
- package/src/providers/gitlab-duo.ts +1 -3
- package/src/providers/google-gemini-cli.ts +14 -170
- package/src/providers/google-gemini-headers.ts +141 -0
- package/src/providers/kimi.ts +1 -2
- package/src/providers/openai-completions-compat.ts +9 -1
- package/src/providers/openai-completions.ts +64 -15
- package/src/providers/synthetic.ts +1 -2
- package/src/stream.ts +29 -11
- package/src/types.ts +2 -0
- package/src/usage/google-antigravity.ts +1 -1
- package/src/utils/discovery/antigravity.ts +1 -1
- package/src/utils/oauth/google-antigravity.ts +2 -2
- package/src/utils/oauth/google-gemini-cli.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [14.5.14] - 2026-05-01
|
|
6
|
+
### Added
|
|
7
|
+
|
|
8
|
+
- Added package-level `google-gemini-headers` exports (`getGeminiCliHeaders`, `getGeminiCliUserAgent`, `getAntigravityHeaders`, `extractRetryDelay`, and `ANTIGRAVITY_SYSTEM_INSTRUCTION`) for header and retry handling reuse without importing full Google providers
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- Changed package exports and streaming/provider wiring to load heavy Google/Kimi/GitLab/synthetic provider modules lazily through `register-builtins`, reducing startup import overhead from optional provider SDKs
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
|
|
16
|
+
- Fixed DeepSeek V4 tool-call follow-up 400 errors from three root causes:
|
|
17
|
+
- Mapped `reasoning_effort` "xhigh" to "max" for DeepSeek-family models on any provider (NVIDIA, OpenCode-Go, etc.), not just `deepseek`
|
|
18
|
+
- Recovered `reasoning_content` from thinking blocks with valid signatures that were filtered by the non-empty-text check
|
|
19
|
+
- Added empty-string fallback when `reasoning_content` is genuinely absent (e.g. proxy-stripped) but the provider requires the field
|
|
20
|
+
|
|
5
21
|
## [14.5.13] - 2026-05-01
|
|
22
|
+
|
|
6
23
|
### Breaking Changes
|
|
7
24
|
|
|
8
25
|
- Removed `utils/oauth` re-exports from the package entrypoint, so OAuth helper imports from the root module must be updated
|
|
@@ -14,6 +31,7 @@
|
|
|
14
31
|
- Added provider response metadata callbacks for Anthropic and OpenAI streaming requests.
|
|
15
32
|
|
|
16
33
|
## [14.5.9] - 2026-04-30
|
|
34
|
+
|
|
17
35
|
### Added
|
|
18
36
|
|
|
19
37
|
- Added `usage.reasoningTokens` to OpenAI and Google usage output when providers report reasoning/thinking tokens
|
|
@@ -26,6 +44,7 @@
|
|
|
26
44
|
- Fixed Anthropic streaming usage handling so a previously populated cache TTL breakdown is preserved when later events omit `cache_creation`
|
|
27
45
|
|
|
28
46
|
## [14.5.4] - 2026-04-28
|
|
47
|
+
|
|
29
48
|
### Changed
|
|
30
49
|
|
|
31
50
|
- Changed OpenAI custom Lark grammar payloads to strip comments and blank lines before sending provider requests.
|
|
@@ -35,6 +54,7 @@
|
|
|
35
54
|
- Fixed OpenAI Codex GPT model pricing by inheriting matching OpenAI catalog rates for zero-priced discovered Codex entries.
|
|
36
55
|
|
|
37
56
|
## [14.5.3] - 2026-04-27
|
|
57
|
+
|
|
38
58
|
### Added
|
|
39
59
|
|
|
40
60
|
- Added `fireworks` as a supported provider with API key login flow and credential storage
|
|
@@ -127,6 +147,7 @@
|
|
|
127
147
|
- Preserved user-provided `session_id` and `x-client-request-id` headers in OpenAI Responses requests instead of overriding them with automatic session-derived values
|
|
128
148
|
- Stopped sending `session_id` and `x-client-request-id` headers for OpenAI Responses requests when `cacheRetention` is set to `none`
|
|
129
149
|
- Fixed direct OpenAI Responses requests to send `session_id` and `x-client-request-id` from the same session-derived value as `prompt_cache_key`, improving prompt cache affinity for append-only sessions
|
|
150
|
+
|
|
130
151
|
## [14.1.1] - 2026-04-14
|
|
131
152
|
|
|
132
153
|
### Added
|
|
@@ -2187,4 +2208,4 @@ _Dedicated to Peter's shoulder ([@steipete](https://twitter.com/steipete))_
|
|
|
2187
2208
|
|
|
2188
2209
|
## [0.9.4] - 2025-11-26
|
|
2189
2210
|
|
|
2190
|
-
Initial release with multi-provider LLM support.
|
|
2211
|
+
Initial release with multi-provider LLM support.
|
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.14",
|
|
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.14",
|
|
50
|
+
"@oh-my-pi/pi-utils": "14.5.14",
|
|
51
51
|
"@sinclair/typebox": "^0.34.49",
|
|
52
52
|
"@smithy/node-http-handler": "^4.6.1",
|
|
53
53
|
"ajv": "^8.20.0",
|
package/src/index.ts
CHANGED
|
@@ -10,11 +10,12 @@ export * from "./provider-details";
|
|
|
10
10
|
export * from "./provider-models";
|
|
11
11
|
export * from "./providers/anthropic";
|
|
12
12
|
export * from "./providers/azure-openai-responses";
|
|
13
|
-
export * from "./providers/cursor";
|
|
13
|
+
export type * from "./providers/cursor";
|
|
14
14
|
export * from "./providers/gitlab-duo";
|
|
15
|
-
export * from "./providers/google";
|
|
16
|
-
export * from "./providers/google-gemini-cli";
|
|
17
|
-
export * from "./providers/google-
|
|
15
|
+
export type * from "./providers/google";
|
|
16
|
+
export type * from "./providers/google-gemini-cli";
|
|
17
|
+
export * from "./providers/google-gemini-headers";
|
|
18
|
+
export type * from "./providers/google-vertex";
|
|
18
19
|
export * from "./providers/kimi";
|
|
19
20
|
export * from "./providers/ollama";
|
|
20
21
|
export type { OpenAICodexResponsesOptions } from "./providers/openai-codex-responses";
|