MythEclipse
|
406a6cbf79
|
refactor: migrate sticker cache to PostgreSQL, remove versioning
- Replace file-based sticker cache (.dat + index.json) with PostgreSQL sticker_cache table
- Remove model_version column and all versioning logic (git branch detection, GitHub API, CACHE_MODEL_VERSION)
- Strip VISION_MODEL_VERSION, logCacheEvent calls, and version filtering from SQL queries
- Remove STICKER_CACHE_DIR and STICKER_CACHE_MAX_SIZE_MB config variables
- Delete dead migration add_model_version_to_cache.sql
textCacheStore.ts reduced 482→204 lines (-57%)
stickerCache.ts reduced 210→144 lines (-31%)
Total: 11 files changed, 233 insertions, 591 deletions
|
2026-06-02 14:05:51 +07:00 |
|
MythEclipse
|
385fc0bbbf
|
feat: add response logger for moderation/vision audit trail + cache model versioning
- Add responseLogger.ts with comprehensive logging: vision analysis, moderation
analysis batches, cache hit/miss events, errors, retries, false positives,
model version changes, cache invalidation
- Integrate responseLogger calls into llmModerationClient.ts (cache events,
moderation results, errors, retries)
- Add model_version column to text_analysis_cache schema with composite
index for efficient filtering
- Add migration SQL for model_version column
- Document CACHE_MODEL_VERSION in .env.example
|
2026-06-02 12:23:52 +07:00 |
|