~/talk

Unleashing the Power of AI: Integrating Tiptap, OpenAI, and Vue.js

Talkat vueday 2023 · on Friday, 2023-11-10· [ai-assisted-development, frontend-architecture]
github:Vannsl
slides:none on file

Builds a Tiptap-based rich text editor wired to OpenAI via a backend middleware, with custom node extensions, floating and bubble menus, and working insert/delete of AI-generated content. Uses GPT‑3.5 and GPT‑4 (generation sometimes takes 5–10 minutes), handles token limits (GPT‑3.5 Turbo ≈ 4,096 tokens) by splitting or switching models, strips client-only data attributes before saving, and uses editor.chain focus deleteRange setNode run to place content. Also implements 650ms debounced autosave and learns that prompt order matters, e.g. GPT‑3.5 Turbo 4,096 token limit.

AI-written summary · about

  1. 0:00Introduction
  2. 1:51Adding AI to product
  3. 2:54Rich text editor requirements
  4. 6:52Why we chose Tiptap for the editor
  5. 8:15Tiptap overview and setup
  6. 11:11Creating editor with Tiptap
  7. 13:21Editor updates and HTML cleaning
  8. 15:30Initializing Tiptap extensions
  9. 17:16Floating and bubble menus
  10. 19:44AI extension for Tiptap
  11. 22:38OpenAI integration
  12. 25:28OpenAI API calls and timeouts
  13. 27:33OpenAI models and prompts
  14. 31:24Token limits in OpenAI
  15. 33:53Prompt injection and security
  16. 34:58AI content generation
  17. 36:33Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.