Skip to content

Conversation

@This-is-XiaoDeng
Copy link
Member

  • 此 Pull Requests 进行的更改已经过测试
  • 在合并前需要等待 CI 执行完成
  • 更改内容为紧急更新 (hotfix)

Remove the is_meme field from the database model and sticker manager
since it was only used for validation during sticker creation and
never stored or queried afterward. The classification check is now
done inline without persisting the boolean value.
Add new methods to StickerManager for filtering and classifying stickers:
- filter_by_emotion: filter stickers by emotion field
- filter_by_label: filter stickers by label in JSON array
- filter_by_context_keyword: filter stickers by context keyword
- filter_by_classification: combined filter with AND logic
- migrate_existing_stickers: batch classify unclassified stickers via LLM
- classify_single_sticker: classify individual sticker by ID
…text

Integrate sticker recommendations into group chat system prompts by:
- Extract mood from LLM reasoning content using regex pattern matching
- Filter stickers by emotion and context keywords from chat history
- Update system prompt with personalized sticker recommendations
- Change get_sticker_manager to synchronous function for simpler usage

The recommendations are dynamically updated after detecting the thinking
process in bot responses, providing contextually relevant sticker
suggestions based on current conversation mood and topics.
@This-is-XiaoDeng This-is-XiaoDeng merged commit a17dc20 into main Jan 25, 2026
3 of 4 checks passed
@This-is-XiaoDeng This-is-XiaoDeng deleted the opt/chat/remove-unused-table branch January 25, 2026 05:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants