alexanderatallah / window.ai

Use your own AI models on the web
https://windowai.io
MIT License
782 stars 68 forks source link

When using onStreamResult, developers should know when it's done #46

Closed alexanderatallah closed 1 year ago

alexanderatallah commented 1 year ago

I didn't find a standard in place for this other than what OpenAI does, so was hesitant to add a special "end" message. But it would make sense to do that.

Ideally, we avoid special strings (like "[DONE]") and make use of types/function params instead

alexanderatallah commented 1 year ago

Planning to change the resolve time of getCompletion to match up with the end of the stream

alexanderatallah commented 1 year ago

Discussion: https://discord.com/channels/1091220969173028894/1094454198688546826/1100676290698293288