landgraf-dev / openai-delphi

OpenAI API client for Delphi and Lazarus/FPC. Use ChatGPT, DALL-E and other products from Pascal language.
MIT License
126 stars 40 forks source link

Incredible Code... Possible Demo? #8

Closed gspears00 closed 1 year ago

gspears00 commented 1 year ago

Absolutely incredible code! Would it be possible to add another demo that shows how to do the streaming? i.e. made text appear in "chunks" like done on ChatGPT website? Thank you for sharing this code.

wlandgraf commented 1 year ago

Thank you for your compliments. We updated the API and the demo to support the chat endpoints, which takes into account the previous messages exchanged with ChatGPT.