Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 525 Bytes

README.md

File metadata and controls

24 lines (19 loc) · 525 Bytes

openai-proxy

Deploy a proxy in front of OpenAI API to allow your frontend to make requests without exposing your API key while enforcing rate limiting. Designed for speed and ease of deployment.

Features

  • JWT authentication
  • Chat streaming
  • Per user rate limiting

Run the example

  1. Start the proxy
    export OPENAI_API_KEY=sk-XXX
    cargo run
  2. Start the example
    cd examples/openai-proxy-js-example
    npm i
    npm run dev
    open localhost:3000