Agents: fix context registry typing

This commit is contained in:
Vincent Koc
2026-03-05 23:56:32 -05:00
parent 6c2642c9b2
commit 5e381dc71f

View File

@@ -12,8 +12,8 @@ import { ensureOpenClawModelsJson } from "./models-config.js";
type ModelEntry = { id: string; provider?: string; contextWindow?: number };
type ModelRegistryLike = {
getAvailable?: () => ModelEntry[];
getAll: () => ModelEntry[];
getAvailable?: () => Model<Api>[];
getAll: () => Model<Api>[];
};
type ConfigModelEntry = { id?: string; contextWindow?: number };
type ProviderConfigEntry = { models?: ConfigModelEntry[] };