@oh-my-pi/pi-ai 14.5.2 → 14.5.5
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 +26 -0
- package/package.json +3 -3
- package/src/auth-storage.ts +6 -0
- package/src/models.json +472 -349
- package/src/provider-models/descriptors.ts +7 -0
- package/src/provider-models/openai-compat.ts +93 -1
- package/src/providers/grammar.ts +70 -0
- package/src/providers/openai-codex-responses.ts +27 -12
- package/src/providers/openai-completions-compat.ts +6 -1
- package/src/providers/openai-completions.ts +3 -1
- package/src/providers/openai-responses.ts +2 -1
- package/src/stream.ts +1 -0
- package/src/types.ts +1 -0
- package/src/utils/fireworks-model-id.ts +13 -0
- package/src/utils/oauth/fireworks.ts +15 -0
- package/src/utils/oauth/index.ts +9 -0
- package/src/utils/oauth/types.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,32 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [14.5.4] - 2026-04-28
|
|
6
|
+
### Changed
|
|
7
|
+
|
|
8
|
+
- Changed OpenAI custom Lark grammar payloads to strip comments and blank lines before sending provider requests.
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- Fixed OpenAI Codex GPT model pricing by inheriting matching OpenAI catalog rates for zero-priced discovered Codex entries.
|
|
13
|
+
|
|
14
|
+
## [14.5.3] - 2026-04-27
|
|
15
|
+
### Added
|
|
16
|
+
|
|
17
|
+
- Added `fireworks` as a supported provider with API key login flow and credential storage
|
|
18
|
+
- Added Fireworks model catalog support with `fireworks`-scoped openai-completions models `glm-5`, `glm-5.1`, `kimi-k2.5`, `kimi-k2.6`, and `minimax-m2.7`
|
|
19
|
+
- Added built-in discovery wiring so providers with base URL `api.fireworks.ai` are recognized as OpenAI-compatible and can use streaming token control
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
|
|
23
|
+
- Updated the built-in model catalog to use corrected `contextWindow` and `maxTokens` values for many existing models instead of placeholder limits
|
|
24
|
+
- Updated several model cost entries, including cache-read pricing, to corrected values
|
|
25
|
+
|
|
26
|
+
### Fixed
|
|
27
|
+
|
|
28
|
+
- Fixed Fireworks request formatting by translating between public model IDs and API wire IDs when sending OpenAI-completions requests
|
|
29
|
+
- Fixed OpenAI-compatible model parameter handling for Fireworks by allowing `max_tokens` to be sent during requests
|
|
30
|
+
|
|
5
31
|
## [14.5.1] - 2026-04-26
|
|
6
32
|
|
|
7
33
|
### Fixed
|
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.5",
|
|
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.5",
|
|
50
|
+
"@oh-my-pi/pi-utils": "14.5.5",
|
|
51
51
|
"@sinclair/typebox": "^0.34.49",
|
|
52
52
|
"@smithy/node-http-handler": "^4.6.1",
|
|
53
53
|
"ajv": "^8.20.0",
|
package/src/auth-storage.ts
CHANGED
|
@@ -36,6 +36,7 @@ import { loginAnthropic } from "./utils/oauth/anthropic";
|
|
|
36
36
|
import { loginCerebras } from "./utils/oauth/cerebras";
|
|
37
37
|
import { loginCloudflareAiGateway } from "./utils/oauth/cloudflare-ai-gateway";
|
|
38
38
|
import { loginCursor } from "./utils/oauth/cursor";
|
|
39
|
+
import { loginFireworks } from "./utils/oauth/fireworks";
|
|
39
40
|
import { loginGitHubCopilot } from "./utils/oauth/github-copilot";
|
|
40
41
|
import { loginGitLabDuo } from "./utils/oauth/gitlab-duo";
|
|
41
42
|
import { loginAntigravity } from "./utils/oauth/google-antigravity";
|
|
@@ -849,6 +850,11 @@ export class AuthStorage {
|
|
|
849
850
|
await saveApiKeyCredential(apiKey);
|
|
850
851
|
return;
|
|
851
852
|
}
|
|
853
|
+
case "fireworks": {
|
|
854
|
+
const apiKey = await loginFireworks(ctrl);
|
|
855
|
+
await saveApiKeyCredential(apiKey);
|
|
856
|
+
return;
|
|
857
|
+
}
|
|
852
858
|
case "zai": {
|
|
853
859
|
const apiKey = await loginZai(ctrl);
|
|
854
860
|
await saveApiKeyCredential(apiKey);
|