12 lines
295 B
TypeScript
12 lines
295 B
TypeScript
|
|
export interface ModelCacheState {
|
||
|
|
modelContextLimitsCache: Map<string, number>;
|
||
|
|
anthropicContext1MEnabled: boolean;
|
||
|
|
}
|
||
|
|
|
||
|
|
export function createModelCacheState(): ModelCacheState {
|
||
|
|
return {
|
||
|
|
modelContextLimitsCache: new Map<string, number>(),
|
||
|
|
anthropicContext1MEnabled: false,
|
||
|
|
};
|
||
|
|
}
|