Replace default OpenAI API base url with the custom one #645

Closed
opened 2026-02-21 17:27:52 -05:00 by yindo · 3 comments
Owner

Originally created by @Andywugh on GitHub (Nov 1, 2023).

Description of the new feature / enhancement

Hi there, just to confirm are there any existing functions that can modify the OpenAI API base URL so far? If not, can we support it? Or actually we just only recommend using Azure OpenAI API instead?

Scenario when this would be used?

For some reason, like in some countries, we can't access OpenAI API services directly, so generally we only can access them by following:

  1. Some similar OpenAI API proxy services built by someone in their countries for access instead;
  2. Overseas VPN services;

Supporting information

No response

Originally created by @Andywugh on GitHub (Nov 1, 2023). ### Description of the new feature / enhancement Hi there, just to confirm are there any existing functions that can modify the OpenAI API base URL so far? If not, can we support it? Or actually we just only recommend using Azure OpenAI API instead? ### Scenario when this would be used? For some reason, like in some countries, we can't access OpenAI API services directly, so generally we only can access them by following: 1. Some similar OpenAI API proxy services built by someone in their countries for access instead; 2. Overseas VPN services; ### Supporting information _No response_
yindo added the 💪 enhancement label 2026-02-21 17:27:52 -05:00
yindo closed this issue 2026-02-21 17:27:52 -05:00
Author
Owner

@crazywoola commented on GitHub (Nov 2, 2023):

Yes, see the docs here. https://docs.dify.ai/getting-started/install-self-hosted/environments#openai_api_base

@crazywoola commented on GitHub (Nov 2, 2023): Yes, see the docs here. https://docs.dify.ai/getting-started/install-self-hosted/environments#openai_api_base
Author
Owner

@Andywugh commented on GitHub (Nov 2, 2023):

I see, your guide is mainly for self-hosted deployments, but it isn't supported in the public cloud version, right? @crazywoola

@Andywugh commented on GitHub (Nov 2, 2023): I see, your guide is mainly for self-hosted deployments, but it isn't supported in the public cloud version, right? @crazywoola
Author
Owner

@crazywoola commented on GitHub (Nov 16, 2023):

I see, your guide is mainly for self-hosted deployments, but it isn't supported in the public cloud version, right? @crazywoola

Yes because the cloud service requires VPN recent days as well.

@crazywoola commented on GitHub (Nov 16, 2023): > I see, your guide is mainly for self-hosted deployments, but it isn't supported in the public cloud version, right? @crazywoola Yes because the cloud service requires VPN recent days as well.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#645