Phil 4.2.2023

It’s still raining in Sydney. Going to see a show at the Opera House

This looks very useful: Using the ChatGPT streaming API from Python

  • I wanted to stream the results from the ChatGPT API as they were generated, rather than waiting for the entire thing to complete before displaying anything. Here’s how to do that with the openai Python library:

Adding an “auto-question” button that looks through the text and gets a question that fits a randomly selected range of text