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.
- package/index.ts +3 -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
|
-
//
|
|
164
|
-
|
|
163
|
+
// Update the live model registry directly — pi.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",
|