Skip to content
Snippets Groups Projects
Unverified Commit d54e1c1f authored by Timothy Carambat's avatar Timothy Carambat Committed by GitHub
Browse files

expand support for non-US azure deployments (#1080)

* expand support for non-US azure deployments

* update conditional
parent 74074066
No related branches found
No related tags found
No related merge requests found
......@@ -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";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment