Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflict with Google Chrome window.ai API #79

Open
niutech opened this issue Jun 29, 2024 · 5 comments
Open

Conflict with Google Chrome window.ai API #79

niutech opened this issue Jun 29, 2024 · 5 comments

Comments

@niutech
Copy link

niutech commented Jun 29, 2024

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?

@MiguelsPizza
Copy link

MiguelsPizza commented Jul 3, 2024

seems like it would make the most sense to overwrite and match the native API

@niutech
Copy link
Author

niutech commented Jul 3, 2024 via email

@MiguelsPizza
Copy link

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](#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

@niutech
Copy link
Author

niutech commented Jul 30, 2024

@MiguelsPizza Thanks! Is your PR ready to be merged?
I'd really like to have a single universal ´window.ai´ API in every web browser.

@MiguelsPizza
Copy link

This is not my repository and it's unclear whether the author is still maintaining it or would even be interested in taking it this direction.

I'll fork it and get an extension published when I have some time but it may be awhile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants