(epoch uint64, userID uuid.UUID, prompt string)
| 398 | } |
| 399 | |
| 400 | func (c *chatConfigCache) storeUserPrompt(epoch uint64, userID uuid.UUID, prompt string) { |
| 401 | c.mu.Lock() |
| 402 | defer c.mu.Unlock() |
| 403 | |
| 404 | if c.userPromptEpoch != epoch { |
| 405 | return |
| 406 | } |
| 407 | |
| 408 | c.userPrompts.Set(userID, prompt, chatConfigUserPromptTTL) |
| 409 | } |
| 410 | |
| 411 | func (c *chatConfigCache) InvalidateModelConfig(id uuid.UUID) { |
| 412 | c.mu.Lock() |
no test coverage detected