pi-dashscope 1.0.0 → 1.0.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.
Files changed (2) hide show
  1. package/index.ts +3 -2
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -160,8 +160,9 @@ export default function (pi: ExtensionAPI) {
160
160
  const trimmedKey = apiKey.trim();
161
161
  saveKey(trimmedKey);
162
162
 
163
- // Re-register provider immediately with the new key no reload needed.
164
- pi.registerProvider("dashscope", {
163
+ // Update the live model registry directlypi.registerProvider() only
164
+ // queues to pendingProviderRegistrations which is drained once at startup.
165
+ ctx.modelRegistry.registerProvider("dashscope", {
165
166
  baseUrl: DASHSCOPE_BASE_URL,
166
167
  apiKey: trimmedKey,
167
168
  api: "openai-completions",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-dashscope",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Alibaba DashScope (ModelStudio) provider for pi.dev — Qwen3, GLM-4, Kimi via OpenAI-compatible coding API",
5
5
  "type": "module",
6
6
  "license": "MIT",