A plugin for MulmoChat - a multi-modal voice chat application with OpenAI's GPT-4 Realtime API.
Generate images using AI based on text prompts. This plugin provides the UI components and tool definition, while the actual image generation is handled by the host application via context.app.generateImage().
yarn add @mulmochat-plugin/generate-image @mulmochat-plugin/ui-image gui-chat-protocol
gui-chat-protocolis a peer dependency — install it alongside the plugin; the host application provides the runtime and this plugin only declares the compatible range.
import Plugin from "@mulmochat-plugin/generate-image";
import "@mulmochat-plugin/generate-image/style.css";
// Add to pluginList
const pluginList = [
// ... other plugins
Plugin,
];# Install dependencies
yarn install
# Start dev server (http://localhost:5173/)
yarn dev
# Build
yarn build
# Type check
yarn typecheck
# Lint
yarn lintTry these prompts to test the plugin:
- "Generate an image of a sunset over mountains"
- "Create a picture of a cute robot reading a book"
- "Make an image of a futuristic city at night"
MIT
- Protocol spec: gui-chat-protocol
- Reference implementations using this protocol: mulmoclaude · MulmoChat