Open niutech opened 1 week ago
seems like it would make the most sense to overwrite and match the native API
Here you can find the Prompt API explainer: https://github.com/explainers-by-googlers/prompt-api
I threw together a quick Polyfill for the current spec. You can interact with by running the dev server on this branch
[chrome spec polyfill fork](https://github.com/alexanderatallah/window.ai/pull/81
I changed up the streaming api a bit. Chrome's current implementation appends all the previous chunks on each new chunk which seems like a mistake
Google Chrome has recently added the built-in ´window.ai´ API which conflicts with this API. Do you have any ideas how to solve it?