Proposal to Add base_url for OpenAI in n8n Credentials

The idea is:

To add a base_url option for OpenAI in the n8n credentials.

My use case:

I utilize various OpenAI models, such as Litellm, along with other applications like Stable Diffusion and TTS using open-source models. Additionally, I run my own Whisper server for transcription purposes. Having a defined base_url would streamline the integration of these services with n8n.

I think it would be beneficial to add this because:

This addition would simplify the workflow for many users, allowing us to easily connect to different OpenAI models and services without the need for repetitive configurations. It would enhance the overall user experience and make n8n even more versatile.

Any resources to support this?

I can provide examples of how this is implemented in other programming environments, such as Python and JavaScript, where the base_url is defined alongside the client credentials.

Are you willing to work on this?

I am more than willing to collaborate and provide any assistance needed to help implement this feature.

Thank you for considering my proposal!

Best regards,
Emerson Pedroso

Yes, this would be a great addition for sure! I use a combination of openai api calls to things like a local ollama installation, openrouter, and local whisper.

Good call @umperdroso!

1 Like

I completely agree with this. Having to set it up individually every time is too much hassle. Strongly support!