pi-free 1.0.8 → 1.0.9

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/CHANGELOG.md CHANGED
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.0.9] - 2026-04-14
11
+
12
+ ### Fixed
13
+ - **Qwen OAuth breaks other OAuth providers** — `modifyModels` receives all models across every registered provider, not just Qwen's. The previous `map()` stamped the Qwen dashscope `baseUrl` onto every model, causing other OAuth providers (Kilo, OpenRouter, etc.) to return 404 after a `/login qwen` flow. Now only models with `provider === PROVIDER_QWEN` are patched; others pass through unchanged.
14
+
10
15
  ## [1.0.8] - 2026-04-13
11
16
 
12
17
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-free",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "type": "module",
5
5
  "description": "AIO Free AI models for Pi - Access free models from Kilo, Zen, OpenRouter, NVIDIA, Cline, Mistral, Ollama, and Qwen",
6
6
  "keywords": [
package/providers/qwen.ts CHANGED
@@ -77,7 +77,12 @@ export default async function (pi: ExtensionAPI) {
77
77
  modelCount: models.length,
78
78
  });
79
79
  if (baseUrl === DEFAULT_BASE_URL) return models;
80
- return (models as Model<Api>[]).map((m) => ({ ...m, baseUrl }));
80
+ // modifyModels receives ALL models across providers only patch Qwen ones.
81
+ const nonQwen = models.filter((m) => m.provider !== PROVIDER_QWEN);
82
+ const qwen = models
83
+ .filter((m) => m.provider === PROVIDER_QWEN)
84
+ .map((m) => ({ ...m, baseUrl }));
85
+ return [...nonQwen, ...qwen];
81
86
  },
82
87
  };
83
88