2026-03-08 02:20:20 +09:00
|
|
|
export type VisionCapableModel = {
|
|
|
|
|
providerID: string
|
|
|
|
|
modelID: string
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-02 11:35:56 +09:00
|
|
|
export interface ModelCacheState {
|
|
|
|
|
modelContextLimitsCache: Map<string, number>;
|
2026-03-08 02:20:20 +09:00
|
|
|
visionCapableModelsCache?: Map<string, VisionCapableModel>;
|
2026-01-02 11:35:56 +09:00
|
|
|
anthropicContext1MEnabled: boolean;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function createModelCacheState(): ModelCacheState {
|
|
|
|
|
return {
|
|
|
|
|
modelContextLimitsCache: new Map<string, number>(),
|
2026-03-08 02:20:20 +09:00
|
|
|
visionCapableModelsCache: new Map<string, VisionCapableModel>(),
|
2026-01-02 11:35:56 +09:00
|
|
|
anthropicContext1MEnabled: false,
|
|
|
|
|
};
|
|
|
|
|
}
|