Your program looks fine. The checkmark is automatically added by our server to indicate that is the end of the stream, since there is no other way for you to tell whether more text is coming from the server.
You can double-check it by examining the value of the “response” variable after some chats:
71d0e431-32dc-4db1-945e-6a2f5cb9dde8-image.png
CreatiCode