ahmadrosid / laravel-openai-streaming

Streaming OpenAI Responses in Laravel with Server-Sent Events (SSE).
14 stars 4 forks source link

clear output from openai #1

Open sdot257 opened 11 months ago

sdot257 commented 11 months ago

Thanks for this example, im looking for a couple of things.

1) is it possible to have the output stream more like chatgpt's where it scrolls and displays the last question you ask w/ its response underneath? Right now, the question gets replaced at the top but the response concatenate after the previous response.

2) the other more "simple" would be to clear the last response so that it doesnt appear to be a run on sentence.