Giter Site home page Giter Site logo

aaronkao / vercel-py-openai-chatbot Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 19 KB

This example shows how to use Pulumi to deploy a OpenAI Chatbot running on Vercel.

Home Page: https://vercel-chatbot-project-ea99a11.vercel.app

TypeScript 80.91% CSS 0.68% JavaScript 7.45% Python 10.97%

vercel-py-openai-chatbot's Introduction

Pulumi Vercel OpenAI Chatbot Example

This example shows how to use Pulumi to deploy a OpenAI chatbot running on Vercel. The chatbot uses the Vercel AI SDK with Next.js and OpenAI to create a ChatGPT-like AI-powered streaming chat bot.

Deploy

Prerequisites

How to use

Clone or fork this repo into your own GitHub repo.

Enter the vercel-py-openai-chatbot/pulumi directory and initialize the Pulumi stack

cd vercel-py-openai-chatbot/pulumi
pulumi stack init

You will need a Vercel API token and OpenAI API key. Set the configuration variables.

pulumi config set --secret vercel:apiToken <VERCEL_API_TOKEN>
pulumi config set --secret openai_api_key <OPENAI_API_KEY>
pulumi config set git_repo <YOUR_GITHUB_REPO_PATH>

Execute the Pulumi program

pulumi up

To use your new chatbot, just follow the URL from the stack output in your browser.

If youโ€™d like to tear down all of these resources and delete your stack, run pulumi destroy -rf --remove. Otherwise, have fun playing around with your new chatbot and add whatever you like! ๐Ÿ™‚

Learn More

To learn more about Pulumi, OpenAI, and the Vercel AI SDK take a look at the following resources:

vercel-py-openai-chatbot's People

Contributors

aaronkao avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

adoranwodo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.