@myk-org/pi-sidecar 1.0.0-dev.4 → 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/dist/sessions.js
CHANGED
|
@@ -103,7 +103,13 @@ export class SessionStore {
|
|
|
103
103
|
model = getModel(options.provider, options.model) || undefined;
|
|
104
104
|
}
|
|
105
105
|
if (!model) {
|
|
106
|
-
|
|
106
|
+
// Check acpx models (discovered at runtime, not in the Pi SDK registry)
|
|
107
|
+
const isAcpxModel = this.acpxModels.some(m => m.id === options.model);
|
|
108
|
+
if (!isAcpxModel) {
|
|
109
|
+
throw new Error(`Model '${options.model}' not found for provider '${options.provider}'. Use GET /models to list available models.`);
|
|
110
|
+
}
|
|
111
|
+
// acpx model found — proceed without a registry model object
|
|
112
|
+
// (createAgentSession will resolve it via the acpx extension)
|
|
107
113
|
}
|
|
108
114
|
// Build extension paths (only include existing files)
|
|
109
115
|
const extensionPaths = [];
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|