fix(plugin-state): track vision-capable multimodal models
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -1,11 +1,18 @@
|
|||||||
|
export type VisionCapableModel = {
|
||||||
|
providerID: string
|
||||||
|
modelID: string
|
||||||
|
}
|
||||||
|
|
||||||
export interface ModelCacheState {
|
export interface ModelCacheState {
|
||||||
modelContextLimitsCache: Map<string, number>;
|
modelContextLimitsCache: Map<string, number>;
|
||||||
|
visionCapableModelsCache?: Map<string, VisionCapableModel>;
|
||||||
anthropicContext1MEnabled: boolean;
|
anthropicContext1MEnabled: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function createModelCacheState(): ModelCacheState {
|
export function createModelCacheState(): ModelCacheState {
|
||||||
return {
|
return {
|
||||||
modelContextLimitsCache: new Map<string, number>(),
|
modelContextLimitsCache: new Map<string, number>(),
|
||||||
|
visionCapableModelsCache: new Map<string, VisionCapableModel>(),
|
||||||
anthropicContext1MEnabled: false,
|
anthropicContext1MEnabled: false,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user