Skip to content

Repository files navigation

Figma Make + OpenAI API Backend

A minimal Node.js Express backend for securely proxying chat requests to the OpenAI Assistant API. Only for prototyping purposes and testing.

Running locally

  1. npm install
  2. Copy .env.example to .env and fill in your OpenAI API key.
  3. Run: node api/chat.js
  4. POST to http://localhost:3001/api/chat with { "message": "Your message" }

Deploying to Vercel

  • Import this repo on Vercel.
  • Add your OPENAI_API_KEY in the Vercel environment settings.

Security

Never commit your real .env to source control.

About

assistant-endpoint

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages