Skip to content

Latest commit

 

History

History
11 lines (9 loc) · 387 Bytes

README.md

File metadata and controls

11 lines (9 loc) · 387 Bytes

openai-proxy

Proxy for OpenAI api using python flask, supports SSE streaming.

python3 main.py

curl -N http://localhost:9000/v1/chat/completions \
  -H "Authorization: Bearer <your openai api key>" \
  -H "Content-Type: application/json" \
  -d '{"stream": true, "model": "gpt-3.5-turbo", "messages": [{"role": "user", "content": "What is the OpenAI mission?"}]}'