mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-11-13 02:00:10 +01:00
expand support for non-US azure deployments (#1080)
* expand support for non-US azure deployments * update conditional
This commit is contained in:
parent
7407406643
commit
d54e1c1f2d
@ -425,8 +425,8 @@ function validChromaURL(input = "") {
|
||||
function validAzureURL(input = "") {
|
||||
try {
|
||||
new URL(input);
|
||||
if (!input.includes("openai.azure.com"))
|
||||
return "URL must include openai.azure.com";
|
||||
if (!input.includes("openai.azure.com") && !input.includes("microsoft.com"))
|
||||
return "Valid Azure endpoints must contain openai.azure.com OR microsoft.com";
|
||||
return null;
|
||||
} catch {
|
||||
return "Not a valid URL";
|
||||
|
Loading…
Reference in New Issue
Block a user