Agents: update pi dependencies to 0.50.7

This commit is contained in:
Mario Zechner
2026-01-31 04:19:56 +01:00
parent cc366f4baa
commit c0a6e675a3
13 changed files with 303 additions and 180 deletions

View File

@@ -64,8 +64,9 @@ export async function loadModelCatalog(params?: {
// will keep failing until restart).
const piSdk = await importPiSdk();
const agentDir = resolveOpenClawAgentDir();
const authStorage = piSdk.discoverAuthStorage(agentDir);
const registry = piSdk.discoverModels(authStorage, agentDir) as
const { join } = await import("node:path");
const authStorage = new piSdk.AuthStorage(join(agentDir, "auth.json"));
const registry = new piSdk.ModelRegistry(authStorage, join(agentDir, "models.json")) as
| {
getAll: () => Array<DiscoveredModel>;
}