alexanderatallah / window.ai

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

Emit an event when user changes default model in the extension #10

Closed haardikk21 closed 1 year ago

haardikk21 commented 1 year ago

It would be great to have the extension emit a Window event when the user changes the default model inside the extension.

My use case is to show what model is currently being used on the frontend, and I would like to listen to the emitted event to update that bit of the UI as necessary.

I can possibly help out with a PR sometime this week after work hours, but if anyone else wants to pick it up in the meantime I'd appreciate it.

Thanks

alexanderatallah commented 1 year ago

This is now in review here: https://github.com/alexanderatallah/window.ai/pull/13