OpenAI Proxy API Demo

This project demonstrates how to make API calls to the OpenAI API using a proxy server.

Prerequisites

Installation

  1. Clone the repository:
git clone https://github.com/your-username/openai-proxy-demo.git
  1. Navigate to the project directory:
cd openai-proxy-demo
  1. Install the dependencies:
npm install
  1. Set up your OpenAI API key:

    • Create a new file named .env in the project root directory.
    • Add the following line to the .env file:
    APIKEY = your-api-key
    
  2. Start the server

npm start

HOW TO MAKE AN API CALL

Screenshot of an api call