Skip to content

Realtime chat using OpenAI API, Next.js, and ComposeDB.

Notifications You must be signed in to change notification settings

mzkrasner/ai-ceramic

Repository files navigation

Save Chats and Context from OpenAI to ComposeDB on Ceramic

Realtime chat using GraphQL Live Queries, Next.js, and ComposeDB.

To follow the full tutorial, go to the tutorial page.

Getting Started

  1. Install your dependencies:
npm install
  1. Generate your admin seed, admin did, and ComposeDB configuration file:
npm run generate

The server configuration that's auto-generated when running this command is inmemory.

  1. Create a .env file and enter the three required environment variables outlined in .env.example

(the only environment variable needed for this app is an openai API key)

  1. Run the application (make sure you are using node version 16):

Development

nvm use 16
npm run dev

Build

npm run build

Learn More

To learn more about Ceramic please visit the following links

Credit

Credit to ChatBase for an awesome template to work with.

About

Realtime chat using OpenAI API, Next.js, and ComposeDB.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •