pi-cliproxyapi-provider 0.4.14 → 0.15.0

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
@@ -68,9 +68,12 @@ CLIPROXYAPI_PROVIDER_NAME
68
68
  CLIPROXYAPI_AUTH_REQUIRED
69
69
  CLIPROXYAPI_AUTH_HEADER
70
70
  CLIPROXYAPI_MODELS_DEV_ENABLED
71
+ CLIPROXYAPI_METADATA_FALLBACK_PROVIDER
71
72
  ```
72
73
 
73
- Project config supports metadata aliases and bounded per-model overrides. Connection and auth settings such as `baseUrl`, `providerName`, `authRequired`, `authHeader`, and `headers` must be set in global config or environment variables.
74
+ Set `CLIPROXYAPI_METADATA_FALLBACK_PROVIDER=none` to disable unresolved-model metadata fallback.
75
+
76
+ Project config supports `metadataFallbackProvider`, metadata aliases, and bounded per-model overrides. Set `metadataFallbackProvider` to `null` or `"none"` to disable fallback. Connection and auth settings such as `baseUrl`, `providerName`, `authRequired`, `authHeader`, and `headers` must be set in global config or environment variables.
74
77
 
75
78
  ### GPT-5.6 context window
76
79
 
@@ -146,7 +149,7 @@ export CLIPROXYAPI_API_KEY=your-key
146
149
 
147
150
  Aliases affect metadata only. The package still sends the original CLIProxyAPI model ID to the proxy.
148
151
 
149
- 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. Add an alias when CLIProxyAPI's reported owner does not match the provider whose limits and pricing apply to your setup.
152
+ 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.
150
153
 
151
154
  Add global aliases to:
152
155
 
@@ -160,10 +163,11 @@ Add project aliases manually to:
160
163
  .pi/pi-cliproxyapi-provider/config.json
161
164
  ```
162
165
 
163
- Project config reads `modelAliases` and `modelOverrides`; other fields are ignored.
166
+ Project config reads `metadataFallbackProvider`, `modelAliases`, and `modelOverrides`; other fields are ignored.
164
167
 
165
168
  ```json
166
169
  {
170
+ "metadataFallbackProvider": "openrouter",
167
171
  "modelAliases": {
168
172
  "claude-opus-4-6-thinking": "anthropic/claude-opus-4-6",
169
173
  "gpt-5.6-sol": "openai/gpt-5.6-sol"