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
300 stars 8 forks source link

Request `API_BASE` environment variables setting support #11

Open lonelygo opened 1 year ago

lonelygo commented 1 year ago

For some reason, the default url https://api.openai.com/v1 needs to be changed to a custom URL.

yohasebe commented 1 year ago

I see. It could be useful for people interested in using the Azure OpenAI API, for example. I'll look into adding support for setting the API_BASE environment variable soon. Thank you for bringing this to my attention!

lonelygo commented 1 year ago

Thank you for your prompt reply. Currently, I modified the target_url in the opanai.rb to use my own URL.

yohasebe commented 1 year ago

I uploaded 1.8.1 with the "Base URL" option. Thanks again for your suggestion!