Files
Fu-Jie_openwebui-extensions/plugins/actions/flash-card
fujie 0a9549da34 feat(flash-card): add _get_user_context for safer user info retrieval
- Add _get_user_context method to handle various __user__ types (dict, list, tuple)
- Prevent AttributeError when __user__ is not a dict
- Update version to 0.2.2 for both English and Chinese versions
2026-01-01 04:19:22 +08:00
..

Flash Card

Generate polished learning flashcards from any text—title, summary, key points, tags, and category—ready for review and sharing.

Flash Card Example

Highlights

  • One-click generation: Drop in text, get a structured card.
  • Concise extraction: 35 key points and 24 tags automatically surfaced.
  • Multi-language: Choose target language (default English).
  • Progressive merge: Multiple runs append cards into the same HTML container; enable clearing to reset.
  • Status updates: Live notifications for generating/done/error.

Parameters

Param Description Default
MODEL_ID Model to use; empty falls back to current session model empty
MIN_TEXT_LENGTH Minimum text length; below this prompts for more text 50
LANGUAGE Output language (e.g., en, zh) en
SHOW_STATUS Whether to show status updates true
CLEAR_PREVIOUS_HTML Whether to clear previous card HTML (otherwise append/merge) false
MESSAGE_COUNT Use the latest N messages to build the card 1

How to Use

  1. Install and enable “Flash Card”.
  2. Send the text to the chat (multi-turn supported; governed by MESSAGE_COUNT).
  3. Watch status updates; the card HTML is embedded into the latest message.
  4. To regenerate from scratch, toggle CLEAR_PREVIOUS_HTML or resend text.

Output Format

  • JSON fields: title, summary, key_points (35), tags (24), category.
  • UI: gradient-styled card with tags, key-point list; supports stacking multiple cards.

Tips

  • Very short text triggers a prompt to add more; consider summarizing first.
  • Long text is accepted; for deep analysis, pre-condense with other tools before card creation.

Author

Fu-Jie GitHub: Fu-Jie/awesome-openwebui

License

MIT License