Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 1.09 KB

File metadata and controls

25 lines (18 loc) · 1.09 KB

Chrome Built-in LLM Chat UI (Prompt API)

A single-file HTML chat app (simple ChatGPT-style UI) that talks to Chrome’s built-in LLM Prompt API and persists conversations in LocalStorage so you can continue chats later.

It includes:

  • Multiple chats + chat search
  • Per-chat delete in the sidebar + “clear all”
  • Markdown rendering for assistant replies (safe, lightweight renderer)
  • “Speak” button under the robot icon (Web Speech API / speechSynthesis)
  • Export a chat as JSON
  • Small footer credit link: “made with ❤️ by Equites.Digital”

Requirements

This project relies on Chrome’s Built-in AI Prompt API:

  • You need a Chrome build/environment where window.LanguageModel is available.
  • The API may require enabling Chrome flags / origin trial depending on your setup.
  • Run from a secure context (recommended: http://localhost or https://).

If LanguageModel is unavailable, the UI will show an “unavailable” status and won’t be able to run prompts.

Reference: Chrome docs (Prompt API)