Agents: fix context registry typing
This commit is contained in:
parent
6c2642c9b2
commit
5e381dc71f
@ -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[] };
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user