@samrito/pi-cliproxyapi-provider 0.16.0 → 0.17.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/README.md CHANGED
@@ -224,6 +224,19 @@ Aliases affect metadata only. The package still sends the original CLIProxyAPI m
224
224
 
225
225
  When `/v1/models` reports a canonical owner such as `openai`, the package uses that provider's metadata even if models.dev lists the model under several providers. Noncanonical owners can embed a provider hint, so `feedmob-opencode-go` resolves to `opencode-go` when that provider publishes the model. If ownership is still unresolved, the package uses OpenRouter metadata by default when there is exactly one matching OpenRouter entry. Set `metadataFallbackProvider` to another models.dev provider ID, or to `null`/`"none"` to disable this fallback. Legacy metadata caches without source-provider identity are ignored in favor of the bundled provider-qualified catalog until metadata is refreshed. Add an alias when CLIProxyAPI's reported owner or fallback does not match the provider whose limits and pricing apply to your setup.
226
226
 
227
+ When none of the above resolves a model, the package falls back to vendor
228
+ inference: it strips proxy variant suffixes such as `-high`, `-low`, `-medium`,
229
+ `-fast`, `-build`, and `-preview`, and infers the upstream vendor from the model
230
+ name (`claude-*` → `anthropic`, `gemini-*` → `google`, `deepseek-*` →
231
+ `deepseek`, `grok-*` → `xai`, and so on). This rescues proxy-renamed models
232
+ whose `owned_by` is missing, generic, or misleading — for example
233
+ `deepseek-flash` reported with owner `openai` resolves to
234
+ `deepseek/deepseek-flash`, and `gemini-3.6-flash-high` resolves to
235
+ `google/gemini-3.6-flash`. Models the primary matcher already resolves keep
236
+ their existing match source; inference runs only after the primary matcher
237
+ fails. Add a metadata alias to override an inferred match that does not match
238
+ your billing route.
239
+
227
240
  Add global aliases to:
228
241
 
229
242
  ```text