Skip to content

Latest commit

 

History

History
15 lines (8 loc) · 486 Bytes

README.md

File metadata and controls

15 lines (8 loc) · 486 Bytes

StreamingFastAPI

Read the blog here

Very basic FastAPI app that uses OpenAI APIs to stream responses

Set OPENAI_API_KEY environment variable using export OPENAI_API_KEY=<your_api_key>

Install packages using pip install -r requirements.txt

Run using uvicorn fastapp:app (use --reload flag for debugging)

Navigate to http://127.0.0.1:8000/docs to find documentation and test the API

Docs Page