yohasebe / openai-chat-api-workflow

🎩 An Alfred 5 Workflow for using OpenAI Chat API to interact with GPT-4o 🤖💬 It also allows image generation 🖼️, image understanding 👀, speech-to-text conversion 🎤, and text-to-speech synthesis 🔈
https://github.com/yohasebe/openai-text-completion-workflow
MIT License
297 stars 8 forks source link

How add another browser (Arc)? #21

Open lazywei opened 10 months ago

lazywei commented 10 months ago

Hi,

Thanks for the workflow it's a mind-blower 🤯. Got one question though, how do I add a new browser (I'm using Arc as my default browser) to the browser list? Or is it possible to just let this workflow use whatever system default browser?

Thanks

yohasebe commented 10 months ago

Thank you for your kind words about the workflow!

As of now, the workflow is optimized for Google Chrome and Microsoft Edge, including their beta and dev editions. If your default browser is set to either of these, it will be used accordingly. In cases where these are not the default, Safari will be the fallback option.

While it's theoretically possible to extend support to other Chromium-based browsers, Arc's unique design--particularly its use of "spaces" in addition to windows and tabs--presents challenges.

Unfortunately, this means that for the time being, I have to recommend using one of the currently supported browsers. Thank you for yourfeed back and I will keep thinking about support for other browsers including Arc.

diegolamanno commented 6 months ago

Follow up question around this topic.

What about other Chromium-based browsers with less "unique designs" like Brave Browser ?


I was digging inside the integration and I found where the conditional is handled

conditional

I added a case for Brave but that didn't seem to work (I am probably missing something).

brave

I understand if the answer is still not possible. This integration is definitely a work of art so no pressure!

yohasebe commented 6 months ago

Hi. To make Brave Browser work as expected, change the selector choice from "is equal to" to "matches regex". Brave is a Chromium-based browser, and the Applescript that follows this conditional will work correctly with this change.

I have made some improvements to the workflow, including support for the Brave Browser and other stability enhancements. You can check out the latest version (2.9.7).

diegolamanno commented 6 months ago

Thanks for the update. Works perfectly now! 🙏