pi-provider-litellm 4.3.0 → 4.3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-provider-litellm",
3
- "version": "4.3.0",
3
+ "version": "4.3.1",
4
4
  "description": "LiteLLM proxy provider extension for Pi",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -1,4 +1,4 @@
1
- export const LITELLM_DISCOVERY_VERSION = 6 as const;
1
+ export const LITELLM_DISCOVERY_VERSION = 7 as const;
2
2
 
3
3
  export type BackendFamily = "claude" | "deepseek" | "gemini" | "kimi" | "openai";
4
4
 
package/src/discover.ts CHANGED
@@ -1445,9 +1445,14 @@ function deploymentFamily(entry: ModelInfoEntry): CatalogResolution["semanticFam
1445
1445
  !resolveBackendIdentity({ ...entry, model_name: undefined })
1446
1446
  )
1447
1447
  return "conflicting";
1448
+ const customProvider = wireString(entry.litellm_params?.custom_llm_provider)?.trim().toLowerCase();
1448
1449
  const identityFamilies = [
1449
1450
  entry.litellm_params?.model,
1450
- entry.litellm_params?.custom_llm_provider,
1451
+ // A generic adapter (`openai`, `azure`, ...) names transport, not a backend family;
1452
+ // counting it as identity contradicts a model id such as `openai/kimi-k3`.
1453
+ customProvider && GENERIC_TRANSPORT_ADAPTERS.has(customProvider)
1454
+ ? undefined
1455
+ : entry.litellm_params?.custom_llm_provider,
1451
1456
  entry.model_info?.base_model,
1452
1457
  ]
1453
1458
  .map((candidate) => wireString(candidate)?.trim())