Files
oh-my-openagent/src/plugin-state.ts
2026-03-08 02:20:20 +09:00

19 lines
503 B
TypeScript

export type VisionCapableModel = {
providerID: string
modelID: string
}
export interface ModelCacheState {
modelContextLimitsCache: Map<string, number>;
visionCapableModelsCache?: Map<string, VisionCapableModel>;
anthropicContext1MEnabled: boolean;
}
export function createModelCacheState(): ModelCacheState {
return {
modelContextLimitsCache: new Map<string, number>(),
visionCapableModelsCache: new Map<string, VisionCapableModel>(),
anthropicContext1MEnabled: false,
};
}