MCPcopy Create free account
hub / github.com/Superflows-AI/superflows / isHit

Method isHit

lib/edge-runtime/llmResponseCache.ts:138–140  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

136 }
137 }
138 isHit(): boolean {
139 return this.messages.length > 0;
140 }
141
142 _history_matches(chatHistory: GPTMessageInclSummary[]): boolean {
143 // If cache conversation length less than current convo length or the same (no new messages), no match

Callers 6

checkDocsCacheMethod · 0.95
checkChatCacheMethod · 0.95
checkAnalyticsCacheMethod · 0.95
checkFollowUpCacheMethod · 0.95
checkChatSummaryCacheMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected