Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

@mulmochat-plugin/generate-image

npm version scoria

A plugin for MulmoChat - a multi-modal voice chat application with OpenAI's GPT-4 Realtime API.

What this plugin does

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().

Installation

yarn add @mulmochat-plugin/generate-image @mulmochat-plugin/ui-image gui-chat-protocol

gui-chat-protocol is a peer dependency — install it alongside the plugin; the host application provides the runtime and this plugin only declares the compatible range.

Usage

import Plugin from "@mulmochat-plugin/generate-image";
import "@mulmochat-plugin/generate-image/style.css";

// Add to pluginList
const pluginList = [
  // ... other plugins
  Plugin,
];

Development

# Install dependencies
yarn install

# Start dev server (http://localhost:5173/)
yarn dev

# Build
yarn build

# Type check
yarn typecheck

# Lint
yarn lint

Test Prompts

Try these prompts to test the plugin:

  1. "Generate an image of a sunset over mountains"
  2. "Create a picture of a cute robot reading a book"
  3. "Make an image of a futuristic city at night"

License

MIT

Related

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages