MCPcopy Create free account
hub / github.com/MiniMax-AI/OpenRoom / clearEmotionVideoCache

Function clearEmotionVideoCache

apps/webuiapps/src/lib/characterManager.ts:360–368  ·  view source on GitHub ↗
(characterId?: string)

Source from the content-addressed store, hash-verified

358
359/** Clear the cached video URL for an emotion so next resolve picks a new random one */
360export function clearEmotionVideoCache(characterId?: string): void {
361 if (characterId) {
362 for (const key of _emotionVideoCache.keys()) {
363 if (key.startsWith(`${characterId}:`)) _emotionVideoCache.delete(key);
364 }
365 } else {
366 _emotionVideoCache.clear();
367 }
368}
369
370export function getCharacterPromptContext(config: CharacterConfig): string {
371 return (

Callers 1

runConversationFunction · 0.90

Calls 1

clearMethod · 0.80

Tested by

no test coverage detected