Disable user-specified OpenAI Base URL in prod
This commit is contained in:
parent
aae7c0e468
commit
7a76621e80
@ -113,6 +113,8 @@ async def stream_code(websocket: WebSocket):
|
|||||||
|
|
||||||
# Get the OpenAI Base URL from the request. Fall back to environment variable if not provided.
|
# Get the OpenAI Base URL from the request. Fall back to environment variable if not provided.
|
||||||
openai_base_url = None
|
openai_base_url = None
|
||||||
|
# Disable user-specified OpenAI Base URL in prod
|
||||||
|
if not os.environ.get("IS_PROD"):
|
||||||
if "openAiBaseURL" in params and params["openAiBaseURL"]:
|
if "openAiBaseURL" in params and params["openAiBaseURL"]:
|
||||||
openai_base_url = params["openAiBaseURL"]
|
openai_base_url = params["openAiBaseURL"]
|
||||||
print("Using OpenAI Base URL from client-side settings dialog")
|
print("Using OpenAI Base URL from client-side settings dialog")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user