(userMessage: string, data: any)
| 11 | |
| 12 | |
| 13 | export async function setInSemanticCache(userMessage: string, data: any) { |
| 14 | if (config.useSemanticCache && semanticCache && data.llmResponse.length > 0) { |
| 15 | await semanticCache.set(userMessage, JSON.stringify(data)); |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | export async function clearSemanticCache(userMessage: string) { |
| 20 | "use server" |