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 +1 -1
- package/src/backend-identity.ts +1 -1
- package/src/discover.ts +6 -1
package/package.json
CHANGED
package/src/backend-identity.ts
CHANGED
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
|
-
|
|
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())
|