@mcowger/opencode-plexus 1.4.8 → 1.4.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/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -721,8 +721,8 @@ var PlexusProviderPlugin = async (ctx) => {
|
|
|
721
721
|
const key = authKey ?? apiKey;
|
|
722
722
|
if (!baseURL) {
|
|
723
723
|
log.info("Provider hook skipped live refresh; baseURL missing");
|
|
724
|
-
const
|
|
725
|
-
return
|
|
724
|
+
const cached = await readCachedModels(client, suppress);
|
|
725
|
+
return cached ? toRuntimeModels(cached.models, provider) : {};
|
|
726
726
|
}
|
|
727
727
|
const refreshPromise = refreshModels(client, baseURL, log, key, false, suppress);
|
|
728
728
|
const race = await raceWithTimeout(refreshPromise, CONFIG_HOOK_REFRESH_BUDGET_MS);
|