@f5xc-salesdemos/pi-ai 17.4.3 → 17.4.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": "@f5xc-salesdemos/pi-ai",
4
- "version": "17.4.3",
4
+ "version": "17.4.4",
5
5
  "description": "Unified LLM API with automatic model discovery and provider configuration",
6
6
  "homepage": "https://github.com/f5xc-salesdemos/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
- "@f5xc-salesdemos/pi-utils": "17.4.3",
48
+ "@f5xc-salesdemos/pi-utils": "17.4.4",
49
49
  "@sinclair/typebox": "^0.34",
50
50
  "@smithy/node-http-handler": "^4.4",
51
51
  "ajv": "^8.18",
@@ -136,8 +136,10 @@ function readAnthropicAuthFromModelsYml(): AnthropicAuthConfig | null {
136
136
  * Strips known suffixes (`/` repeats, `/anthropic`, `/api/v1`, `/v1`) from a
137
137
  * LiteLLM base URL until no further suffix matches. Handles inputs like
138
138
  * `https://proxy/api/v1/anthropic` in any order.
139
+ *
140
+ * Exported for contract testing — see packages/ai/test/litellm-url-normalization.test.ts.
139
141
  */
140
- function normalizeLitellmBase(url: string): string {
142
+ export function normalizeLitellmBase(url: string): string {
141
143
  const suffixes = [/\/+$/, /\/anthropic$/, /\/api\/v\d+$/, /\/v\d+$/];
142
144
  let prev: string;
143
145
  let current = url;