mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-11-11 01:10:11 +01:00
Merge branch 'master' of github.com:Mintplex-Labs/anything-llm
This commit is contained in:
commit
102689a77a
@ -425,8 +425,8 @@ function validChromaURL(input = "") {
|
|||||||
function validAzureURL(input = "") {
|
function validAzureURL(input = "") {
|
||||||
try {
|
try {
|
||||||
new URL(input);
|
new URL(input);
|
||||||
if (!input.includes("openai.azure.com"))
|
if (!input.includes("openai.azure.com") && !input.includes("microsoft.com"))
|
||||||
return "URL must include openai.azure.com";
|
return "Valid Azure endpoints must contain openai.azure.com OR microsoft.com";
|
||||||
return null;
|
return null;
|
||||||
} catch {
|
} catch {
|
||||||
return "Not a valid URL";
|
return "Not a valid URL";
|
||||||
|
Loading…
Reference in New Issue
Block a user