SidJain1412 / StreamingFastAPI

FastAPI app that uses OpenAI APIs to stream responses

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

StreamingFastAPI

Read the blog here

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

About

FastAPI app that uses OpenAI APIs to stream responses

License:MIT License


Languages

Language:Python 100.0%