pi-openrouter-realtime 0.2.1 → 0.2.2

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
@@ -113,8 +113,8 @@ pi -e git:github.com/olixis/pi-openrouter-plus
113
113
 
114
114
  This keeps the normal OpenRouter catalog and adds variants like:
115
115
 
116
- - `Kwaipilot: KAT-Coder-Pro V2 (StreamLake)`
117
- - `Kwaipilot: KAT-Coder-Pro V2 (AtlasCloud · fp8)`
116
+ - `StreamLake — Kwaipilot: KAT-Coder-Pro V2`
117
+ - `AtlasCloud · fp8 — Kwaipilot: KAT-Coder-Pro V2`
118
118
 
119
119
  ## Behavior
120
120
 
@@ -11,7 +11,7 @@ const OPENROUTER_MODELS_URL = "https://openrouter.ai/api/v1/models";
11
11
  const OPENROUTER_BASE_URL = "https://openrouter.ai/api/v1";
12
12
  const PROVIDER_NAME = "openrouter";
13
13
  const CACHE_TTL_MS = 30 * 60 * 1000; // 30 minutes
14
- const ENRICHED_MODEL_PREFIX = "openrouter-route:";
14
+ const ENRICHED_MODEL_PREFIX = "@or:";
15
15
 
16
16
  type InputType = "text" | "image";
17
17
  type SyncMode = "plain" | "enriched";
@@ -163,14 +163,16 @@ function toProviderModel(m: OpenRouterModel): ProviderModelConfig {
163
163
  }
164
164
 
165
165
  function createVariantId(baseModelId: string, providerSlug: string, quantization?: string): string {
166
- const q = quantization || "default";
167
- return `${ENRICHED_MODEL_PREFIX}${baseModelId}::${providerSlug}::${q}`;
166
+ const routeLabel = quantization ? `${providerSlug}:${quantization}` : providerSlug;
167
+ // Keep provider/quantization first so truncated picker/footer labels still show
168
+ // the routing info that makes enriched variants useful.
169
+ return `${ENRICHED_MODEL_PREFIX}${routeLabel}:${baseModelId}`;
168
170
  }
169
171
 
170
172
  function createVariantName(baseName: string, providerName: string, quantization?: string): string {
171
173
  return quantization
172
- ? `${baseName} (${providerName} · ${quantization})`
173
- : `${baseName} (${providerName})`;
174
+ ? `${providerName} · ${quantization} ${baseName}`
175
+ : `${providerName} ${baseName}`;
174
176
  }
175
177
 
176
178
  function resetCaches() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-openrouter-realtime",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "OpenRouter extension for pi that loads the latest models from OpenRouter in real time and adds optional provider and quantization enrichment per model",
5
5
  "license": "MIT",
6
6
  "type": "module",