mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-28 02:12:07 +00:00
* perf(inbound): trim cold startup import graph * chore(reply): drop redundant inline action type import * fix(inbound): restore warning and maintenance seams * fix(reply): restore type seam and secure forked transcripts
9 lines
246 B
TypeScript
9 lines
246 B
TypeScript
export const MODEL_CONTEXT_TOKEN_CACHE = new Map<string, number>();
|
|
|
|
export function lookupCachedContextTokens(modelId?: string): number | undefined {
|
|
if (!modelId) {
|
|
return undefined;
|
|
}
|
|
return MODEL_CONTEXT_TOKEN_CACHE.get(modelId);
|
|
}
|