pi-rozalia 0.1.1 → 0.1.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/extensions/index.ts +2 -6
- package/package.json +1 -1
package/extensions/index.ts
CHANGED
|
@@ -226,8 +226,8 @@ async function registerRozaliaProvider(
|
|
|
226
226
|
function createLoginFlow(
|
|
227
227
|
defaultUrl: string,
|
|
228
228
|
defaultApiKey: string | undefined,
|
|
229
|
-
): (
|
|
230
|
-
return async (
|
|
229
|
+
): (callbacks: OAuthLoginCallbacks) => Promise<OAuthCredentials> {
|
|
230
|
+
return async (callbacks: OAuthLoginCallbacks) => {
|
|
231
231
|
const inputUrl = await callbacks.onPrompt({
|
|
232
232
|
message: `Enter Rozalia server URL (press Enter for ${defaultUrl}):`,
|
|
233
233
|
});
|
|
@@ -249,10 +249,6 @@ function createLoginFlow(
|
|
|
249
249
|
// Still register — models will be discovered later or show fallback
|
|
250
250
|
}
|
|
251
251
|
|
|
252
|
-
// Actually register the provider so models appear immediately
|
|
253
|
-
const oauthBlock = buildOauthBlock(defaultUrl, defaultApiKey);
|
|
254
|
-
await registerRozaliaProvider(pi, creds, oauthBlock);
|
|
255
|
-
|
|
256
252
|
return encodeCreds(creds);
|
|
257
253
|
};
|
|
258
254
|
}
|