@f5-sales-demo/pi-ai 21.35.2 → 21.35.4
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.35.
|
|
4
|
+
"version": "21.35.4",
|
|
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.35.
|
|
49
|
+
"@f5-sales-demo/pi-utils": "21.35.4",
|
|
50
50
|
"@google/genai": "2.21.0",
|
|
51
51
|
"@sinclair/typebox": "0.34.52",
|
|
52
52
|
"@smithy/node-http-handler": "4.12.1",
|
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
isSpecialServiceTier,
|
|
15
15
|
type MessageAttribution,
|
|
16
16
|
type Model,
|
|
17
|
+
type OpenAICompat,
|
|
17
18
|
type ProviderSessionState,
|
|
18
19
|
type ServiceTier,
|
|
19
20
|
type StreamFunction,
|
|
@@ -349,7 +350,8 @@ function buildParams(
|
|
|
349
350
|
params.max_output_tokens = options?.maxTokens;
|
|
350
351
|
}
|
|
351
352
|
|
|
352
|
-
|
|
353
|
+
const modelCompat = (model as unknown as { compat?: Pick<OpenAICompat, "supportsTemperature"> }).compat;
|
|
354
|
+
if (options?.temperature !== undefined && modelCompat?.supportsTemperature !== false) {
|
|
353
355
|
params.temperature = options?.temperature;
|
|
354
356
|
}
|
|
355
357
|
if (options?.topP !== undefined) {
|