@oh-my-pi/pi-ai 14.4.4 → 14.5.1

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,12 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [14.5.1] - 2026-04-26
6
+
7
+ ### Fixed
8
+
9
+ - Fixed NVIDIA NIM DeepSeek-V4 models leaking chat-template tool-call markers (e.g. `<|DSML|tool_calls|>`) into visible response text by stripping the special tokens from streamed `delta.content` ([#798](https://github.com/can1357/oh-my-pi/issues/798))
10
+
5
11
  ## [14.4.0] - 2026-04-26
6
12
 
7
13
  ### Added
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.4.4",
4
+ "version": "14.5.1",
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.4.4",
50
- "@oh-my-pi/pi-utils": "14.4.4",
49
+ "@oh-my-pi/pi-natives": "14.5.1",
50
+ "@oh-my-pi/pi-utils": "14.5.1",
51
51
  "@sinclair/typebox": "^0.34.49",
52
52
  "@smithy/node-http-handler": "^4.6.1",
53
53
  "ajv": "^8.20.0",
@@ -158,7 +158,7 @@ export function applyGeneratedModelPolicies(models: ApiModel<Api>[]): void {
158
158
  *
159
159
  * When a model's context is exhausted, the agent can promote to a sibling
160
160
  * model with a larger context window on the same provider:
161
- * - `-spark` variants promote to `gpt-5.5`.
161
+ * - `codex-spark` variants promote to `gpt-5.5`.
162
162
  * - `gpt-5.5` (270K input) promotes to `gpt-5.4` (1M input).
163
163
  */
164
164
  export function linkOpenAIPromotionTargets(models: ApiModel<Api>[]): void {
@@ -472,6 +472,9 @@ function inferFallbackEfforts<TApi extends Api>(model: ApiModel<TApi>): readonly
472
472
  if (model.api === "anthropic-messages") {
473
473
  return DEFAULT_REASONING_EFFORTS_WITH_XHIGH;
474
474
  }
475
+ if (model.name.includes("deepseek-v4")) {
476
+ return DEFAULT_REASONING_EFFORTS_WITH_XHIGH;
477
+ }
475
478
  if (model.api === "bedrock-converse-stream") {
476
479
  return DEFAULT_REASONING_EFFORTS;
477
480
  }