@f5-sales-demo/pi-ai 19.61.3 → 19.61.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 +2 -2
- package/src/models.json +28 -0
- package/src/provider-models/descriptors.ts +1 -1
- package/src/providers/anthropic.ts +2 -2
- package/src/types.ts +6 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@f5-sales-demo/pi-ai",
|
|
4
|
-
"version": "19.61.
|
|
4
|
+
"version": "19.61.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",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@aws-sdk/client-bedrock-runtime": "^3",
|
|
46
46
|
"@bufbuild/protobuf": "^2.11",
|
|
47
47
|
"@google/genai": "^1.43",
|
|
48
|
-
"@f5-sales-demo/pi-utils": "19.61.
|
|
48
|
+
"@f5-sales-demo/pi-utils": "19.61.4",
|
|
49
49
|
"@sinclair/typebox": "^0.34",
|
|
50
50
|
"@smithy/node-http-handler": "^4.4",
|
|
51
51
|
"ajv": "^8.20",
|
package/src/models.json
CHANGED
|
@@ -2594,6 +2594,34 @@
|
|
|
2594
2594
|
"maxLevel": "xhigh"
|
|
2595
2595
|
}
|
|
2596
2596
|
},
|
|
2597
|
+
"claude-opus-4-8": {
|
|
2598
|
+
"id": "claude-opus-4-8",
|
|
2599
|
+
"name": "Claude Opus 4.8",
|
|
2600
|
+
"api": "anthropic-messages",
|
|
2601
|
+
"provider": "anthropic",
|
|
2602
|
+
"baseUrl": "https://api.anthropic.com",
|
|
2603
|
+
"reasoning": true,
|
|
2604
|
+
"input": [
|
|
2605
|
+
"text",
|
|
2606
|
+
"image"
|
|
2607
|
+
],
|
|
2608
|
+
"cost": {
|
|
2609
|
+
"input": 5,
|
|
2610
|
+
"output": 25,
|
|
2611
|
+
"cacheRead": 0.5,
|
|
2612
|
+
"cacheWrite": 6.25
|
|
2613
|
+
},
|
|
2614
|
+
"contextWindow": 1000000,
|
|
2615
|
+
"maxTokens": 128000,
|
|
2616
|
+
"betas": [
|
|
2617
|
+
"context-1m-2025-08-07"
|
|
2618
|
+
],
|
|
2619
|
+
"thinking": {
|
|
2620
|
+
"mode": "anthropic-adaptive",
|
|
2621
|
+
"minLevel": "minimal",
|
|
2622
|
+
"maxLevel": "xhigh"
|
|
2623
|
+
}
|
|
2624
|
+
},
|
|
2597
2625
|
"claude-sonnet-4-0": {
|
|
2598
2626
|
"id": "claude-sonnet-4-0",
|
|
2599
2627
|
"name": "Claude Sonnet 4 (latest)",
|
|
@@ -122,7 +122,7 @@ function catalogDescriptor(
|
|
|
122
122
|
* openai-codex) are handled separately because they require different config shapes.
|
|
123
123
|
*/
|
|
124
124
|
export const PROVIDER_DESCRIPTORS: readonly ProviderDescriptor[] = [
|
|
125
|
-
descriptor("anthropic", "claude-
|
|
125
|
+
descriptor("anthropic", "claude-opus-4-8", config => anthropicModelManagerOptions(config)),
|
|
126
126
|
catalogDescriptor(
|
|
127
127
|
"alibaba-coding-plan",
|
|
128
128
|
"qwen3.5-plus",
|
|
@@ -1068,7 +1068,7 @@ export function buildAnthropicClientOptions(args: AnthropicClientOptionsArgs): A
|
|
|
1068
1068
|
const tlsFetchOptions = buildClaudeCodeTlsFetchOptions(model, baseUrl);
|
|
1069
1069
|
if (model.provider === "github-copilot") {
|
|
1070
1070
|
const copilotApiKey = parseGitHubCopilotApiKey(apiKey).accessToken;
|
|
1071
|
-
const betaFeatures = [...extraBetas];
|
|
1071
|
+
const betaFeatures = [...extraBetas, ...(model.betas ?? [])];
|
|
1072
1072
|
if (interleavedThinking) {
|
|
1073
1073
|
betaFeatures.push("interleaved-thinking-2025-05-14");
|
|
1074
1074
|
}
|
|
@@ -1097,7 +1097,7 @@ export function buildAnthropicClientOptions(args: AnthropicClientOptionsArgs): A
|
|
|
1097
1097
|
};
|
|
1098
1098
|
}
|
|
1099
1099
|
|
|
1100
|
-
const betaFeatures = [...extraBetas];
|
|
1100
|
+
const betaFeatures = [...extraBetas, ...(model.betas ?? [])];
|
|
1101
1101
|
if (interleavedThinking) {
|
|
1102
1102
|
betaFeatures.push("interleaved-thinking-2025-05-14");
|
|
1103
1103
|
}
|
package/src/types.ts
CHANGED
|
@@ -533,6 +533,12 @@ export interface Model<TApi extends Api = any> {
|
|
|
533
533
|
contextWindow: number;
|
|
534
534
|
maxTokens: number;
|
|
535
535
|
headers?: Record<string, string>;
|
|
536
|
+
/**
|
|
537
|
+
* Extra anthropic-beta feature flags to send for this model (anthropic-messages API only).
|
|
538
|
+
* Composed with request-level betas and interleaved-thinking rather than replacing them.
|
|
539
|
+
* Example: ["context-1m-2025-08-07"] to opt a model into the 1M context window.
|
|
540
|
+
*/
|
|
541
|
+
betas?: string[];
|
|
536
542
|
/** Hint that websocket transport should be preferred when supported by the provider implementation. */
|
|
537
543
|
preferWebsockets?: boolean;
|
|
538
544
|
/** Preferred model to switch to when context promotion is triggered (model id or provider/id). */
|