18d66d08b3e9f78bbefe087f2ab221d541eab4d7
- Author
- TheEdgeOfRage <git@theedgeofrage.com>
- Committer
- TheEdgeOfRage <git@theedgeofrage.com>
- Date
Message
Fix prop fetching when switching models
Diff
1diff --git a/index.ts b/index.ts
2index 4018d36e669aaab191e05b5ecd13e75b25c9dd28..f2bd01852ef4df9a0fdc97f242feea8dcf3bd96a 100644
3--- a/index.ts
4+++ b/index.ts
5@@ -460,6 +460,11 @@ export default async function (pi: ExtensionAPI) {
6 // Use tracked state instead of stale currentModels status.
7 const isLoaded = currentlyLoadedModel === modelId;
8
9+ // llama.cpp rejects /props?autoload=false for unloaded models.
10+ if (!autoload && !isLoaded) {
11+ return;
12+ }
13+
14 if (discoveredMetadata.has(modelId)) {
15 // If discovered but no longer loaded, clear cache and fall through to reload.
16 if (!isLoaded) {