Skip to content

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

License

Notifications You must be signed in to change notification settings

wujianguo/openai-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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?"}]}'

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages