Question · Python course · Module 10: AI and Language Models

Streaming in FastAPI

How do you implement AI response streaming in FastAPI?

Answer options

  • Using a regular return
  • Using temporary files
  • Using StreamingResponse with an async generator
  • It's not possible

You can check the correct answer by solving this task in the CodeWorlds game.