mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 15:54:58 +00:00
Agents: update pi dependencies to 0.50.7
This commit is contained in:
@@ -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>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user