@f5-sales-demo/pi-ai 21.28.1 → 21.29.0

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@f5-sales-demo/pi-ai",
4
- "version": "21.28.1",
4
+ "version": "21.29.0",
5
5
  "description": "Unified LLM API with automatic model discovery and provider configuration",
6
6
  "homepage": "https://github.com/f5-sales-demo/xcsh",
7
7
  "author": "Can Boluk",
@@ -46,7 +46,7 @@
46
46
  "@anthropic-ai/sdk": "0.123.0",
47
47
  "@aws-sdk/client-bedrock-runtime": "3.1126.0",
48
48
  "@bufbuild/protobuf": "2.14.1",
49
- "@f5-sales-demo/pi-utils": "21.28.1",
49
+ "@f5-sales-demo/pi-utils": "21.29.0",
50
50
  "@google/genai": "2.21.0",
51
51
  "@sinclair/typebox": "0.34.52",
52
52
  "@smithy/node-http-handler": "4.12.1",
@@ -2292,7 +2292,7 @@ function convertTools(tools: Tool[]): Array<{
2292
2292
  name: tool.name,
2293
2293
  description: tool.description || "",
2294
2294
  parameters,
2295
- ...(effectiveStrict && { strict: true }),
2295
+ ...(effectiveStrict ? { strict: true } : tool.strict === false ? { strict: false } : {}),
2296
2296
  };
2297
2297
  });
2298
2298
  }
@@ -514,7 +514,7 @@ function convertTools(tools: Tool[], strictMode: boolean): OpenAITool[] {
514
514
  name: tool.name,
515
515
  description: tool.description || "",
516
516
  parameters,
517
- ...(effectiveStrict && { strict: true }),
517
+ ...(effectiveStrict ? { strict: true } : tool.strict === false ? { strict: false } : {}),
518
518
  } as OpenAITool;
519
519
  });
520
520
  }